#include <SimG4Core/HelpfulWatchers/interface/SimTracer.h>
Public Member Functions | |
SimTracer (const edm::ParameterSet &pSet) | |
void | update (const G4Step *iStep) |
Private Attributes | |
bool | m_verbose |
Usage: <usage>
Definition at line 45 of file SimTracer.h.
SimTracer::SimTracer | ( | const edm::ParameterSet & | pSet | ) | [inline] |
Definition at line 58 of file SimTracer.h.
00058 : 00059 m_verbose(pSet.getUntrackedParameter<bool>("verbose",false)) { 00060 }
void SimTracer::update | ( | const G4Step * | iStep | ) | [inline] |
Definition at line 73 of file SimTracer.h.
References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), and m_verbose.
00073 { 00074 std::cout <<"++ signal G4Step " ; 00075 if(m_verbose) { 00076 const G4StepPoint* post = iStep->GetPostStepPoint(); 00077 const G4ThreeVector pos = post->GetPosition(); 00078 std::cout << "( "<<pos.x()<<","<<pos.y()<<","<<pos.z()<<") "; 00079 if(post->GetPhysicalVolume()) { 00080 std::cout << post->GetPhysicalVolume()->GetName(); 00081 } 00082 } 00083 std::cout <<std::endl; 00084 }
bool SimTracer::m_verbose [private] |