13 #include "G4UImanager.hh" 14 #include "G4TrackingManager.hh" 15 #include "G4SystemOfUnits.hh" 22 endPrintTrackID_(
p.getParameter<
int>(
"EndPrintTrackID")),
23 checkTrack_(
p.getUntrackedParameter<
bool>(
"CheckTrack",
false)),
24 doFineCalo_(
p.getParameter<
bool>(
"DoFineCalo")),
25 saveCaloBoundaryInformation_(
p.getParameter<
bool>(
"SaveCaloBoundaryInformation")),
26 eMinFine_(
p.getParameter<double>(
"EminFineTrack") *
CLHEP::MeV) {
56 double ekin = aTrack->GetKineticEnergy();
59 edm::LogVerbatim(
"DoFineCalo") <<
"PreUserTrackingAction: Start processing track " << aTrack->GetTrackID()
60 <<
" pdgid=" << aTrack->GetDefinition()->GetPDGEncoding()
61 <<
" ekin[GeV]=" << ekin / CLHEP::GeV <<
" vertex[cm]=(" 62 << aTrack->GetVertexPosition().x() / CLHEP::cm <<
"," 63 << aTrack->GetVertexPosition().y() / CLHEP::cm <<
"," 64 << aTrack->GetVertexPosition().z() / CLHEP::cm <<
")" 65 <<
" parentid=" << aTrack->GetParentID();
79 int id = aTrack->GetTrackID();
95 edm::LogVerbatim(
"TrackingAction") <<
"TrackingAction end track=" <<
id <<
" " 96 << aTrack->GetDefinition()->GetParticleName() <<
" ansestor= " << withAncestor
Log< level::Info, true > LogVerbatim
SimTrackManager * trackManager_
CMSSteppingVerbose * steppingVerbose_
TrackWithHistory * currentTrack_
TrackInformation * trkInfo_
TrackingAction(SimTrackManager *, CMSSteppingVerbose *, const edm::ParameterSet &ps)
bool saveCaloBoundaryInformation_
void PreUserTrackingAction(const G4Track *aTrack) override
void cleanTracksWithHistory()
SimActivityRegistry::EndOfTrackSignal m_endOfTrackSignal
void addTrack(TrackWithHistory *iTrack, const G4Track *track, bool inHistory, bool withAncestor)
void PostUserTrackingAction(const G4Track *aTrack) override
void trackStarted(const G4Track *, bool isKilled)
void setCrossedBoundaryPosMom(int id, const math::XYZTLorentzVectorF &position, const math::XYZTLorentzVectorF &momentum)
SimActivityRegistry::BeginOfTrackSignal m_beginOfTrackSignal