24 DataMixingPileupCopy::DataMixingPileupCopy() { }
28 label_(ps.getParameter<
std::
string>(
"Label"))
54 LogDebug(
"DataMixingPileupCopy") <<
"\n===============> adding pileup Info from event "<<ep->
id();
60 std::shared_ptr<Wrapper< std::vector<PileupSummaryInfo> >
const> PileupInfoPTR =
63 std::shared_ptr<Wrapper< int >
const> bsPTR =
79 std::shared_ptr<edm::Wrapper<std::vector<reco::GenParticle> >
const> GenPUProtonsPTR;
82 GenPUProtonsPTR = getProductByTag<std::vector<reco::GenParticle> >( *ep, *it_InputTag , mcc);
83 if( GenPUProtonsPTR !=
nullptr ){
86 }
else edm::LogWarning(
"DataMixingPileupCopy") <<
"Missing product with label: " << ( *it_InputTag ).label();
90 std::shared_ptr<Wrapper<CrossingFramePlaybackInfoNew>
const> PlaybackPTR =
95 FoundPlayback_ =
true;
100 std::unique_ptr<std::vector<PileupSummaryInfo> > PSIVector(
new std::vector<PileupSummaryInfo>);
101 std::unique_ptr<int> bsInt(
new int);
103 std::vector<PileupSummaryInfo>::const_iterator PSiter;
105 PSIVector->push_back(*PSiter);
119 std::unique_ptr<std::vector<reco::GenParticle> > GenPUProtons_ptr(
new std::vector<reco::GenParticle>() );
120 std::vector<reco::GenParticle>::const_iterator it_GenParticle =
GenPUProtons_.at(
idx).begin();
121 std::vector<reco::GenParticle>::const_iterator it_GenParticle_end =
GenPUProtons_.at(
idx).end();
122 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_