CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
edm::GenHIEvent Class Reference

#include <GenHIEvent.h>

Public Types

typedef std::vector
< std::vector
< reco::GenParticleRef > > 
SubEventCollection
 

Public Member Functions

double b () const
 
double eccentricity () const
 
double EtMR () const
 
double evtPlane () const
 
 GenHIEvent ()
 
 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)
 
int getNsubs () const
 
const std::vector
< reco::GenParticleRef
getSubEvent (unsigned int sub_id) const
 
double MeanPt () const
 
double MeanPtMR () const
 
int Ncharged () const
 
int NchargedMR () const
 
int NchargedPtCut () const
 
int NchargedPtCutMR () const
 
int Ncoll () const
 
int Nhard () const
 
int Npart () const
 
void setGenParticles (const reco::GenParticleCollection *)
 
virtual ~GenHIEvent ()
 

Private Attributes

double b_
 
double eccentricity_
 
double EtMR_
 
double meanPt_
 
double meanPtMR_
 
int nCharged_
 
int nChargedMR_
 
int nChargedPtCut_
 
int nChargedPtCutMR_
 
int ncoll_
 
int nhard_
 
int npart_
 
double phi_
 
int sel_
 
SubEventCollection subevents_
 

Detailed Description

Definition at line 8 of file GenHIEvent.h.

Member Typedef Documentation

typedef std::vector<std::vector<reco::GenParticleRef> > edm::GenHIEvent::SubEventCollection

Definition at line 11 of file GenHIEvent.h.

Constructor & Destructor Documentation

edm::GenHIEvent::GenHIEvent ( )
inline

Definition at line 13 of file GenHIEvent.h.

References subevents_.

13  :
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  ;}
int nChargedPtCutMR_
Definition: GenHIEvent.h:89
double eccentricity_
Definition: GenHIEvent.h:82
SubEventCollection subevents_
Definition: GenHIEvent.h:74
double meanPtMR_
Definition: GenHIEvent.h:86
double meanPt_
Definition: GenHIEvent.h:85
edm::GenHIEvent::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 
)
inline

Definition at line 31 of file GenHIEvent.h.

References subevents_.

31  :
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  ;}
double b() const
Definition: GenHIEvent.h:54
int nChargedPtCutMR_
Definition: GenHIEvent.h:89
double npart
Definition: HydjetWrapper.h:49
double eccentricity_
Definition: GenHIEvent.h:82
SubEventCollection subevents_
Definition: GenHIEvent.h:74
double meanPtMR_
Definition: GenHIEvent.h:86
unsigned int nCharged(const GenJet &jet)
double meanPt_
Definition: GenHIEvent.h:85
double EtMR() const
Definition: GenHIEvent.h:64
virtual edm::GenHIEvent::~GenHIEvent ( )
inlinevirtual

Definition at line 52 of file GenHIEvent.h.

52 {}

Member Function Documentation

double edm::GenHIEvent::b ( ) const
inline

Definition at line 54 of file GenHIEvent.h.

References b_.

54 {return b_;}
double edm::GenHIEvent::eccentricity ( ) const
inline

Definition at line 59 of file GenHIEvent.h.

References eccentricity_.

59 {return eccentricity_;}
double eccentricity_
Definition: GenHIEvent.h:82
double edm::GenHIEvent::EtMR ( ) const
inline

Definition at line 64 of file GenHIEvent.h.

References EtMR_.

64 {return EtMR_;}
double edm::GenHIEvent::evtPlane ( ) const
inline

Definition at line 58 of file GenHIEvent.h.

References phi_.

58 {return phi_;}
int edm::GenHIEvent::getNsubs ( ) const
inline

Definition at line 70 of file GenHIEvent.h.

References subevents_.

70 {return subevents_.size();}
SubEventCollection subevents_
Definition: GenHIEvent.h:74
const std::vector< reco::GenParticleRef > GenHIEvent::getSubEvent ( unsigned int  sub_id) const

Definition at line 18 of file GenHIEvent.cc.

References subevents_.

18  {
19 
20  if(sub_id > subevents_.size()){ // sub_id >= 0, since sub_id is unsigned
21  }
22 
23  return subevents_[sub_id];
24 }
SubEventCollection subevents_
Definition: GenHIEvent.h:74
double edm::GenHIEvent::MeanPt ( ) const
inline

Definition at line 62 of file GenHIEvent.h.

References meanPt_.

62 {return meanPt_;}
double meanPt_
Definition: GenHIEvent.h:85
double edm::GenHIEvent::MeanPtMR ( ) const
inline

Definition at line 63 of file GenHIEvent.h.

References meanPtMR_.

63 {return meanPtMR_;}
double meanPtMR_
Definition: GenHIEvent.h:86
int edm::GenHIEvent::Ncharged ( ) const
inline

Definition at line 60 of file GenHIEvent.h.

References nCharged_.

60 {return nCharged_;}
int edm::GenHIEvent::NchargedMR ( ) const
inline

Definition at line 61 of file GenHIEvent.h.

References nChargedMR_.

61 {return nChargedMR_;}
int edm::GenHIEvent::NchargedPtCut ( ) const
inline

Definition at line 65 of file GenHIEvent.h.

References nChargedPtCut_.

65 {return nChargedPtCut_;}
int edm::GenHIEvent::NchargedPtCutMR ( ) const
inline

Definition at line 66 of file GenHIEvent.h.

References nChargedPtCutMR_.

66 {return nChargedPtCutMR_;}
int nChargedPtCutMR_
Definition: GenHIEvent.h:89
int edm::GenHIEvent::Ncoll ( ) const
inline

Definition at line 56 of file GenHIEvent.h.

References ncoll_.

56 {return ncoll_;}
int edm::GenHIEvent::Nhard ( ) const
inline

Definition at line 57 of file GenHIEvent.h.

References nhard_.

57 {return nhard_;}
int edm::GenHIEvent::Npart ( ) const
inline

Definition at line 55 of file GenHIEvent.h.

References npart_.

55 {return npart_;}
void GenHIEvent::setGenParticles ( const reco::GenParticleCollection input)

Definition at line 5 of file GenHIEvent.cc.

References i, nhard_, and subevents_.

5  {
6  subevents_.reserve(nhard_);
7  for(int i = 0; i < nhard_; ++i){
8  std::vector<reco::GenParticleRef> refs;
9  subevents_.push_back(refs);
10  }
11 
12  for(unsigned int i = 0; i < input->size(); ++i){
14  subevents_[ref->collisionId()].push_back(ref);
15  }
16 }
int i
Definition: DBlmapReader.cc:9
static std::string const input
Definition: EdmProvDump.cc:43
SubEventCollection subevents_
Definition: GenHIEvent.h:74

Member Data Documentation

double edm::GenHIEvent::b_
private

Definition at line 77 of file GenHIEvent.h.

Referenced by b().

double edm::GenHIEvent::eccentricity_
private

Definition at line 82 of file GenHIEvent.h.

Referenced by eccentricity().

double edm::GenHIEvent::EtMR_
private

Definition at line 87 of file GenHIEvent.h.

Referenced by EtMR().

double edm::GenHIEvent::meanPt_
private

Definition at line 85 of file GenHIEvent.h.

Referenced by MeanPt().

double edm::GenHIEvent::meanPtMR_
private

Definition at line 86 of file GenHIEvent.h.

Referenced by MeanPtMR().

int edm::GenHIEvent::nCharged_
private

Definition at line 83 of file GenHIEvent.h.

Referenced by Ncharged().

int edm::GenHIEvent::nChargedMR_
private

Definition at line 84 of file GenHIEvent.h.

Referenced by NchargedMR().

int edm::GenHIEvent::nChargedPtCut_
private

Definition at line 88 of file GenHIEvent.h.

Referenced by NchargedPtCut().

int edm::GenHIEvent::nChargedPtCutMR_
private

Definition at line 89 of file GenHIEvent.h.

Referenced by NchargedPtCutMR().

int edm::GenHIEvent::ncoll_
private

Definition at line 79 of file GenHIEvent.h.

Referenced by Ncoll().

int edm::GenHIEvent::nhard_
private

Definition at line 80 of file GenHIEvent.h.

Referenced by Nhard(), and setGenParticles().

int edm::GenHIEvent::npart_
private

Definition at line 78 of file GenHIEvent.h.

Referenced by Npart().

double edm::GenHIEvent::phi_
private

Definition at line 81 of file GenHIEvent.h.

Referenced by evtPlane().

int edm::GenHIEvent::sel_
private

Definition at line 75 of file GenHIEvent.h.

SubEventCollection edm::GenHIEvent::subevents_
private

Definition at line 74 of file GenHIEvent.h.

Referenced by GenHIEvent(), getNsubs(), getSubEvent(), and setGenParticles().