// Example program that uses the Particle class (Particle.cc) // // Must include the header file for the particle class // This header will declare to the program what the class contains and what it can do #include "Particle.h" // Want to use the iostream functionality in the standard C++ library // This allows us to print messages using cout #include // Namespace using namespace std; //----------------------------------------------------------------------------------- //Executable function int main() { double mass = 0.938; //GeV (a proton) double mom = 50 ; //GeV // now we create a Particle object which has these values // this will use the normal constructor defined in Particle.cc Particle p1(mass,mom); // and here is an example of how to use functions belonging to a class (its methods) cout<< "Particle 1: mass = " << p1.GetMass()<