14 for(InputTag
const&
tag : allTags_) {
15 std::shared_ptr<Wrapper<HepMCProduct>
const> shPtr = getProductByTag<HepMCProduct>(ep,
tag, mcc);
17 LogDebug(
"MixingModule") <<
"HepMC pileup objects added, eventNr " << eventNr <<
" Tag " << tag << std::endl;
18 crFrame_->setPileupPtr(shPtr);
19 crFrame_->addPileups(*shPtr->product());
30 for(InputTag
const&
tag : allTags_) {
31 got = e.getByLabel(
tag, result_t);
33 LogDebug(
"MixingModule") <<
"adding HepMCProduct from signal event with " <<
tag;
34 crFrame_->addSignals(result_t.product(), e.id());
39 LogInfo(
"MixingModule") <<
"!!!!!!! Did not get any signal data for HepMCProduct with " << allTags_[0];
47 for(InputTag
const&
tag : allTags_) {
48 got = e.getByLabel(
tag, result_t);
50 InputTag
t = InputTag(
tag.label(),
tag.instance());
51 LogInfo(
"MixingModule") <<
" Will create a CrossingFrame for HepMCProduct with " 52 <<
" with InputTag= "<< t.encode();
void addSignals(const edm::Event &e) override
bool checkSignal(const edm::Event &e) override
void addPileups(const EventPrincipal &ep, ModuleCallingContext const *, unsigned int eventNr) override