Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:39:20

0001 /** \file LaserTrackingAction.cc
0002  *
0003  *
0004  *  $Date: Mon Mar 19 12:21:52 CET 2007 $
0005  *  $Revision: 1.1 $
0006  *  \author Maarten Thomas
0007  */
0008 
0009 #include "Alignment/LaserAlignmentSimulation/interface/LaserTrackingAction.h"
0010 
0011 LaserTrackingAction::LaserTrackingAction(edm::ParameterSet const &theConf) {}
0012 
0013 LaserTrackingAction::~LaserTrackingAction() {}
0014 
0015 void LaserTrackingAction::PreUserTrackingAction(const G4Track *theTrack) {
0016   /* *********************************************************************** */
0017   /* This code is called every time a new Track is created                   */
0018   /* *********************************************************************** */
0019 
0020   if (theTrack->GetParentID() == 0) {
0021     fpTrackingManager->SetStoreTrajectory(true);
0022   } else {
0023     fpTrackingManager->SetStoreTrajectory(true);
0024   }
0025 }
0026 
0027 void LaserTrackingAction::PostUserTrackingAction(const G4Track *theTrack) {
0028   /* *********************************************************************** */
0029   /* This code is called every time a new Track is destroyed                 */
0030   /* *********************************************************************** */
0031 }