#include <SimDataFormats/HcalTestBeam/interface/PHcalTB06Info.h>
Classes | |
struct | Hit |
struct | Vtx |
Public Types | |
typedef std::vector< float > | FloatVector |
typedef std::vector< Hit > | HitVector |
typedef std::vector< int > | IntVector |
typedef std::vector< Vtx > | VtxVector |
Public Member Functions | |
void | clear () |
float | eta () const |
int | evNum () const |
float | initE () const |
int | partID () const |
PHcalTB06Info () | |
float | phi () const |
int | primary () const |
void | saveHit (unsigned int det, double eta, double phi, double e, double t) |
void | setEdep (double simtot, double sime, double simh) |
void | setPrimary (int primary, int id, double energy, double eta, double phi) |
void | setVtxPrim (int evNum, int type, double x, double y, double z, double u, double v, double w, double px, double py, double pz) |
void | setVtxSec (int id, int pdg, double px, double py, double pz, double ek) |
float | simEcE () const |
float | simEtotal () const |
float | simHcE () const |
Hit | simHit (unsigned int i) const |
float | simHitE (unsigned int i) const |
float | simHitEta (unsigned int i) const |
unsigned int | simHitID (unsigned int i) const |
float | simHitPhi (unsigned int i) const |
HitVector | simHits () const |
float | simHitT (unsigned int i) const |
int | vtxPartID (unsigned int i) const |
float | vtxPrimPx () const |
float | vtxPrimPy () const |
float | vtxPrimPz () const |
float | vtxPrimR () const |
float | vtxPrimU () const |
float | vtxPrimV () const |
float | vtxPrimW () const |
float | vtxPrimX () const |
float | vtxPrimY () const |
float | vtxPrimZ () const |
int | vtxSec () const |
float | vtxSecEKin (unsigned int i) const |
VtxVector | vtxSecondaries () const |
Vtx | vtxSecondary (unsigned int i) const |
float | vtxSecPx (unsigned int i) const |
float | vtxSecPy (unsigned int i) const |
float | vtxSecPz (unsigned int i) const |
int | vtxTrackID (unsigned int i) const |
int | vtxType () const |
virtual | ~PHcalTB06Info () |
Private Attributes | |
float | digEEc |
float | digEHc |
float | digEtot |
float | eBeam |
float | etaBeam |
int | hit |
HitVector | hits |
int | idBeam |
int | nPrimary |
float | phiBeam |
float | simEEc |
float | simEHc |
float | simEtot |
int | v1EvNum |
int | v1Nsec |
float | v1Px |
float | v1Py |
float | v1Pz |
float | v1R |
VtxVector | v1Sec |
int | v1Type |
float | v1U |
float | v1V |
float | v1W |
float | v1X |
float | v1Y |
float | v1Z |
Description: Histogram handling class for analysis
Usage: Simulation information for test beam studies of 2004 Test Beam Contains beam information, hits and digitised results
Definition at line 30 of file PHcalTB06Info.h.
typedef std::vector<float> PHcalTB06Info::FloatVector |
Definition at line 55 of file PHcalTB06Info.h.
typedef std::vector<Hit> PHcalTB06Info::HitVector |
Definition at line 58 of file PHcalTB06Info.h.
typedef std::vector<int> PHcalTB06Info::IntVector |
Definition at line 56 of file PHcalTB06Info.h.
typedef std::vector<Vtx> PHcalTB06Info::VtxVector |
Definition at line 57 of file PHcalTB06Info.h.
PHcalTB06Info::PHcalTB06Info | ( | ) |
PHcalTB06Info::~PHcalTB06Info | ( | ) | [virtual] |
Definition at line 40 of file PHcalTB06Info.cc.
{ }
void PHcalTB06Info::clear | ( | void | ) |
float PHcalTB06Info::eta | ( | void | ) | const [inline] |
int PHcalTB06Info::evNum | ( | ) | const [inline] |
Definition at line 78 of file PHcalTB06Info.h.
References v1EvNum.
Referenced by setVtxPrim().
{return v1EvNum;}
float PHcalTB06Info::initE | ( | ) | const [inline] |
int PHcalTB06Info::partID | ( | ) | const [inline] |
float PHcalTB06Info::phi | ( | void | ) | const [inline] |
int PHcalTB06Info::primary | ( | ) | const [inline] |
Definition at line 61 of file PHcalTB06Info.h.
References nPrimary.
Referenced by setPrimary().
{return nPrimary;}
void PHcalTB06Info::saveHit | ( | unsigned int | det, |
double | eta, | ||
double | phi, | ||
double | e, | ||
double | t | ||
) |
Definition at line 96 of file PHcalTB06Info.cc.
References PHcalTB06Info::Hit::e, PHcalTB06Info::Hit::eta, hit, hits, PHcalTB06Info::Hit::id, LogDebug, PHcalTB06Info::Hit::phi, and PHcalTB06Info::Hit::t.
Referenced by HcalTB06Analysis::fillEvent().
{ int nh = hit; hit++; PHcalTB06Info::Hit newHit; newHit.id = id; newHit.eta = (float)(eta); newHit.phi = (float)(phi); newHit.e = (float)(e); newHit.t = (float)(t); hits.push_back(newHit); LogDebug("SimHCalData") << "PHcalTB06Info::saveHit " << hit << " ID 0x" << std::hex << hits[nh].id << std::dec << " Eta " << hits[nh].eta << " Phi " << hits[nh].phi << " E " << hits[nh].e << " t " << hits[nh].t; }
void PHcalTB06Info::setEdep | ( | double | simtot, |
double | sime, | ||
double | simh | ||
) |
Definition at line 86 of file PHcalTB06Info.cc.
References LogDebug, simEEc, simEHc, and simEtot.
Referenced by HcalTB06Analysis::fillEvent().
void PHcalTB06Info::setPrimary | ( | int | primary, |
int | id, | ||
double | energy, | ||
double | eta, | ||
double | phi | ||
) |
Definition at line 73 of file PHcalTB06Info.cc.
References eBeam, etaBeam, idBeam, LogDebug, nPrimary, phiBeam, and primary().
Referenced by HcalTB06Analysis::fillEvent().
void PHcalTB06Info::setVtxPrim | ( | int | evNum, |
int | type, | ||
double | x, | ||
double | y, | ||
double | z, | ||
double | u, | ||
double | v, | ||
double | w, | ||
double | px, | ||
double | py, | ||
double | pz | ||
) |
Definition at line 114 of file PHcalTB06Info.cc.
References evNum(), LogDebug, alignCSCRings::r, mathSSE::sqrt(), v1EvNum, v1Px, v1Py, v1Pz, v1R, v1Type, v1U, v1V, v1W, v1X, v1Y, and v1Z.
Referenced by HcalTB06Analysis::fillEvent().
{ v1EvNum = evNum; v1Type = type; double r= sqrt(x*x+y*y+z*z); v1X = (float)(x); v1Y = (float)(y); v1Z = (float)(z); v1R = (float)(r); v1Px = (float)(px); v1Py = (float)(py); v1Pz = (float)(pz); v1U = (float)(u); v1V = (float)(v); v1W = (float)(w); LogDebug("SimHCalData") << "PHcalTB06Info::setVtxPrim: EvNum " << v1EvNum << " Type " << v1Type << " X/Y/Z/R " << v1X << "/" << v1Y << "/" << v1Z << "/" << v1R << " Px/Py/Pz " << v1Px << "/" << v1Py << "/" << v1Pz << " U/V/W " << v1U << "/" << v1V << "/" << v1W; }
void PHcalTB06Info::setVtxSec | ( | int | id, |
int | pdg, | ||
double | px, | ||
double | py, | ||
double | pz, | ||
double | ek | ||
) |
Definition at line 138 of file PHcalTB06Info.cc.
References PHcalTB06Info::Vtx::eKin, LogDebug, BeamSpotFilterParameters_cfi::newVtx, PHcalTB06Info::Vtx::partID, PHcalTB06Info::Vtx::px, PHcalTB06Info::Vtx::py, PHcalTB06Info::Vtx::pz, PHcalTB06Info::Vtx::trackID, v1Nsec, and v1Sec.
Referenced by HcalTB06Analysis::fillEvent().
{ int ns = v1Nsec; v1Nsec++; PHcalTB06Info::Vtx newVtx; newVtx.trackID = id; newVtx.partID = pdg; newVtx.px = (float)(px); newVtx.py = (float)(py); newVtx.pz = (float)(pz); newVtx.eKin = (float)(ek); v1Sec.push_back(newVtx); LogDebug("SimHCalData") << "PHcalTB06Info::setVtxSec " << v1Nsec << " ID " << v1Sec[ns].trackID << " PDG Code " << v1Sec[ns].partID << " Px/Py/Pz/Ek " << v1Sec[ns].px << "/" << v1Sec[ns].py << "/" << v1Sec[ns].pz << "/" << v1Sec[ns].eKin; }
float PHcalTB06Info::simEcE | ( | ) | const [inline] |
float PHcalTB06Info::simEtotal | ( | ) | const [inline] |
float PHcalTB06Info::simHcE | ( | ) | const [inline] |
Hit PHcalTB06Info::simHit | ( | unsigned int | i | ) | const [inline] |
float PHcalTB06Info::simHitE | ( | unsigned int | i | ) | const [inline] |
float PHcalTB06Info::simHitEta | ( | unsigned int | i | ) | const [inline] |
unsigned int PHcalTB06Info::simHitID | ( | unsigned int | i | ) | const [inline] |
float PHcalTB06Info::simHitPhi | ( | unsigned int | i | ) | const [inline] |
HitVector PHcalTB06Info::simHits | ( | ) | const [inline] |
float PHcalTB06Info::simHitT | ( | unsigned int | i | ) | const [inline] |
int PHcalTB06Info::vtxPartID | ( | unsigned int | i | ) | const [inline] |
float PHcalTB06Info::vtxPrimPx | ( | ) | const [inline] |
float PHcalTB06Info::vtxPrimPy | ( | ) | const [inline] |
float PHcalTB06Info::vtxPrimPz | ( | ) | const [inline] |
float PHcalTB06Info::vtxPrimR | ( | ) | const [inline] |
float PHcalTB06Info::vtxPrimU | ( | ) | const [inline] |
float PHcalTB06Info::vtxPrimV | ( | ) | const [inline] |
float PHcalTB06Info::vtxPrimW | ( | ) | const [inline] |
float PHcalTB06Info::vtxPrimX | ( | ) | const [inline] |
float PHcalTB06Info::vtxPrimY | ( | ) | const [inline] |
float PHcalTB06Info::vtxPrimZ | ( | ) | const [inline] |
int PHcalTB06Info::vtxSec | ( | ) | const [inline] |
float PHcalTB06Info::vtxSecEKin | ( | unsigned int | i | ) | const [inline] |
VtxVector PHcalTB06Info::vtxSecondaries | ( | ) | const [inline] |
Vtx PHcalTB06Info::vtxSecondary | ( | unsigned int | i | ) | const [inline] |
float PHcalTB06Info::vtxSecPx | ( | unsigned int | i | ) | const [inline] |
float PHcalTB06Info::vtxSecPy | ( | unsigned int | i | ) | const [inline] |
float PHcalTB06Info::vtxSecPz | ( | unsigned int | i | ) | const [inline] |
int PHcalTB06Info::vtxTrackID | ( | unsigned int | i | ) | const [inline] |
int PHcalTB06Info::vtxType | ( | ) | const [inline] |
float PHcalTB06Info::digEEc [private] |
Definition at line 125 of file PHcalTB06Info.h.
float PHcalTB06Info::digEHc [private] |
Definition at line 125 of file PHcalTB06Info.h.
float PHcalTB06Info::digEtot [private] |
Definition at line 125 of file PHcalTB06Info.h.
float PHcalTB06Info::eBeam [private] |
Definition at line 121 of file PHcalTB06Info.h.
Referenced by clear(), initE(), and setPrimary().
float PHcalTB06Info::etaBeam [private] |
Definition at line 121 of file PHcalTB06Info.h.
Referenced by clear(), eta(), and setPrimary().
int PHcalTB06Info::hit [private] |
Definition at line 128 of file PHcalTB06Info.h.
Referenced by saveHit().
HitVector PHcalTB06Info::hits [private] |
Definition at line 129 of file PHcalTB06Info.h.
Referenced by clear(), saveHit(), simHit(), simHitE(), simHitEta(), simHitID(), simHitPhi(), simHits(), and simHitT().
int PHcalTB06Info::idBeam [private] |
Definition at line 120 of file PHcalTB06Info.h.
Referenced by clear(), partID(), and setPrimary().
int PHcalTB06Info::nPrimary [private] |
Definition at line 120 of file PHcalTB06Info.h.
Referenced by clear(), primary(), and setPrimary().
float PHcalTB06Info::phiBeam [private] |
Definition at line 121 of file PHcalTB06Info.h.
Referenced by clear(), phi(), and setPrimary().
float PHcalTB06Info::simEEc [private] |
Definition at line 124 of file PHcalTB06Info.h.
float PHcalTB06Info::simEHc [private] |
Definition at line 124 of file PHcalTB06Info.h.
float PHcalTB06Info::simEtot [private] |
Definition at line 124 of file PHcalTB06Info.h.
Referenced by clear(), setEdep(), and simEtotal().
int PHcalTB06Info::v1EvNum [private] |
Definition at line 132 of file PHcalTB06Info.h.
Referenced by clear(), evNum(), and setVtxPrim().
int PHcalTB06Info::v1Nsec [private] |
Definition at line 132 of file PHcalTB06Info.h.
Referenced by clear(), setVtxSec(), and vtxSec().
float PHcalTB06Info::v1Px [private] |
Definition at line 134 of file PHcalTB06Info.h.
Referenced by clear(), setVtxPrim(), and vtxPrimPx().
float PHcalTB06Info::v1Py [private] |
Definition at line 134 of file PHcalTB06Info.h.
Referenced by clear(), setVtxPrim(), and vtxPrimPy().
float PHcalTB06Info::v1Pz [private] |
Definition at line 134 of file PHcalTB06Info.h.
Referenced by clear(), setVtxPrim(), and vtxPrimPz().
float PHcalTB06Info::v1R [private] |
Definition at line 133 of file PHcalTB06Info.h.
Referenced by setVtxPrim(), and vtxPrimR().
VtxVector PHcalTB06Info::v1Sec [private] |
Definition at line 135 of file PHcalTB06Info.h.
Referenced by clear(), setVtxSec(), vtxPartID(), vtxSecEKin(), vtxSecondaries(), vtxSecondary(), vtxSecPx(), vtxSecPy(), vtxSecPz(), and vtxTrackID().
int PHcalTB06Info::v1Type [private] |
Definition at line 132 of file PHcalTB06Info.h.
Referenced by clear(), setVtxPrim(), and vtxType().
float PHcalTB06Info::v1U [private] |
Definition at line 133 of file PHcalTB06Info.h.
Referenced by clear(), setVtxPrim(), and vtxPrimU().
float PHcalTB06Info::v1V [private] |
Definition at line 133 of file PHcalTB06Info.h.
Referenced by clear(), setVtxPrim(), and vtxPrimV().
float PHcalTB06Info::v1W [private] |
Definition at line 133 of file PHcalTB06Info.h.
Referenced by clear(), setVtxPrim(), and vtxPrimW().
float PHcalTB06Info::v1X [private] |
Definition at line 133 of file PHcalTB06Info.h.
Referenced by clear(), setVtxPrim(), and vtxPrimX().
float PHcalTB06Info::v1Y [private] |
Definition at line 133 of file PHcalTB06Info.h.
Referenced by clear(), setVtxPrim(), and vtxPrimY().
float PHcalTB06Info::v1Z [private] |
Definition at line 133 of file PHcalTB06Info.h.
Referenced by clear(), setVtxPrim(), and vtxPrimZ().