test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
11  typedef std::vector<std::vector<reco::GenParticleRef> > SubEventCollection;
12 
14  b_(-99),
15  npart_(-99),
16  ncoll_(-99),
17  nhard_(-99),
18  phi_(-99),
19  eccentricity_(-99),
20  nCharged_(-99),
21  nChargedMR_(-99),
22  meanPt_(-99),
23  meanPtMR_(-99),
24  EtMR_(-99),
25  nChargedPtCut_(-99),
26  nChargedPtCutMR_(-99)
27  {
28  subevents_.reserve(0);
29  ;}
30 
31  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) :
32  b_(b),
33  npart_(npart),
34  ncoll_(ncoll),
35  nhard_(nhard),
36  phi_(phi),
37  eccentricity_(ecc),
39  nChargedMR_(nChargedMR),
40  meanPt_(meanPt),
41  meanPtMR_(meanPtMR),
42  EtMR_(EtMR),
43  nChargedPtCut_(nChargedPtCut),
44  nChargedPtCutMR_(nChargedPtCutMR)
45  {
46  subevents_.reserve(0);
47  ;}
48 
49 
50 
51 
52  virtual ~GenHIEvent() {}
53 
54  double b() const {return b_;}
55  int Npart() const {return npart_;}
56  int Ncoll() const {return ncoll_;}
57  int Nhard() const {return nhard_;}
58  double evtPlane() const {return phi_;}
59  double eccentricity() const {return eccentricity_;}
60  int Ncharged() const {return nCharged_;}
61  int NchargedMR() const {return nChargedMR_;}
62  double MeanPt() const {return meanPt_;}
63  double MeanPtMR() const {return meanPtMR_;}
64  double EtMR() const {return EtMR_;}
65  int NchargedPtCut() const {return nChargedPtCut_;}
66  int NchargedPtCutMR() const {return nChargedPtCutMR_;}
68  const std::vector<reco::GenParticleRef> getSubEvent(unsigned int sub_id) const;
69 
70  int getNsubs() const {return subevents_.size();}
71 
72  private:
73 
75  int sel_;
76 
77  double b_;
78  int npart_;
79  int ncoll_;
80  int nhard_;
81  double phi_;
82  double eccentricity_;
83  int nCharged_;
85  double meanPt_;
86  double meanPtMR_;
87  double EtMR_;
90 
91  };
92 }
93 #endif
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
int NchargedMR() const
Definition: GenHIEvent.h:61
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:31
double b() const
Definition: GenHIEvent.h:54
void setGenParticles(const reco::GenParticleCollection *)
Definition: GenHIEvent.cc:5
int nChargedPtCutMR_
Definition: GenHIEvent.h:89
const std::vector< reco::GenParticleRef > getSubEvent(unsigned int sub_id) const
Definition: GenHIEvent.cc:18
int Ncharged() const
Definition: GenHIEvent.h:60
double eccentricity_
Definition: GenHIEvent.h:82
double MeanPtMR() const
Definition: GenHIEvent.h:63
int Ncoll() const
Definition: GenHIEvent.h:56
SubEventCollection subevents_
Definition: GenHIEvent.h:74
double meanPtMR_
Definition: GenHIEvent.h:86
int NchargedPtCutMR() const
Definition: GenHIEvent.h:66
int NchargedPtCut() const
Definition: GenHIEvent.h:65
unsigned int nCharged(const GenJet &jet)
double meanPt_
Definition: GenHIEvent.h:85
int Npart() const
Definition: GenHIEvent.h:55
std::vector< std::vector< reco::GenParticleRef > > SubEventCollection
Definition: GenHIEvent.h:11
virtual ~GenHIEvent()
Definition: GenHIEvent.h:52
int Nhard() const
Definition: GenHIEvent.h:57
double eccentricity() const
Definition: GenHIEvent.h:59
double evtPlane() const
Definition: GenHIEvent.h:58
int getNsubs() const
Definition: GenHIEvent.h:70
double EtMR() const
Definition: GenHIEvent.h:64
double MeanPt() const
Definition: GenHIEvent.h:62