CMS 3D CMS Logo

PreMixingPileupCopy.h
Go to the documentation of this file.
1 #ifndef SimGeneral_PreMixingModule_PreMixingPileupCopy_h
2 #define SimGeneral_PreMixingModule_PreMixingPileupCopy_h
3 
16 
19 
22 
23 #include <vector>
24 #include <string>
25 
26 namespace reco {
27  class GenParticle;
28 }
30 
31 namespace edm {
32  class ModuleCallingContext;
33 
35  public:
37  ~PreMixingPileupCopy() = default;
38 
39  float getTrueNumInteractions(PileUpEventPrincipal const& pep) const;
40 
41  void addPileupInfo(PileUpEventPrincipal const& pep);
42  const std::vector<PileupSummaryInfo>& getPileupSummaryInfo() const { return pileupSummaryStorage_; }
43  int getBunchSpacing() const { return bsStorage_; }
44  void putPileupInfo(edm::Event& e);
45 
46  private:
47  edm::InputTag pileupInfoInputTag_; // InputTag for PileupSummaryInfo
48  edm::InputTag bunchSpacingInputTag_; // InputTag for bunch spacing int
49  edm::InputTag cfPlaybackInputTag_; // InputTag for CrossingFrame Playback information
50 
51  std::vector<edm::InputTag> genPUProtonsInputTags_;
52 
53  // deliver data from addPileupInfo() to getPileupInfo() and putPileupInfo()
55  std::vector<PileupSummaryInfo> pileupSummaryStorage_;
57 
58  std::vector<std::string> genPUProtons_labels_;
59  std::vector<std::vector<reco::GenParticle> > genPUProtons_;
60 
62  };
63 } // namespace edm
64 
65 #endif
Handle.h
PileupSummaryInfo.h
edm::PreMixingPileupCopy::getBunchSpacing
int getBunchSpacing() const
Definition: PreMixingPileupCopy.h:43
CrossingFramePlaybackInfoNew.h
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::PreMixingPileupCopy::pileupSummaryStorage_
std::vector< PileupSummaryInfo > pileupSummaryStorage_
Definition: PreMixingPileupCopy.h:55
edm::PreMixingPileupCopy::putPileupInfo
void putPileupInfo(edm::Event &e)
Definition: PreMixingPileupCopy.cc:81
edm::PreMixingPileupCopy::genPUProtonsInputTags_
std::vector< edm::InputTag > genPUProtonsInputTags_
Definition: PreMixingPileupCopy.h:51
PileUpEventPrincipal
Definition: PileUpEventPrincipal.h:19
edm::PreMixingPileupCopy::bsStorage_
int bsStorage_
Definition: PreMixingPileupCopy.h:56
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
edm::PreMixingPileupCopy::cfPlaybackInputTag_
edm::InputTag cfPlaybackInputTag_
Definition: PreMixingPileupCopy.h:49
GenParticle
Definition: GenParticle.py:1
ProducesCollector.h
CrossingFramePlaybackInfoNew
Definition: CrossingFramePlaybackInfoNew.h:23
edm::PreMixingPileupCopy::bunchSpacingInputTag_
edm::InputTag bunchSpacingInputTag_
Definition: PreMixingPileupCopy.h:48
edm::PreMixingPileupCopy::PreMixingPileupCopy
PreMixingPileupCopy(const edm::ParameterSet &ps, edm::ProducesCollector, edm::ConsumesCollector &&iC)
Definition: PreMixingPileupCopy.cc:12
edm::PreMixingPileupCopy
Definition: PreMixingPileupCopy.h:34
edm::PreMixingPileupCopy::getTrueNumInteractions
float getTrueNumInteractions(PileUpEventPrincipal const &pep) const
Definition: PreMixingPileupCopy.cc:28
edm::PreMixingPileupCopy::genPUProtons_labels_
std::vector< std::string > genPUProtons_labels_
Definition: PreMixingPileupCopy.h:58
edm::PreMixingPileupCopy::crossingFramePlaybackStorage_
CrossingFramePlaybackInfoNew crossingFramePlaybackStorage_
Definition: PreMixingPileupCopy.h:54
ProductID.h
edm::PreMixingPileupCopy::getPileupSummaryInfo
const std::vector< PileupSummaryInfo > & getPileupSummaryInfo() const
Definition: PreMixingPileupCopy.h:42
edm::PreMixingPileupCopy::addPileupInfo
void addPileupInfo(PileUpEventPrincipal const &pep)
Definition: PreMixingPileupCopy.cc:41
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
edm::PreMixingPileupCopy::~PreMixingPileupCopy
~PreMixingPileupCopy()=default
edm::ProducesCollector
Definition: ProducesCollector.h:43
edm::PreMixingPileupCopy::foundPlayback_
bool foundPlayback_
Definition: PreMixingPileupCopy.h:61
edm::PreMixingPileupCopy::pileupInfoInputTag_
edm::InputTag pileupInfoInputTag_
Definition: PreMixingPileupCopy.h:47
ConsumesCollector.h
ParameterSet.h
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
edm::PreMixingPileupCopy::genPUProtons_
std::vector< std::vector< reco::GenParticle > > genPUProtons_
Definition: PreMixingPileupCopy.h:59
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37