Imperial Analysis
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
PileupInfo.hh
Go to the documentation of this file.
1 #ifndef ICHiggsTauTau_PileupInfo_hh
2 #define ICHiggsTauTau_PileupInfo_hh
3 #include <string>
4 #include <vector>
5 #include <iostream>
6 #include "Rtypes.h"
7 
8 namespace ic {
9 
14 class PileupInfo {
15  public:
16  PileupInfo();
17  virtual ~PileupInfo();
18  virtual void Print() const;
19 
21 
22  inline int num_interactions() const { return num_interactions_; }
24 
26  inline int bunch_crossing() const { return bunch_crossing_; }
27 
29  inline float true_num_interactions() const { return true_num_interactions_; }
32 
34  inline void set_num_interactions(int const& num_interactions) {
36  num_interactions_ = num_interactions;
37  }
38 
40  inline void set_bunch_crossing(int const& bunch_crossing) {
41  bunch_crossing_ = bunch_crossing;
42  }
43 
46  true_num_interactions_ = true_num_interactions;
47  }
50  private:
51  int num_interactions_;
52  int bunch_crossing_;
53  float true_num_interactions_;
54 
55  #ifndef SKIP_CINT_DICT
56  public:
57  ClassDef(PileupInfo, 2);
58  #endif
59 };
60 
61 typedef std::vector<ic::PileupInfo> PileupInfoCollection;
62 }
64 #endif
Stores information on the in-time or out-of-time simulated pileup interactions.
Definition: PileupInfo.hh:14
int bunch_crossing() const
Bunch crossing where zero implies in-time and non-zero out-of-time.
Definition: PileupInfo.hh:26
void set_bunch_crossing(int const &bunch_crossing)
Bunch crossing where zero implies in-time and non-zero out-of-time.
Definition: PileupInfo.hh:40
virtual ~PileupInfo()
Definition: PileupInfo.cc:8
ClassDef(PileupInfo, 2)
void set_true_num_interactions(float const &true_num_interactions)
True number of interactions used as Poisson mean for sampling.
Definition: PileupInfo.hh:45
std::vector< ic::PileupInfo > PileupInfoCollection
Definition: PileupInfo.hh:61
Definition: CaloJet.hh:9
float true_num_interactions() const
True number of interactions used as Poisson mean for sampling.
Definition: PileupInfo.hh:29
int num_interactions() const
Poisson-sampled number of interactions.
Definition: PileupInfo.hh:23
void set_num_interactions(int const &num_interactions)
Poisson-sampled number of interactions.
Definition: PileupInfo.hh:35
virtual void Print() const
Definition: PileupInfo.cc:10