CMS 3D CMS Logo

SimTracer Class Reference

Description: Prints a message for each Oscar signal. More...

#include <SimG4Core/HelpfulWatchers/interface/SimTracer.h>

Inheritance diagram for SimTracer:

SimWatcher

List of all members.

Public Member Functions

 SimTracer (const edm::ParameterSet &pSet)
void update (const G4Step *iStep)

Private Attributes

bool m_verbose


Detailed Description

Description: Prints a message for each Oscar signal.

Usage: <usage>

Definition at line 45 of file SimTracer.h.


Constructor & Destructor Documentation

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    }


Member Function Documentation

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 }


Member Data Documentation

bool SimTracer::m_verbose [private]

Definition at line 96 of file SimTracer.h.

Referenced by update().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:31:44 2009 for CMSSW by  doxygen 1.5.4