Public Member Functions | |
void | addParticle (double w, double s, double c, double eta) |
GenPlane (string name, double etaminval1, double etamaxval1, double etaminval2, double etamaxval2, int orderval) | |
double | getAngle (double &ang, double &sv, double &cv) |
void | reset () |
~GenPlane () | |
Private Attributes | |
string | epname |
double | etamax1 |
double | etamax2 |
double | etamin1 |
double | etamin2 |
int | mult |
double | order |
double | sumcos |
double | sumsin |
Definition at line 75 of file EvtPlaneProducer.cc.
EvtPlaneProducer::GenPlane::GenPlane | ( | string | name, |
double | etaminval1, | ||
double | etamaxval1, | ||
double | etaminval2, | ||
double | etamaxval2, | ||
int | orderval | ||
) | [inline] |
EvtPlaneProducer::GenPlane::~GenPlane | ( | ) | [inline] |
Definition at line 87 of file EvtPlaneProducer.cc.
{;}
void EvtPlaneProducer::GenPlane::addParticle | ( | double | w, |
double | s, | ||
double | c, | ||
double | eta | ||
) | [inline] |
Definition at line 88 of file EvtPlaneProducer.cc.
References trackerHits::c, VarParsing::mult, alignCSCRings::s, and w().
{ if(w < 0.001) return; if((eta>=etamin1 && eta<etamax1) || (etamin2!= etamax2 && eta>=etamin2 && eta<etamax2 )) { sumsin+=w*s; sumcos+=w*c; //For tracking, w=1 and mult is the track multiplicity. //For calorimetors, w is an energy that needs to be subsequently //converted if an multiplicity if needed mult+=w; } }
double EvtPlaneProducer::GenPlane::getAngle | ( | double & | ang, |
double & | sv, | ||
double & | cv | ||
) | [inline] |
Definition at line 101 of file EvtPlaneProducer.cc.
References lumiQueryAPI::q.
void EvtPlaneProducer::GenPlane::reset | ( | void | ) | [inline] |
Definition at line 111 of file EvtPlaneProducer.cc.
References VarParsing::mult.
string EvtPlaneProducer::GenPlane::epname [private] |
Definition at line 117 of file EvtPlaneProducer.cc.
double EvtPlaneProducer::GenPlane::etamax1 [private] |
Definition at line 119 of file EvtPlaneProducer.cc.
double EvtPlaneProducer::GenPlane::etamax2 [private] |
Definition at line 122 of file EvtPlaneProducer.cc.
double EvtPlaneProducer::GenPlane::etamin1 [private] |
Definition at line 118 of file EvtPlaneProducer.cc.
double EvtPlaneProducer::GenPlane::etamin2 [private] |
Definition at line 121 of file EvtPlaneProducer.cc.
int EvtPlaneProducer::GenPlane::mult [private] |
Definition at line 125 of file EvtPlaneProducer.cc.
double EvtPlaneProducer::GenPlane::order [private] |
Definition at line 126 of file EvtPlaneProducer.cc.
double EvtPlaneProducer::GenPlane::sumcos [private] |
Definition at line 124 of file EvtPlaneProducer.cc.
double EvtPlaneProducer::GenPlane::sumsin [private] |
Definition at line 123 of file EvtPlaneProducer.cc.