CMS 3D CMS Logo

LaserTrackingAction.cc
Go to the documentation of this file.
1 
10 
12 
14 
15 void LaserTrackingAction::PreUserTrackingAction(const G4Track *theTrack) {
16  /* *********************************************************************** */
17  /* This code is called every time a new Track is created */
18  /* *********************************************************************** */
19 
20  if (theTrack->GetParentID() == 0) {
21  fpTrackingManager->SetStoreTrajectory(true);
22  } else {
23  fpTrackingManager->SetStoreTrajectory(true);
24  }
25 }
26 
27 void LaserTrackingAction::PostUserTrackingAction(const G4Track *theTrack) {
28  /* *********************************************************************** */
29  /* This code is called every time a new Track is destroyed */
30  /* *********************************************************************** */
31 }
LaserTrackingAction::PostUserTrackingAction
void PostUserTrackingAction(const G4Track *theTrack) override
post tracking action
Definition: LaserTrackingAction.cc:27
LaserTrackingAction::PreUserTrackingAction
void PreUserTrackingAction(const G4Track *theTrack) override
pre tracking action
Definition: LaserTrackingAction.cc:15
edm::ParameterSet
Definition: ParameterSet.h:36
LaserTrackingAction::~LaserTrackingAction
~LaserTrackingAction() override
destructor
Definition: LaserTrackingAction.cc:13
LaserTrackingAction.h
LaserTrackingAction::LaserTrackingAction
LaserTrackingAction(edm::ParameterSet const &theConf)
constructor
Definition: LaserTrackingAction.cc:11