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