#include <MixingWorker.h>
Public Member Functions | |
virtual void | addPileups (const EventPrincipal &ep, unsigned int eventNr) |
virtual void | addSignals (const edm::Event &e) |
virtual bool | checkSignal (const edm::Event &e) |
virtual void | copyPCrossingFrame (const PCrossingFrame< T > *PCF) |
virtual void | createnewEDProduct () |
MixingWorker () | |
MixingWorker (int minBunch, int maxBunch, int bunchSpace, std::string subdet, std::string label, std::string labelCF, int maxNbSources, InputTag &tag, InputTag &tagCF) | |
virtual void | put (edm::Event &e) |
virtual void | reload (const edm::EventSetup &setup) |
virtual void | setBcrOffset () |
virtual void | setSourceOffset (const unsigned int s) |
void | setTof () |
virtual | ~MixingWorker () |
Private Attributes | |
int | bunchSpace_ |
CrossingFrame< T > * | crFrame_ |
std::string const | label_ |
std::string const | labelCF_ |
int | maxBunch_ |
unsigned int const | maxNbSources_ |
int | minBunch_ |
PCrossingFrame< T > * | secSourceCF_ |
std::string const | subdet_ |
InputTag | tag_ |
InputTag | tagSignal_ |
Definition at line 40 of file MixingWorker.h.
edm::MixingWorker< T >::MixingWorker | ( | ) | [inline, explicit] |
standard constructor
Definition at line 45 of file MixingWorker.h.
References edm::MixingWorker< T >::tag_, and edm::MixingWorker< T >::tagSignal_.
: minBunch_(-5), maxBunch_(3), bunchSpace_(75), subdet_(std::string(" ")), label_(std::string(" ")), labelCF_(std::string(" ")), maxNbSources_(5) { tag_=InputTag(); tagSignal_=InputTag(); }
edm::MixingWorker< T >::MixingWorker | ( | int | minBunch, |
int | maxBunch, | ||
int | bunchSpace, | ||
std::string | subdet, | ||
std::string | label, | ||
std::string | labelCF, | ||
int | maxNbSources, | ||
InputTag & | tag, | ||
InputTag & | tagCF | ||
) | [inline] |
Definition at line 58 of file MixingWorker.h.
: MixingWorkerBase(), minBunch_(minBunch), maxBunch_(maxBunch), bunchSpace_(bunchSpace), subdet_(subdet), label_(label), labelCF_(labelCF), maxNbSources_(maxNbSources), tag_(tag), tagSignal_(tagCF) { }
virtual edm::MixingWorker< T >::~MixingWorker | ( | ) | [inline, virtual] |
void MixingWorker::addPileups | ( | const EventPrincipal & | ep, |
unsigned int | eventNr | ||
) | [virtual] |
Implements edm::MixingWorkerBase.
Definition at line 154 of file MixingWorker.h.
References LogDebug.
virtual void edm::MixingWorker< T >::addSignals | ( | const edm::Event & | e | ) | [inline, virtual] |
Implements edm::MixingWorkerBase.
Definition at line 109 of file MixingWorker.h.
References edm::MixingWorker< T >::crFrame_, edm::Event::getByLabel(), edm::EventBase::id(), LogDebug, mergeVDriftHistosByStation::name, edm::Handle< T >::product(), and edm::MixingWorker< T >::tag_.
{ edm::Handle<std::vector<T> > result_t; bool got = e.getByLabel(tag_,result_t); if (got) { LogDebug("MixingModule") <<" adding " << result_t.product()->size()<<" signal objects for "<<typeid(T).name()<<" with "<<tag_; crFrame_->addSignals(result_t.product(),e.id()); } else { LogInfo("MixingModule") <<"!!!!!!! Did not get any signal data for "<<typeid(T).name()<<", with "<<tag_; } }
virtual bool edm::MixingWorker< T >::checkSignal | ( | const edm::Event & | e | ) | [inline, virtual] |
Steps in BMixingModule::produce
Implements edm::MixingWorkerBase.
Definition at line 90 of file MixingWorker.h.
References edm::InputTag::encode(), edm::Event::getByLabel(), edm::InputTag::instance(), edm::InputTag::label(), mergeVDriftHistosByStation::name, lumiQTWidget::t, and edm::MixingWorker< T >::tag_.
{ bool got; InputTag t; edm::Handle<std::vector<T> > result_t; got = e.getByLabel(tag_,result_t); t = InputTag(tag_.label(),tag_.instance()); if (got) LogInfo("MixingModule") <<" Will create a CrossingFrame for "<< typeid(T).name() << " with InputTag= "<< t.encode(); return got; }
void MixingWorker::copyPCrossingFrame | ( | const PCrossingFrame< T > * | PCF | ) | [virtual] |
Definition at line 171 of file MixingWorker.h.
References PCrossingFrame< T >::getBunchRange(), PCrossingFrame< T >::getBunchSpace(), PCrossingFrame< T >::getIdFirstPileup(), PCrossingFrame< T >::getMaxNbSources(), PCrossingFrame< T >::getPileupFileNr(), PCrossingFrame< T >::getPileupOffsetsBcr(), PCrossingFrame< T >::getPileupOffsetsSource(), PCrossingFrame< T >::getPileups(), and PCrossingFrame< T >::getSubDet().
{ crFrame_->setBunchRange(PCF->getBunchRange()); crFrame_->setBunchSpace(PCF->getBunchSpace()); crFrame_->setMaxNbSources(PCF->getMaxNbSources()); crFrame_->setSubDet(PCF->getSubDet()); crFrame_->setPileupOffsetsBcr(PCF->getPileupOffsetsBcr()); crFrame_->setPileupOffsetsSource(PCF->getPileupOffsetsSource()); crFrame_->setPileups(PCF->getPileups()); // For playback option crFrame_->setPileupFileNr(PCF->getPileupFileNr()); crFrame_->setIdFirstPileup(PCF->getIdFirstPileup()); }
virtual void edm::MixingWorker< T >::createnewEDProduct | ( | ) | [inline, virtual] |
Implements edm::MixingWorkerBase.
Definition at line 105 of file MixingWorker.h.
References edm::MixingWorker< T >::bunchSpace_, edm::MixingWorker< T >::crFrame_, edm::MixingWorker< T >::maxBunch_, edm::MixingWorker< T >::maxNbSources_, edm::MixingWorker< T >::minBunch_, and edm::MixingWorker< T >::subdet_.
virtual void edm::MixingWorker< T >::put | ( | edm::Event & | e | ) | [inline, virtual] |
Implements edm::MixingWorkerBase.
Definition at line 127 of file MixingWorker.h.
References edm::MixingWorker< T >::crFrame_, edm::MixingWorker< T >::label_, LogDebug, mergeVDriftHistosByStation::name, and edm::Event::put().
virtual void edm::MixingWorker< T >::reload | ( | const edm::EventSetup & | setup | ) | [inline, virtual] |
Reimplemented from edm::MixingWorkerBase.
Definition at line 80 of file MixingWorker.h.
References edm::MixingWorker< T >::bunchSpace_, HDQMDatabaseProducer::config, edm::EventSetup::get(), edm::MixingWorker< T >::maxBunch_, and edm::MixingWorker< T >::minBunch_.
{ //get the required parameters from DB. // watch the label/tag edm::ESHandle<MixingModuleConfig> config; setup.get<MixingRcd>().get(config); minBunch_=config->minBunch(); maxBunch_=config->maxBunch(); bunchSpace_=config->bunchSpace(); }
virtual void edm::MixingWorker< T >::setBcrOffset | ( | ) | [inline, virtual] |
Implements edm::MixingWorkerBase.
Definition at line 122 of file MixingWorker.h.
References edm::MixingWorker< T >::crFrame_.
{crFrame_->setBcrOffset();}
virtual void edm::MixingWorker< T >::setSourceOffset | ( | const unsigned int | s | ) | [inline, virtual] |
Implements edm::MixingWorkerBase.
Definition at line 123 of file MixingWorker.h.
References edm::MixingWorker< T >::crFrame_.
void MixingWorker::setTof | ( | ) | [virtual] |
int edm::MixingWorker< T >::bunchSpace_ [private] |
Definition at line 141 of file MixingWorker.h.
Referenced by edm::MixingWorker< T >::createnewEDProduct(), and edm::MixingWorker< T >::reload().
CrossingFrame<T>* edm::MixingWorker< T >::crFrame_ [private] |
Definition at line 149 of file MixingWorker.h.
Referenced by edm::MixingWorker< T >::addSignals(), edm::MixingWorker< T >::createnewEDProduct(), edm::MixingWorker< T >::put(), edm::MixingWorker< T >::setBcrOffset(), and edm::MixingWorker< T >::setSourceOffset().
std::string const edm::MixingWorker< T >::label_ [private] |
Definition at line 143 of file MixingWorker.h.
Referenced by edm::MixingWorker< T >::put().
std::string const edm::MixingWorker< T >::labelCF_ [private] |
Definition at line 144 of file MixingWorker.h.
int edm::MixingWorker< T >::maxBunch_ [private] |
Definition at line 140 of file MixingWorker.h.
Referenced by edm::MixingWorker< T >::createnewEDProduct(), and edm::MixingWorker< T >::reload().
unsigned int const edm::MixingWorker< T >::maxNbSources_ [private] |
Definition at line 145 of file MixingWorker.h.
Referenced by edm::MixingWorker< T >::createnewEDProduct().
int edm::MixingWorker< T >::minBunch_ [private] |
Definition at line 139 of file MixingWorker.h.
Referenced by edm::MixingWorker< T >::createnewEDProduct(), and edm::MixingWorker< T >::reload().
PCrossingFrame<T>* edm::MixingWorker< T >::secSourceCF_ [private] |
Definition at line 150 of file MixingWorker.h.
std::string const edm::MixingWorker< T >::subdet_ [private] |
Definition at line 142 of file MixingWorker.h.
Referenced by edm::MixingWorker< T >::createnewEDProduct().
InputTag edm::MixingWorker< T >::tag_ [private] |
Definition at line 146 of file MixingWorker.h.
Referenced by edm::MixingWorker< T >::addSignals(), edm::MixingWorker< T >::checkSignal(), and edm::MixingWorker< T >::MixingWorker().
InputTag edm::MixingWorker< T >::tagSignal_ [private] |
Definition at line 147 of file MixingWorker.h.
Referenced by edm::MixingWorker< T >::MixingWorker().