29 DataMixingPileupCopy::DataMixingPileupCopy() { }
33 label_(ps.getParameter<
std::
string>(
"Label"))
59 LogDebug(
"DataMixingPileupCopy") <<
"\n===============> adding pileup Info from event "<<ep->
id();
65 std::shared_ptr<Wrapper< std::vector<PileupSummaryInfo> >
const> PileupInfoPTR =
68 std::shared_ptr<Wrapper< int >
const> bsPTR =
84 std::shared_ptr<edm::Wrapper<std::vector<reco::GenParticle> >
const> GenPUProtonsPTR;
87 GenPUProtonsPTR = getProductByTag<std::vector<reco::GenParticle> >( *ep, *it_InputTag , mcc);
88 if( GenPUProtonsPTR !=
nullptr ){
91 }
else edm::LogWarning(
"DataMixingPileupCopy") <<
"Missing product with label: " << ( *it_InputTag ).label();
95 std::shared_ptr<Wrapper<CrossingFramePlaybackInfoNew>
const> PlaybackPTR =
100 FoundPlayback_ =
true;
105 std::unique_ptr<std::vector<PileupSummaryInfo> > PSIVector(
new std::vector<PileupSummaryInfo>);
106 std::unique_ptr<int> bsInt(
new int);
108 std::vector<PileupSummaryInfo>::const_iterator PSiter;
110 PSIVector->push_back(*PSiter);
124 std::unique_ptr<std::vector<reco::GenParticle> > GenPUProtons_ptr(
new std::vector<reco::GenParticle>() );
125 std::vector<reco::GenParticle>::const_iterator it_GenParticle =
GenPUProtons_.at(
idx).begin();
126 std::vector<reco::GenParticle>::const_iterator it_GenParticle_end =
GenPUProtons_.at(
idx).end();
127 for(; it_GenParticle != it_GenParticle_end; ++ it_GenParticle) 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_