qaParticleLight.cxx 665 B

12345678910111213141516171819202122232425262728293031
  1. #include <qaParticleLight.h>
  2. ClassImp(qaParticleLight);
  3. qaParticleLight::qaParticleLight(/* args */) : fPx(0), fPy(0), fPz(0), fE(0), fPdg(0)
  4. {
  5. }
  6. qaParticleLight::~qaParticleLight()
  7. {
  8. }
  9. void qaParticleLight::SetParticle(Float_t _px, Float_t _py, Float_t _pz, Float_t _e, Int_t _pdg, Int_t _charge)
  10. {
  11. fPx = _px;
  12. fPy = _py;
  13. fPz = _pz;
  14. fE = _e;
  15. fPdg = _pdg;
  16. fCharge = _charge;
  17. }
  18. void qaParticleLight::SetParticle(qaParticle *const &_particle)
  19. {
  20. fPx = _particle->GetPx();
  21. fPy = _particle->GetPy();
  22. fPz = _particle->GetPz();
  23. fE = _particle->GetEnergy();
  24. fPdg = _particle->GetPdg();
  25. fCharge = _particle->GetCharge();
  26. }