64 bool makePCrossingFrame =
false)
89 std::vector<InputTag>
const &
tags)
118 got =
e.getByLabel(
tag_, result_t);
122 LogInfo(
"MixingModule") <<
" Will create a CrossingFrame for " <<
typeid(
T).
name()
123 <<
" with InputTag= " <<
t.encode();
134 bool got =
e.getByLabel(
tag_, result_t);
136 LogDebug(
"MixingModule") <<
" adding " << result_t.
product()->size() <<
" signal objects for " 140 LogInfo(
"MixingModule") <<
"!!!!!!! Did not get any signal data for " <<
typeid(
T).
name() <<
", with " <<
tag_;
156 LogDebug(
"MixingModule") <<
" CF was put for type " <<
typeid(
T).
name() <<
" with " <<
label_;
179 template <
typename T>
181 std::shared_ptr<Wrapper<std::vector<T> >
const> shPtr = getProductByTag<std::vector<T> >(
ep, tag_, mcc);
183 LogDebug(
"MixingModule") << shPtr->product()->size() <<
" pileup objects added, eventNr " << eventNr;
184 crFrame_->setPileupPtr(shPtr);
185 crFrame_->addPileups(*shPtr->product());
193 unsigned int eventNr);
void addSignals(const edm::Event &e) override
std::unique_ptr< CrossingFrame< T > > crFrame_
bool const makePCrossingFrame_
unsigned int getPileupFileNr() const
edm::EventID getIdFirstPileup() const
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)
T const * product() const
std::pair< int, int > getBunchRange() const
std::string const labelCF_
bool checkSignal(const edm::Event &e) override
void setSourceOffset(const unsigned int s) override
void put(edm::Event &e) override
void addPileups(const EventPrincipal &ep, ModuleCallingContext const *, unsigned int eventNr) override
const std::vector< std::vector< unsigned int > > & getPileupOffsetsSource() const
virtual void copyPCrossingFrame(const PCrossingFrame< T > *PCF)
std::string getSubDet() 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)
const std::vector< unsigned int > & getPileupOffsetsBcr() const
int getBunchSpace() const
Log< level::Info, false > LogInfo
std::vector< InputTag > allTags_
void setBcrOffset() override
unsigned int getMaxNbSources() const
std::vector< const T * > getPileups() const
void reload(int minBunch, int maxBunch, int bunchSpace) override
std::string const subdet_
void createnewEDProduct() override
unsigned int const maxNbSources_