![]() |
![]() |
#include <MixingWorker.h>
Public Member Functions | |
template<> | |
void | addPileups (const int bcr, const EventPrincipal &ep, unsigned int eventNr, int vertexoffset) |
template<> | |
void | addPileups (const int bcr, const EventPrincipal &ep, unsigned int eventNr, int vertexoffset) |
template<> | |
void | addPileups (const int bcr, const EventPrincipal &ep, unsigned int eventNr, int vertexoffset) |
template<> | |
void | addPileups (const int bcr, const EventPrincipal &ep, unsigned int eventNr, int vertexoffset) |
template<> | |
void | addPileups (const int bcr, const EventPrincipal &ep, unsigned int eventNr, int vertexoffset) |
template<> | |
void | addPileups (const int bcr, const EventPrincipal &ep, unsigned int eventNr, int vertexoffset) |
template<> | |
void | addPileups (const int bcr, const EventPrincipal &ep, unsigned int eventNr, int vertexoffset) |
template<> | |
void | addPileups (const int bcr, const EventPrincipal &ep, unsigned int eventNr, int vertexoffset) |
template<> | |
void | addPileups (const int bcr, const EventPrincipal &ep, unsigned int eventNr, int vertexoffset) |
template<> | |
void | addPileups (const int bcr, const EventPrincipal &ep, unsigned int eventNr, int vertexoffset) |
template<> | |
void | addSignals (const Event &e) |
template<> | |
bool | checkSignal (const Event &e) |
MixingWorker is an auxiliary class for the MixingModule
void MixingWorker< PCaloHit >::addPileups | ( | const int | bcr, |
const EventPrincipal & | ep, | ||
unsigned int | eventNr, | ||
int | vertexoffset | ||
) |
Definition at line 12 of file MixingWorker.cc.
References LogDebug.
{ boost::shared_ptr<Wrapper<std::vector<PCaloHit> > const> shPtr = edm::getProductByTag<std::vector<PCaloHit> >(ep, tag_); if (shPtr) { LogDebug("MixingModule") <<shPtr->product()->size()<<" pileup objects added, eventNr "<<eventNr; crFrame_->setPileupPtr(shPtr); crFrame_->addPileups(bcr,const_cast< std::vector<PCaloHit> * >(shPtr->product()),eventNr); } }
void MixingWorker< PSimHit >::addPileups | ( | const int | bcr, |
const EventPrincipal & | ep, | ||
unsigned int | eventNr, | ||
int | vertexoffset | ||
) |
Definition at line 24 of file MixingWorker.cc.
References LogDebug.
{ // changed for high/low treatment boost::shared_ptr<Wrapper<std::vector<PSimHit> > const> shPtr = getProductByTag<std::vector<PSimHit> >(ep, tag_); if (shPtr) { LogDebug("MixingModule") <<shPtr->product()->size()<<" pileup objects added, eventNr "<<eventNr; crFrame_->setPileupPtr(shPtr); crFrame_->addPileups(bcr,const_cast< std::vector<PSimHit> * > (shPtr->product()),eventNr); } }
void MixingWorker< SimVertex >::addPileups | ( | const int | bcr, |
const EventPrincipal & | ep, | ||
unsigned int | eventNr, | ||
int | vertexoffset | ||
) |
void MixingWorker< SimTrack >::addPileups | ( | const int | bcr, |
const EventPrincipal & | ep, | ||
unsigned int | eventNr, | ||
int | vertexoffset | ||
) |
void MixingWorker< PSimHit >::addPileups | ( | const int | bcr, |
const EventPrincipal & | ep, | ||
unsigned int | eventNr, | ||
int | vertexoffset | ||
) |
void MixingWorker< SimVertex >::addPileups | ( | const int | bcr, |
const EventPrincipal & | ep, | ||
unsigned int | eventNr, | ||
int | vertexoffset | ||
) |
Definition at line 47 of file MixingWorker.cc.
References LogDebug.
{ // changed to take care of vertexoffset boost::shared_ptr<Wrapper<std::vector<SimVertex> > const> shPtr = getProductByTag<std::vector<SimVertex> >(ep, tag_); if (shPtr) { LogDebug("MixingModule") <<shPtr->product()->size()<<" pileup objects added, eventNr "<<eventNr; vertexoffset+=shPtr->product()->size(); crFrame_->setPileupPtr(shPtr); crFrame_->addPileups(bcr,const_cast< std::vector<SimVertex> * > (shPtr->product()),eventNr); } }
void MixingWorker< PCaloHit >::addPileups | ( | const int | bcr, |
const EventPrincipal & | ep, | ||
unsigned int | eventNr, | ||
int | vertexoffset | ||
) |
void MixingWorker< HepMCProduct >::addPileups | ( | const int | bcr, |
const EventPrincipal & | ep, | ||
unsigned int | eventNr, | ||
int | vertexoffset | ||
) |
void MixingWorker< HepMCProduct >::addPileups | ( | const int | bcr, |
const EventPrincipal & | ep, | ||
unsigned int | eventNr, | ||
int | vertexoffset | ||
) |
Definition at line 61 of file MixingWorker.cc.
References LogDebug.
{ // HepMCProduct does not come as a vector.... boost::shared_ptr<Wrapper<HepMCProduct> const> shPtr = getProductByTag<HepMCProduct>(ep, tag_); if (shPtr) { LogDebug("MixingModule") <<"HepMC pileup objects added, eventNr "<<eventNr << " Tag " << tag_ << std::endl; crFrame_->setPileupPtr(shPtr); crFrame_->addPileups(bcr,const_cast<HepMCProduct*> (shPtr->product()),eventNr); } }
void MixingWorker< SimTrack >::addPileups | ( | const int | bcr, |
const EventPrincipal & | ep, | ||
unsigned int | eventNr, | ||
int | vertexoffset | ||
) |
Definition at line 35 of file MixingWorker.cc.
References LogDebug.
{ // changed to transmit vertexoffset boost::shared_ptr<Wrapper<std::vector<SimTrack> > const> shPtr = getProductByTag<std::vector<SimTrack> >(ep, tag_); if (shPtr) { LogDebug("MixingModule") <<shPtr->product()->size()<<" pileup objects added, eventNr "<<eventNr; crFrame_->setPileupPtr(shPtr); crFrame_->addPileups(bcr,const_cast< std::vector<SimTrack> * > (shPtr->product()),eventNr,vertexoffset); } }
void MixingWorker< HepMCProduct >::addSignals | ( | const Event & | e | ) |
Definition at line 72 of file MixingWorker.cc.
References LogDebug.
{ //HepMC - here the interface is different!!! Handle<HepMCProduct> result_t; bool got = e.getByLabel(tag_,result_t); if (got) { LogDebug("MixingModule") <<" adding HepMCProduct from signal event with "<<tag_; crFrame_->addSignals(result_t.product(),e.id()); } else { LogInfo("MixingModule") <<"!!!!!!! Did not get any signal data for HepMCProduct with "<<tag_; } }
bool MixingWorker< HepMCProduct >::checkSignal | ( | const Event & | e | ) |
Definition at line 85 of file MixingWorker.cc.
References lumiQTWidget::t.
{ bool got; InputTag t; Handle<HepMCProduct> result_t; got = e.getByLabel(tag_,result_t); t = InputTag(tag_.label(),tag_.instance()); if (got) { LogInfo("MixingModule") <<" Will create a CrossingFrame for HepMCProduct with " << " with InputTag= "<< t.encode(); } return got; }