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

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