8 #include "G4PhysicalConstants.hh" 9 #include <CLHEP/Units/SystemOfUnits.h> 17 edm::LogVerbatim(
"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 const G4Track *theTrack = (*trk)();
28 if (
nullptr != trkInfo) {
29 int pdg = theTrack->GetDefinition()->GetPDGEncoding();
31 trkInfo->setStoreTrack();
32 LogDebug(
"SaveSimTrack") <<
"Save SimTrack the Track " << theTrack->GetTrackID() <<
" Type " 33 << theTrack->GetDefinition()->GetParticleName() <<
" Momentum " 34 << theTrack->GetMomentum() / CLHEP::MeV <<
" MeV/c";
Log< level::Info, true > LogVerbatim
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
T getUntrackedParameter(std::string const &, T const &) const
void update(const BeginOfTrack *trk) override
This routine will be called when the appropriate signal arrives.
SaveSimTrack(edm::ParameterSet const &p)