CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/Alignment/LaserAlignmentSimulation/src/LaserTrackingAction.cc

Go to the documentation of this file.
00001 
00009 #include "Alignment/LaserAlignmentSimulation/interface/LaserTrackingAction.h"
00010 
00011 LaserTrackingAction::LaserTrackingAction(edm::ParameterSet const& theConf) 
00012 {
00013 }
00014 
00015 LaserTrackingAction::~LaserTrackingAction()
00016 {
00017 }
00018 
00019 void LaserTrackingAction::PreUserTrackingAction(const G4Track * theTrack)
00020 {
00021   /* *********************************************************************** */
00022   /* This code is called every time a new Track is created                   */
00023   /* *********************************************************************** */
00024 
00025    if ( theTrack->GetParentID()==0 )
00026      { fpTrackingManager->SetStoreTrajectory(true); }
00027    else
00028      { fpTrackingManager->SetStoreTrajectory(true); }
00029 
00030 }
00031 
00032 void LaserTrackingAction::PostUserTrackingAction(const G4Track * theTrack)
00033 {
00034   /* *********************************************************************** */
00035   /* This code is called every time a new Track is destroyed                 */
00036   /* *********************************************************************** */
00037 }