15 #include <TDatabasePDG.h>
16 #include <TParticlePDG.h>
28 FairIon::FairIon(
const char* name, Int_t z, Int_t a, Int_t q, Double_t e, Double_t mass)
29 : TNamed(name,
"User defined ion")
37 TDatabasePDG* pdgDB = TDatabasePDG::Instance();
38 TParticlePDG* kProton = pdgDB->GetParticle(2212);
39 Double_t kProtonMass = kProton->Mass();
42 fMass = kProtonMass * Double_t(a);
46 LOG(info) <<
"New Ion " << name <<
" Z=" << z <<
" A=" << a <<
" Charge=" << q <<
" Mass=" << fMass <<
" GeV ";
ClassImp(FairEventBuilder)