CMS 3D CMS Logo

GenHIEvent.h
Go to the documentation of this file.
1 #ifndef SimDataFormats_GenHIEvent_h
2 #define SimDataFormats_GenHIEvent_h
3 
6 
7 namespace edm {
8  class GenHIEvent {
9  public:
10  typedef std::vector<std::vector<reco::GenParticleRef> > SubEventCollection;
11 
13  : b_(-99),
14  npart_(-99),
15  ncoll_(-99),
16  nhard_(-99),
17  phi_(-99),
18  eccentricity_(-99),
19  nCharged_(-99),
20  nChargedMR_(-99),
21  meanPt_(-99),
22  meanPtMR_(-99),
23  EtMR_(-99),
24  nChargedPtCut_(-99),
25  nChargedPtCutMR_(-99) {
26  subevents_.reserve(0);
27  ;
28  }
29 
30  GenHIEvent(double b,
31  int npart,
32  int ncoll,
33  int nhard,
34  double phi,
35  double ecc = -99,
36  double nCharged = -99,
37  double nChargedMR = -99,
38  double meanPt = -99,
39  double meanPtMR = -99,
40  double EtMR = -99,
41  int nChargedPtCut = -99,
42  int nChargedPtCutMR = -99)
43  : b_(b),
44  npart_(npart),
45  ncoll_(ncoll),
46  nhard_(nhard),
47  phi_(phi),
48  eccentricity_(ecc),
50  nChargedMR_(nChargedMR),
51  meanPt_(meanPt),
52  meanPtMR_(meanPtMR),
53  EtMR_(EtMR),
54  nChargedPtCut_(nChargedPtCut),
55  nChargedPtCutMR_(nChargedPtCutMR) {
56  subevents_.reserve(0);
57  ;
58  }
59 
60  virtual ~GenHIEvent() {}
61 
62  double b() const { return b_; }
63  int Npart() const { return npart_; }
64  int Ncoll() const { return ncoll_; }
65  int Nhard() const { return nhard_; }
66  double evtPlane() const { return phi_; }
67  double eccentricity() const { return eccentricity_; }
68  int Ncharged() const { return nCharged_; }
69  int NchargedMR() const { return nChargedMR_; }
70  double MeanPt() const { return meanPt_; }
71  double MeanPtMR() const { return meanPtMR_; }
72  double EtMR() const { return EtMR_; }
73  int NchargedPtCut() const { return nChargedPtCut_; }
74  int NchargedPtCutMR() const { return nChargedPtCutMR_; }
76  const std::vector<reco::GenParticleRef> getSubEvent(unsigned int sub_id) const;
77 
78  int getNsubs() const { return subevents_.size(); }
79 
80  private:
81  SubEventCollection subevents_;
82  int sel_;
83 
84  double b_;
85  int npart_;
86  int ncoll_;
87  int nhard_;
88  double phi_;
89  double eccentricity_;
90  int nCharged_;
92  double meanPt_;
93  double meanPtMR_;
94  double EtMR_;
97  };
98 } // namespace edm
99 #endif
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
int NchargedMR() const
Definition: GenHIEvent.h:69
GenHIEvent(double b, int npart, int ncoll, int nhard, double phi, double ecc=-99, double nCharged=-99, double nChargedMR=-99, double meanPt=-99, double meanPtMR=-99, double EtMR=-99, int nChargedPtCut=-99, int nChargedPtCutMR=-99)
Definition: GenHIEvent.h:30
double b() const
Definition: GenHIEvent.h:62
void setGenParticles(const reco::GenParticleCollection *)
Definition: GenHIEvent.cc:5
int nChargedPtCutMR_
Definition: GenHIEvent.h:96
const std::vector< reco::GenParticleRef > getSubEvent(unsigned int sub_id) const
Definition: GenHIEvent.cc:18
double npart
Definition: HydjetWrapper.h:49
int Ncharged() const
Definition: GenHIEvent.h:68
double eccentricity_
Definition: GenHIEvent.h:89
double MeanPtMR() const
Definition: GenHIEvent.h:71
int Ncoll() const
Definition: GenHIEvent.h:64
SubEventCollection subevents_
Definition: GenHIEvent.h:81
double meanPtMR_
Definition: GenHIEvent.h:93
int NchargedPtCutMR() const
Definition: GenHIEvent.h:74
int NchargedPtCut() const
Definition: GenHIEvent.h:73
double meanPt_
Definition: GenHIEvent.h:92
int Npart() const
Definition: GenHIEvent.h:63
HLT enums.
std::vector< std::vector< reco::GenParticleRef > > SubEventCollection
Definition: GenHIEvent.h:10
virtual ~GenHIEvent()
Definition: GenHIEvent.h:60
int Nhard() const
Definition: GenHIEvent.h:65
double eccentricity() const
Definition: GenHIEvent.h:67
double evtPlane() const
Definition: GenHIEvent.h:66
int getNsubs() const
Definition: GenHIEvent.h:78
double EtMR() const
Definition: GenHIEvent.h:72
double MeanPt() const
Definition: GenHIEvent.h:70