CMS 3D CMS Logo

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::GenParticleRefgetSubEvent (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

◆ SubEventCollection

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

Definition at line 10 of file GenHIEvent.h.

Constructor & Destructor Documentation

◆ GenHIEvent() [1/2]

edm::GenHIEvent::GenHIEvent ( )
inline

Definition at line 12 of file GenHIEvent.h.

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  }

References subevents_.

◆ GenHIEvent() [2/2]

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 30 of file GenHIEvent.h.

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  }

References subevents_.

◆ ~GenHIEvent()

virtual edm::GenHIEvent::~GenHIEvent ( )
inlinevirtual

Definition at line 60 of file GenHIEvent.h.

60 {}

Member Function Documentation

◆ b()

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

Definition at line 62 of file GenHIEvent.h.

62 { return b_; }

References b_.

◆ eccentricity()

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

Definition at line 67 of file GenHIEvent.h.

67 { return eccentricity_; }

References eccentricity_.

◆ EtMR()

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

Definition at line 72 of file GenHIEvent.h.

72 { return EtMR_; }

References EtMR_.

◆ evtPlane()

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

Definition at line 66 of file GenHIEvent.h.

66 { return phi_; }

References phi_.

◆ getNsubs()

int edm::GenHIEvent::getNsubs ( ) const
inline

Definition at line 78 of file GenHIEvent.h.

78 { return subevents_.size(); }

References subevents_.

◆ getSubEvent()

const std::vector< reco::GenParticleRef > GenHIEvent::getSubEvent ( unsigned int  sub_id) const

Definition at line 18 of file GenHIEvent.cc.

18  {
19  if (sub_id > subevents_.size()) { // sub_id >= 0, since sub_id is unsigned
20  }
21 
22  return subevents_[sub_id];
23 }

References subevents_.

◆ MeanPt()

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

Definition at line 70 of file GenHIEvent.h.

70 { return meanPt_; }

References meanPt_.

◆ MeanPtMR()

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

Definition at line 71 of file GenHIEvent.h.

71 { return meanPtMR_; }

References meanPtMR_.

◆ Ncharged()

int edm::GenHIEvent::Ncharged ( ) const
inline

Definition at line 68 of file GenHIEvent.h.

68 { return nCharged_; }

References nCharged_.

◆ NchargedMR()

int edm::GenHIEvent::NchargedMR ( ) const
inline

Definition at line 69 of file GenHIEvent.h.

69 { return nChargedMR_; }

References nChargedMR_.

◆ NchargedPtCut()

int edm::GenHIEvent::NchargedPtCut ( ) const
inline

Definition at line 73 of file GenHIEvent.h.

73 { return nChargedPtCut_; }

References nChargedPtCut_.

◆ NchargedPtCutMR()

int edm::GenHIEvent::NchargedPtCutMR ( ) const
inline

Definition at line 74 of file GenHIEvent.h.

74 { return nChargedPtCutMR_; }

References nChargedPtCutMR_.

◆ Ncoll()

int edm::GenHIEvent::Ncoll ( ) const
inline

Definition at line 64 of file GenHIEvent.h.

64 { return ncoll_; }

References ncoll_.

◆ Nhard()

int edm::GenHIEvent::Nhard ( ) const
inline

Definition at line 65 of file GenHIEvent.h.

65 { return nhard_; }

References nhard_.

◆ Npart()

int edm::GenHIEvent::Npart ( ) const
inline

Definition at line 63 of file GenHIEvent.h.

63 { return npart_; }

References npart_.

◆ setGenParticles()

void GenHIEvent::setGenParticles ( const reco::GenParticleCollection input)

Definition at line 5 of file GenHIEvent.cc.

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 }

References mps_fire::i, input, nhard_, and subevents_.

Member Data Documentation

◆ b_

double edm::GenHIEvent::b_
private

Definition at line 84 of file GenHIEvent.h.

Referenced by b().

◆ eccentricity_

double edm::GenHIEvent::eccentricity_
private

Definition at line 89 of file GenHIEvent.h.

Referenced by eccentricity().

◆ EtMR_

double edm::GenHIEvent::EtMR_
private

Definition at line 94 of file GenHIEvent.h.

Referenced by EtMR().

◆ meanPt_

double edm::GenHIEvent::meanPt_
private

Definition at line 92 of file GenHIEvent.h.

Referenced by MeanPt().

◆ meanPtMR_

double edm::GenHIEvent::meanPtMR_
private

Definition at line 93 of file GenHIEvent.h.

Referenced by MeanPtMR().

◆ nCharged_

int edm::GenHIEvent::nCharged_
private

Definition at line 90 of file GenHIEvent.h.

Referenced by Ncharged().

◆ nChargedMR_

int edm::GenHIEvent::nChargedMR_
private

Definition at line 91 of file GenHIEvent.h.

Referenced by NchargedMR().

◆ nChargedPtCut_

int edm::GenHIEvent::nChargedPtCut_
private

Definition at line 95 of file GenHIEvent.h.

Referenced by NchargedPtCut().

◆ nChargedPtCutMR_

int edm::GenHIEvent::nChargedPtCutMR_
private

Definition at line 96 of file GenHIEvent.h.

Referenced by NchargedPtCutMR().

◆ ncoll_

int edm::GenHIEvent::ncoll_
private

Definition at line 86 of file GenHIEvent.h.

Referenced by Ncoll().

◆ nhard_

int edm::GenHIEvent::nhard_
private

Definition at line 87 of file GenHIEvent.h.

Referenced by Nhard(), and setGenParticles().

◆ npart_

int edm::GenHIEvent::npart_
private

Definition at line 85 of file GenHIEvent.h.

Referenced by Npart().

◆ phi_

double edm::GenHIEvent::phi_
private

Definition at line 88 of file GenHIEvent.h.

Referenced by evtPlane().

◆ sel_

int edm::GenHIEvent::sel_
private

Definition at line 82 of file GenHIEvent.h.

◆ subevents_

SubEventCollection edm::GenHIEvent::subevents_
private

Definition at line 81 of file GenHIEvent.h.

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

mps_fire.i
i
Definition: mps_fire.py:428
input
static const std::string input
Definition: EdmProvDump.cc:48
HLT_FULL_cff.nCharged
nCharged
Definition: HLT_FULL_cff.py:33254
edm::GenHIEvent::EtMR
double EtMR() const
Definition: GenHIEvent.h:72
edm::GenHIEvent::npart_
int npart_
Definition: GenHIEvent.h:85
edm::GenHIEvent::nCharged_
int nCharged_
Definition: GenHIEvent.h:90
edm::GenHIEvent::phi_
double phi_
Definition: GenHIEvent.h:88
edm::GenHIEvent::eccentricity_
double eccentricity_
Definition: GenHIEvent.h:89
npart
double npart
Definition: HydjetWrapper.h:46
edm::Ref< GenParticleCollection >
edm::GenHIEvent::EtMR_
double EtMR_
Definition: GenHIEvent.h:94
edm::GenHIEvent::nChargedPtCut_
int nChargedPtCut_
Definition: GenHIEvent.h:95
edm::GenHIEvent::nChargedPtCutMR_
int nChargedPtCutMR_
Definition: GenHIEvent.h:96
edm::GenHIEvent::meanPtMR_
double meanPtMR_
Definition: GenHIEvent.h:93
edm::GenHIEvent::meanPt_
double meanPt_
Definition: GenHIEvent.h:92
edm::GenHIEvent::b
double b() const
Definition: GenHIEvent.h:62
edm::GenHIEvent::b_
double b_
Definition: GenHIEvent.h:84
edm::GenHIEvent::nhard_
int nhard_
Definition: GenHIEvent.h:87
edm::GenHIEvent::subevents_
SubEventCollection subevents_
Definition: GenHIEvent.h:81
edm::GenHIEvent::nChargedMR_
int nChargedMR_
Definition: GenHIEvent.h:91
edm::GenHIEvent::ncoll_
int ncoll_
Definition: GenHIEvent.h:86