CMS 3D CMS Logo

LaserTrackingAction.cc
Go to the documentation of this file.
1 
10 
12 {
13 }
14 
16 {
17 }
18 
19 void LaserTrackingAction::PreUserTrackingAction(const G4Track * theTrack)
20 {
21  /* *********************************************************************** */
22  /* This code is called every time a new Track is created */
23  /* *********************************************************************** */
24 
25  if ( theTrack->GetParentID()==0 )
26  { fpTrackingManager->SetStoreTrajectory(true); }
27  else
28  { fpTrackingManager->SetStoreTrajectory(true); }
29 
30 }
31 
32 void LaserTrackingAction::PostUserTrackingAction(const G4Track * theTrack)
33 {
34  /* *********************************************************************** */
35  /* This code is called every time a new Track is destroyed */
36  /* *********************************************************************** */
37 }
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