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 progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), relval_steps.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and 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:121

Member Data Documentation

bool SimTracer::m_verbose
private

Definition at line 96 of file SimTracer.h.

Referenced by update().