9 #include "G4PhysicalConstants.hh" 10 #include "G4SystemOfUnits.hh" 18 edm::LogInfo(
"SaveSimTrack") <<
"SaveSimTrack:: Save Sim Track if PDG code " 19 <<
"is one from the list of " << pdgs_.size()
21 for (
unsigned int k=0;
k<pdgs_.size(); ++
k)
29 G4Track* theTrack = (G4Track*)((*trk)());
32 int pdg = theTrack->GetDefinition()->GetPDGEncoding();
35 LogDebug(
"SaveSimTrack") <<
"Save SimTrack the Track " 36 << theTrack->GetTrackID() <<
" Type " 37 << theTrack->GetDefinition()->GetParticleName()
38 <<
" Momentum " << theTrack->GetMomentum()/
MeV
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void update(const BeginOfTrack *trk)
This routine will be called when the appropriate signal arrives.
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
SaveSimTrack(edm::ParameterSet const &p)