Go to the documentation of this file.
67 bool makePCrossingFrame =
false)
92 std::vector<InputTag>
const &
tags)
125 got =
e.getByLabel(
tag_, result_t);
129 LogInfo(
"MixingModule") <<
" Will create a CrossingFrame for " <<
typeid(
T).
name()
130 <<
" with InputTag= " <<
t.encode();
141 bool got =
e.getByLabel(
tag_, result_t);
143 LogDebug(
"MixingModule") <<
" adding " << result_t.
product()->size() <<
" signal objects for "
147 LogInfo(
"MixingModule") <<
"!!!!!!! Did not get any signal data for " <<
typeid(
T).
name() <<
", with " <<
tag_;
163 LogDebug(
"MixingModule") <<
" CF was put for type " <<
typeid(
T).
name() <<
" with " <<
label_;
186 template <
typename T>
188 std::shared_ptr<Wrapper<std::vector<T> >
const> shPtr = getProductByTag<std::vector<T> >(
ep, tag_, mcc);
190 LogDebug(
"MixingModule") << shPtr->product()->size() <<
" pileup objects added, eventNr " << eventNr;
191 crFrame_->setPileupPtr(shPtr);
192 crFrame_->addPileups(*shPtr->product());
200 unsigned int eventNr);
void setSourceOffset(const unsigned int s) override
int getBunchSpace() const
T const * product() const
const std::string labelCF_
void setBcrOffset() override
void createnewEDProduct() override
Log< level::Info, false > LogInfo
unsigned int getMaxNbSources() const
const std::string subdet_
void addSignals(const edm::Event &e) override
const bool makePCrossingFrame_
std::unique_ptr< CrossingFrame< T > > crFrame_
unsigned int getPileupFileNr() const
config
parse the configuration file
std::pair< int, int > getBunchRange() const
const std::vector< unsigned int > & getPileupOffsetsBcr() const
MixingWorker(int minBunch, int maxBunch, int bunchSpace, std::string subdet, std::string label, std::string labelCF, int maxNbSources, InputTag &tag, InputTag &tagCF, std::vector< InputTag > const &tags)
void put(edm::Event &e) override
T const & get(Event const &event, InputTag const &tag) noexcept(false)
std::string getSubDet() const
edm::EventID getIdFirstPileup() const
void reload(const edm::EventSetup &setup) override
virtual void copyPCrossingFrame(const PCrossingFrame< T > *PCF)
std::vector< InputTag > allTags_
std::vector< const T * > getPileups() const
bool checkSignal(const edm::Event &e) override
unsigned const int maxNbSources_
MixingWorker(int minBunch, int maxBunch, int bunchSpace, std::string subdet, std::string label, std::string labelCF, int maxNbSources, InputTag &tag, InputTag &tagCF, bool makePCrossingFrame=false)
void addPileups(const EventPrincipal &ep, ModuleCallingContext const *, unsigned int eventNr) override
const std::vector< std::vector< unsigned int > > & getPileupOffsetsSource() const