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(edm::ParameterSet const &theConf)
constructor
~LaserTrackingAction() override
destructor
void PostUserTrackingAction(const G4Track *theTrack) override
post tracking action
void PreUserTrackingAction(const G4Track *theTrack) override
pre tracking action