22 DataMixingPileupCopy::DataMixingPileupCopy() {}
26 : label_(ps.getParameter<
std::
string>(
"Label"))
49 LogDebug(
"DataMixingPileupCopy") <<
"\n===============> adding pileup Info from event " << ep->
id();
55 std::shared_ptr<Wrapper<std::vector<PileupSummaryInfo>>
const> PileupInfoPTR =
72 std::shared_ptr<edm::Wrapper<std::vector<reco::GenParticle>>
const> GenPUProtonsPTR;
76 GenPUProtonsPTR = getProductByTag<std::vector<reco::GenParticle>>(*ep, *it_InputTag, mcc);
77 if (GenPUProtonsPTR !=
nullptr) {
81 edm::LogWarning(
"DataMixingPileupCopy") <<
"Missing product with label: " << (*it_InputTag).label();
85 std::shared_ptr<Wrapper<CrossingFramePlaybackInfoNew>
const> PlaybackPTR =
90 FoundPlayback_ =
true;
95 std::unique_ptr<std::vector<PileupSummaryInfo>> PSIVector(
new std::vector<PileupSummaryInfo>);
96 std::unique_ptr<int> bsInt(
new int);
98 std::vector<PileupSummaryInfo>::const_iterator PSiter;
100 PSIVector->push_back(*PSiter);
106 std::unique_ptr<CrossingFramePlaybackInfoNew> CFPlaybackInfo(
115 std::unique_ptr<std::vector<reco::GenParticle>> GenPUProtons_ptr(
new std::vector<reco::GenParticle>());
116 std::vector<reco::GenParticle>::const_iterator it_GenParticle =
GenPUProtons_.at(
idx).begin();
117 std::vector<reco::GenParticle>::const_iterator it_GenParticle_end =
GenPUProtons_.at(
idx).end();
118 for (; it_GenParticle != it_GenParticle_end; ++it_GenParticle)
119 GenPUProtons_ptr->push_back(*it_GenParticle);
std::vector< std::vector< reco::GenParticle > > GenPUProtons_
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
CrossingFramePlaybackInfoNew CrossingFramePlaybackStorage_
void putPileupInfo(edm::Event &e)
EventID const & id() const
virtual ~DataMixingPileupCopy()
edm::InputTag PileupInfoInputTag_
std::vector< PileupSummaryInfo > PileupSummaryStorage_
std::vector< std::string > GenPUProtons_labels_
std::vector< edm::InputTag > GenPUProtonsInputTags_
edm::InputTag BunchSpacingInputTag_
void addPileupInfo(const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *mcc)
edm::InputTag CFPlaybackInputTag_