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 Member Functions | Private Attributes
simwatcher::BeginOfTrackCounter Class Reference

#include <BeginOfTrackCounter.h>

Inheritance diagram for simwatcher::BeginOfTrackCounter:
SimProducer Observer< const BeginOfTrack * > SimWatcher

Public Member Functions

 BeginOfTrackCounter (const edm::ParameterSet &)
 
void produce (edm::Event &, const edm::EventSetup &)
 
- Public Member Functions inherited from SimProducer
void registerProducts (edm::EDProducer &iProd)
 
 SimProducer ()
 
- Public Member Functions inherited from SimWatcher
 SimWatcher ()
 
virtual ~SimWatcher ()
 
- Public Member Functions inherited from Observer< const BeginOfTrack * >
 Observer ()
 
void slotForUpdate (const BeginOfTrack *iT)
 
virtual ~Observer ()
 

Private Member Functions

 BeginOfTrackCounter (const BeginOfTrackCounter &)
 
const BeginOfTrackCounteroperator= (const BeginOfTrackCounter &)
 
void update (const BeginOfTrack *)
 This routine will be called when the appropriate signal arrives. More...
 

Private Attributes

int m_count
 
std::string m_label
 

Additional Inherited Members

- Protected Member Functions inherited from SimProducer
template<class T >
void produces ()
 
template<class T >
void produces (const std::string &instanceName)
 

Detailed Description

Definition at line 33 of file BeginOfTrackCounter.h.

Constructor & Destructor Documentation

BeginOfTrackCounter::BeginOfTrackCounter ( const edm::ParameterSet iPSet)

Definition at line 33 of file BeginOfTrackCounter.cc.

References m_label.

33  :
34  m_count(0),
35  m_label(iPSet.getUntrackedParameter<std::string>("instanceLabel","nBeginOfTracks"))
36 {
37  produces<int>(m_label);
38 }
T getUntrackedParameter(std::string const &, T const &) const
simwatcher::BeginOfTrackCounter::BeginOfTrackCounter ( const BeginOfTrackCounter )
private

Member Function Documentation

const BeginOfTrackCounter& simwatcher::BeginOfTrackCounter::operator= ( const BeginOfTrackCounter )
private
void BeginOfTrackCounter::produce ( edm::Event e,
const edm::EventSetup  
)
virtual

Implements SimProducer.

Definition at line 46 of file BeginOfTrackCounter.cc.

References m_count, m_label, and edm::Event::put().

47 {
48  std::auto_ptr<int> product(new int(m_count));
49  e.put(product,m_label);
50  m_count = 0;
51 }
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:85
void BeginOfTrackCounter::update ( const BeginOfTrack )
privatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const BeginOfTrack * >.

Definition at line 54 of file BeginOfTrackCounter.cc.

References m_count.

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().

Member Data Documentation

int simwatcher::BeginOfTrackCounter::m_count
private

Definition at line 54 of file BeginOfTrackCounter.h.

Referenced by produce(), and update().

std::string simwatcher::BeginOfTrackCounter::m_label
private

Definition at line 55 of file BeginOfTrackCounter.h.

Referenced by BeginOfTrackCounter(), and produce().