CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
SimTracer Class Reference

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

Inheritance diagram for SimTracer:
SimWatcher

Public Member Functions

 SimTracer (const edm::ParameterSet &pSet)
 
void update (const G4Step *iStep)
 
- Public Member Functions inherited from SimWatcher
 SimWatcher ()
 
virtual ~SimWatcher ()
 

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.

58  :
59  m_verbose(pSet.getUntrackedParameter<bool>("verbose",false)) {
60  }
T getUntrackedParameter(std::string const &, T const &) const
bool m_verbose
Definition: SimTracer.h:96

Member Function Documentation

void SimTracer::update ( const G4Step *  iStep)
inline

Definition at line 73 of file SimTracer.h.

References gather_cfg::cout, m_verbose, and pos.

Referenced by python.Vispa.Gui.VispaWidget.VispaWidget::autosize(), python.Vispa.Views.LineDecayView.LineDecayContainer::createObject(), python.Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), python.Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), python.Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), python.Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), python.Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), python.Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), python.Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), python.Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), python.Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), python.Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), python.Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), python.Vispa.Gui.FindDialog.FindDialog::reset(), python.Vispa.Gui.PortConnection.PointToPointConnection::select(), python.Vispa.Gui.VispaWidget.VispaWidget::select(), python.Vispa.Views.LineDecayView.LineDecayContainer::select(), python.Vispa.Gui.VispaWidget.VispaWidget::setText(), python.Vispa.Gui.VispaWidget.VispaWidget::setTitle(), python.Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), python.Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and python.Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

73  {
74  std::cout <<"++ signal G4Step " ;
75  if(m_verbose) {
76  const G4StepPoint* post = iStep->GetPostStepPoint();
77  const G4ThreeVector pos = post->GetPosition();
78  std::cout << "( "<<pos.x()<<","<<pos.y()<<","<<pos.z()<<") ";
79  if(post->GetPhysicalVolume()) {
80  std::cout << post->GetPhysicalVolume()->GetName();
81  }
82  }
83  std::cout <<std::endl;
84 }
bool m_verbose
Definition: SimTracer.h:96
tuple cout
Definition: gather_cfg.py:41

Member Data Documentation

bool SimTracer::m_verbose
private

Definition at line 96 of file SimTracer.h.

Referenced by update().