#include <BeginOfTrackCounter.h>
Public Member Functions | |
BeginOfTrackCounter (const edm::ParameterSet &) | |
void | produce (edm::Event &, const edm::EventSetup &) |
Private Member Functions | |
BeginOfTrackCounter (const BeginOfTrackCounter &) | |
const BeginOfTrackCounter & | operator= (const BeginOfTrackCounter &) |
void | update (const BeginOfTrack *) |
This routine will be called when the appropriate signal arrives. | |
Private Attributes | |
int | m_count |
std::string | m_label |
Definition at line 33 of file BeginOfTrackCounter.h.
BeginOfTrackCounter::BeginOfTrackCounter | ( | const edm::ParameterSet & | iPSet | ) |
Definition at line 33 of file BeginOfTrackCounter.cc.
References m_label.
: m_count(0), m_label(iPSet.getUntrackedParameter<std::string>("instanceLabel","nBeginOfTracks")) { produces<int>(m_label); }
simwatcher::BeginOfTrackCounter::BeginOfTrackCounter | ( | const BeginOfTrackCounter & | ) | [private] |
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().
void BeginOfTrackCounter::update | ( | const BeginOfTrack * | ) | [private, virtual] |
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.
{ ++m_count; }
int simwatcher::BeginOfTrackCounter::m_count [private] |
Definition at line 54 of file BeginOfTrackCounter.h.
std::string simwatcher::BeginOfTrackCounter::m_label [private] |
Definition at line 55 of file BeginOfTrackCounter.h.
Referenced by BeginOfTrackCounter(), and produce().