#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 (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) | |
GenHIEvent () | |
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 *) const |
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_ |
Definition at line 8 of file GenHIEvent.h.
typedef std::vector<std::vector<reco::GenParticleRef> > edm::GenHIEvent::SubEventCollection |
Definition at line 11 of file GenHIEvent.h.
edm::GenHIEvent::GenHIEvent | ( | ) | [inline] |
Definition at line 13 of file GenHIEvent.h.
References subevents_.
: b_(-99), npart_(-99), ncoll_(-99), nhard_(-99), phi_(-99), eccentricity_(-99), nCharged_(-99), nChargedMR_(-99), meanPt_(-99), meanPtMR_(-99), EtMR_(-99), nChargedPtCut_(-99), nChargedPtCutMR_(-99) { subevents_.reserve(0); ;}
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_.
: b_(b), npart_(npart), ncoll_(ncoll), nhard_(nhard), phi_(phi), eccentricity_(ecc), nCharged_(nCharged), nChargedMR_(nChargedMR), meanPt_(meanPt), meanPtMR_(meanPtMR), EtMR_(EtMR), nChargedPtCut_(nChargedPtCut), nChargedPtCutMR_(nChargedPtCutMR) { subevents_.reserve(0); ;}
virtual edm::GenHIEvent::~GenHIEvent | ( | ) | [inline, virtual] |
Definition at line 52 of file GenHIEvent.h.
{}
double edm::GenHIEvent::b | ( | ) | const [inline] |
double edm::GenHIEvent::eccentricity | ( | ) | const [inline] |
double edm::GenHIEvent::EtMR | ( | ) | const [inline] |
double edm::GenHIEvent::evtPlane | ( | ) | const [inline] |
int edm::GenHIEvent::getNsubs | ( | ) | const [inline] |
const std::vector< reco::GenParticleRef > GenHIEvent::getSubEvent | ( | unsigned int | sub_id | ) | const |
Definition at line 18 of file GenHIEvent.cc.
References subevents_.
{ if(sub_id > subevents_.size()){ // sub_id >= 0, since sub_id is unsigned } return subevents_[sub_id]; }
double edm::GenHIEvent::MeanPt | ( | ) | const [inline] |
double edm::GenHIEvent::MeanPtMR | ( | ) | const [inline] |
int edm::GenHIEvent::Ncharged | ( | ) | const [inline] |
int edm::GenHIEvent::NchargedMR | ( | ) | const [inline] |
int edm::GenHIEvent::NchargedPtCut | ( | ) | const [inline] |
int edm::GenHIEvent::NchargedPtCutMR | ( | ) | const [inline] |
int edm::GenHIEvent::Ncoll | ( | ) | const [inline] |
int edm::GenHIEvent::Nhard | ( | ) | const [inline] |
int edm::GenHIEvent::Npart | ( | ) | const [inline] |
void GenHIEvent::setGenParticles | ( | const reco::GenParticleCollection * | input | ) | const |
Definition at line 5 of file GenHIEvent.cc.
References i, nhard_, and subevents_.
{ subevents_.reserve(nhard_); for(int i = 0; i < nhard_; ++i){ std::vector<reco::GenParticleRef> refs; subevents_.push_back(refs); } for(unsigned int i = 0; i < input->size(); ++i){ reco::GenParticleRef ref(input,i); subevents_[ref->collisionId()].push_back(ref); } }
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_ [mutable, private] |
Definition at line 74 of file GenHIEvent.h.
Referenced by GenHIEvent(), getNsubs(), getSubEvent(), and setGenParticles().