#include <SimDataFormats/HcalTestBeam/interface/PHcalTB04Info.h>
Public Member Functions | |
void | clear () |
int | crystal () const |
IntVector | detectorHit () const |
float | digEcE () const |
FloatVector | digEEcal () const |
FloatVector | digEHcal () const |
float | digEtotal () const |
float | digHcE () const |
FloatVector | energyHit () const |
float | eta () const |
IntVector | etaIndexHit () const |
int | evNum () const |
IntVector | idsEcal () const |
IntVector | idsHcal () const |
float | initE () const |
IntVector | layerHit () const |
int | nHit () const |
int | partID () const |
PHcalTB04Info () | |
float | phi () const |
IntVector | phiIndexHit () const |
int | primary () const |
void | saveHit (int det, int lay, int eta, int phi, double e, double t) |
void | setEdep (double simtot, double sime, double simh, double digtot, double dige, double digh) |
void | setEdepEcal (std::vector< double > esim, std::vector< double > edig) |
void | setEdepHcal (std::vector< double > esim, std::vector< double > edig) |
void | setIDs (std::vector< int >, std::vector< int >) |
void | setLongProf (std::vector< double > es, std::vector< double > eq) |
void | setPrimary (int primary, int id, double energy, double eta, double phi) |
void | setTrnsProf (std::vector< double > es1, std::vector< double > eq1, std::vector< double > es2, std::vector< double > eq2) |
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 |
FloatVector | simEEcal () const |
FloatVector | simEHcal () const |
float | simEtotal () const |
float | simHcE () const |
FloatVector | timeHit () const |
int | tower () const |
IntVector | vtxPartID () 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 |
FloatVector | vtxSecEk () const |
FloatVector | vtxSecPx () const |
FloatVector | vtxSecPy () const |
FloatVector | vtxSecPz () const |
IntVector | vtxTrkID () const |
int | vtxType () const |
virtual | ~PHcalTB04Info () |
Private Types | |
typedef std::vector< float > | FloatVector |
typedef std::vector< int > | IntVector |
Private Attributes | |
IntVector | detHit |
float | digEEc |
float | digEHc |
float | digEtot |
float | eBeam |
FloatVector | edige |
FloatVector | edigh |
FloatVector | eHit |
FloatVector | esime |
FloatVector | esimh |
float | etaBeam |
IntVector | etaHit |
int | hit |
int | idBeam |
IntVector | idEcal |
IntVector | idHcal |
FloatVector | latdigEta |
FloatVector | latdigPhi |
FloatVector | latsimEta |
FloatVector | latsimPhi |
IntVector | layHit |
FloatVector | longdig |
FloatVector | longsim |
int | nCrystal |
int | nPrimary |
int | nTower |
float | phiBeam |
IntVector | phiHit |
float | simEEc |
float | simEHc |
float | simEtot |
FloatVector | tHit |
int | v1EvNum |
int | v1Nsec |
float | v1Px |
float | v1Py |
float | v1Pz |
float | v1R |
FloatVector | v1secEk |
IntVector | v1secPartID |
FloatVector | v1secPx |
FloatVector | v1secPy |
FloatVector | v1secPz |
IntVector | v1secTrackID |
int | v1Type |
float | v1U |
float | v1V |
float | v1W |
float | v1X |
float | v1Y |
float | v1Z |
Friends | |
class | HcalTB04Analysis |
Usage: Simulation information for test beam studies of 2004 Test Beam Contains beam information, hits and digitised results
Definition at line 34 of file PHcalTB04Info.h.
typedef std::vector<float> PHcalTB04Info::FloatVector [private] |
Definition at line 36 of file PHcalTB04Info.h.
typedef std::vector<int> PHcalTB04Info::IntVector [private] |
Definition at line 37 of file PHcalTB04Info.h.
PHcalTB04Info::PHcalTB04Info | ( | ) |
PHcalTB04Info::~PHcalTB04Info | ( | ) | [virtual] |
Definition at line 59 of file PHcalTB04Info.cc.
References digEEc, digEHc, digEtot, eBeam, etaBeam, hit, idBeam, nCrystal, nPrimary, nTower, phiBeam, simEEc, simEHc, simEtot, v1EvNum, v1Nsec, v1Px, v1Py, v1Pz, v1Type, v1U, v1V, v1W, v1X, v1Y, and v1Z.
Referenced by PHcalTB04Info().
00059 { 00060 nPrimary = idBeam =0; 00061 eBeam = etaBeam = phiBeam = 0; 00062 00063 simEtot = simEEc = simEHc = 0; 00064 digEtot = digEEc = digEHc = 0; 00065 00066 nCrystal = nTower = 0; 00067 00068 hit = 0; 00069 00070 v1EvNum = v1Type = v1Nsec = 0; 00071 v1X = v1Y = v1Z = v1U = v1V = v1W = 0; 00072 v1Px = v1Py = v1Pz = 0; 00073 }
int PHcalTB04Info::crystal | ( | ) | const [inline] |
IntVector PHcalTB04Info::detectorHit | ( | ) | const [inline] |
float PHcalTB04Info::digEcE | ( | ) | const [inline] |
FloatVector PHcalTB04Info::digEEcal | ( | ) | const [inline] |
FloatVector PHcalTB04Info::digEHcal | ( | ) | const [inline] |
float PHcalTB04Info::digEtotal | ( | ) | const [inline] |
float PHcalTB04Info::digHcE | ( | ) | const [inline] |
FloatVector PHcalTB04Info::energyHit | ( | ) | const [inline] |
float PHcalTB04Info::eta | ( | void | ) | const [inline] |
IntVector PHcalTB04Info::etaIndexHit | ( | ) | const [inline] |
int PHcalTB04Info::evNum | ( | ) | const [inline] |
IntVector PHcalTB04Info::idsEcal | ( | ) | const [inline] |
IntVector PHcalTB04Info::idsHcal | ( | ) | const [inline] |
float PHcalTB04Info::initE | ( | ) | const [inline] |
IntVector PHcalTB04Info::layerHit | ( | ) | const [inline] |
int PHcalTB04Info::nHit | ( | ) | const [inline] |
int PHcalTB04Info::partID | ( | ) | const [inline] |
float PHcalTB04Info::phi | ( | void | ) | const [inline] |
IntVector PHcalTB04Info::phiIndexHit | ( | ) | const [inline] |
int PHcalTB04Info::primary | ( | ) | const [inline] |
Definition at line 191 of file PHcalTB04Info.cc.
References detHit, eHit, etaHit, hit, layHit, LogDebug, phiHit, and tHit.
Referenced by HcalTB04Analysis::fillEvent().
00192 { 00193 00194 int nh = hit; 00195 hit++; 00196 detHit.push_back(det); 00197 layHit.push_back(lay); 00198 etaHit.push_back(eta); 00199 phiHit.push_back(phi); 00200 eHit.push_back((float)(e)); 00201 tHit.push_back((float)(t)); 00202 LogDebug("SimHCalData") << "PHcalTB04Info::saveHit " << hit << " Det " << detHit[nh] << " layer " << layHit[nh] << " Eta " << etaHit[nh] << " Phi " << phiHit[nh] << " E " << eHit[nh] << " t " << tHit[nh]; 00203 }
void PHcalTB04Info::setEdep | ( | double | simtot, | |
double | sime, | |||
double | simh, | |||
double | digtot, | |||
double | dige, | |||
double | digh | |||
) |
Definition at line 114 of file PHcalTB04Info.cc.
References digEEc, digEHc, digEtot, LogDebug, simEEc, simEHc, and simEtot.
Referenced by HcalTB04Analysis::fillEvent().
00115 { 00116 00117 simEtot = (float)simtot; 00118 simEEc = (float)sime; 00119 simEHc = (float)simh; 00120 digEtot = (float)digtot; 00121 digEEc = (float)dige; 00122 digEHc = (float)digh; 00123 00124 LogDebug("SimHCalData") << "PHcalTB04Info::setEdep: simEtot " << simEtot << " simEEc " << simEEc << " simEHc " << simEHc << " digEtot " << digEtot << " digEEc " << digEEc << " digEHc " << digEHc; 00125 }
void PHcalTB04Info::setEdepEcal | ( | std::vector< double > | esim, | |
std::vector< double > | edig | |||
) |
Definition at line 127 of file PHcalTB04Info.cc.
References edige, esime, i, LogDebug, and nCrystal.
00128 { 00129 00130 for (int i=0; i<nCrystal; i++) { 00131 float edep = 0; 00132 if (i<int(esim.size())) esime.push_back(esim[i]); 00133 else esime.push_back(edep); 00134 if (i<int(eqie.size())) edige.push_back(eqie[i]); 00135 else edige.push_back(edep); 00136 00137 LogDebug("SimHCalData") << "PHcalTB04Info::setEdepEcal [" << i << "] Esim = " << esime[i] << " Edig = " << edige[i]; 00138 } 00139 }
void PHcalTB04Info::setEdepHcal | ( | std::vector< double > | esim, | |
std::vector< double > | edig | |||
) |
Definition at line 141 of file PHcalTB04Info.cc.
References edigh, esimh, i, LogDebug, and nTower.
Referenced by HcalTB04Analysis::fillEvent().
00142 { 00143 00144 for (int i=0; i<nTower; i++) { 00145 float edep = 0; 00146 if (i<int(esim.size())) esimh.push_back(esim[i]); 00147 else esimh.push_back(edep); 00148 if (i<int(eqie.size())) edigh.push_back(eqie[i]); 00149 else edigh.push_back(edep); 00150 00151 LogDebug("SimHCalData") << "PHcalTB04Info::setEdepHcal [" << i << "] Esim = " << esimh[i] << " Edig = " << edigh[i]; 00152 } 00153 }
Definition at line 75 of file PHcalTB04Info.cc.
References edige, edigh, esime, esimh, i, idEcal, idHcal, LogDebug, nCrystal, and nTower.
Referenced by HcalTB04Analysis::fillEvent().
00075 { 00076 00077 nCrystal = ide.size(); 00078 if (nCrystal > 0) { 00079 idEcal.reserve(nCrystal); 00080 esime.reserve(nCrystal); 00081 edige.reserve(nCrystal); 00082 } 00083 LogDebug("SimHCalData") << "PHcalTB04Info:: Called with " << nCrystal << " crystals"; 00084 for (int i=0; i<nCrystal; i++) { 00085 idEcal.push_back(ide[i]); 00086 LogDebug("SimHCalData") << "\tIndex for " << i << " = 0x" << std::hex << idEcal[i] << std::dec; 00087 } 00088 00089 nTower = idh.size(); 00090 if (nTower > 0) { 00091 idHcal.reserve(nTower); 00092 esimh.reserve(nTower); 00093 edigh.reserve(nTower); 00094 } 00095 LogDebug("SimHCalData") << "PHcalTB04Info:: Called with " << nTower << " HCal towers"; 00096 for (int i=0; i<nTower; i++) { 00097 idHcal.push_back(idh[i]); 00098 LogDebug("SimHCalData") << "\tIndex for " << i << " = 0x" << std::hex << idHcal[i] << std::dec; 00099 } 00100 00101 }
void PHcalTB04Info::setLongProf | ( | std::vector< double > | es, | |
std::vector< double > | eq | |||
) |
Definition at line 176 of file PHcalTB04Info.cc.
References i, int, LogDebug, longdig, longsim, and siz.
Referenced by HcalTB04Analysis::fillEvent().
00177 { 00178 00179 int siz = (int)(es.size()); 00180 if (siz > 0) { 00181 longsim.reserve(siz); 00182 longdig.reserve(siz); 00183 for (int i=0; i<siz; i++) { 00184 longsim.push_back((float)(es[i])); 00185 longdig.push_back((float)(eq[i])); 00186 LogDebug("SimHCalData") << "PHcalTB04Info::setLongProf [" << i << "] longsim = " << longsim[i] << " longdig = " << longdig[i]; 00187 } 00188 } 00189 }
Definition at line 103 of file PHcalTB04Info.cc.
References eBeam, etaBeam, idBeam, LogDebug, nPrimary, and phiBeam.
Referenced by HcalTB04Analysis::fillEvent().
00104 { 00105 00106 nPrimary = primary; 00107 idBeam = id; 00108 eBeam = (float)(energy); 00109 etaBeam = (float)(etav); 00110 phiBeam = (float)(phiv); 00111 LogDebug("SimHCalData") << "PHcalTB04Info::setPrimary: nPrimary " << nPrimary << " partID " << idBeam << " initE " << eBeam << " eta " << etaBeam << " phi " << phiBeam; 00112 }
void PHcalTB04Info::setTrnsProf | ( | std::vector< double > | es1, | |
std::vector< double > | eq1, | |||
std::vector< double > | es2, | |||
std::vector< double > | eq2 | |||
) |
Definition at line 155 of file PHcalTB04Info.cc.
References i, int, latdigEta, latdigPhi, latsimEta, latsimPhi, LogDebug, and siz.
Referenced by HcalTB04Analysis::fillEvent().
00158 { 00159 00160 int siz = (int)(es1.size()); 00161 if (siz > 0) { 00162 latsimEta.reserve(siz); 00163 latdigEta.reserve(siz); 00164 latsimPhi.reserve(siz); 00165 latdigPhi.reserve(siz); 00166 for (int i=0; i<siz; i++) { 00167 latsimEta.push_back((float)(es1[i])); 00168 latdigEta.push_back((float)(eq1[i])); 00169 latsimPhi.push_back((float)(es2[i])); 00170 latdigPhi.push_back((float)(eq2[i])); 00171 LogDebug("SimHCalData") << "PHcalTB04Info::setTrnsProf [" << i << "] latsimEta = " << latsimEta[i] << " latdigEta = " << latdigEta[i] << " latsimPhi = " << latsimPhi[i] << " latdigPhi = " << latdigPhi[i]; 00172 } 00173 } 00174 }
void PHcalTB04Info::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 205 of file PHcalTB04Info.cc.
References LogDebug, r, funct::sqrt(), v1EvNum, v1Px, v1Py, v1Pz, v1R, v1Type, v1U, v1V, v1W, v1X, v1Y, and v1Z.
Referenced by HcalTB04Analysis::fillEvent().
00207 { 00208 00209 v1EvNum = evNum; 00210 v1Type = type; 00211 double r= sqrt(x*x+y*y+z*z); 00212 v1X = (float)(x); 00213 v1Y = (float)(y); 00214 v1Z = (float)(z); 00215 v1R = (float)(r); 00216 v1Px = (float)(px); 00217 v1Py = (float)(py); 00218 v1Pz = (float)(pz); 00219 v1U = (float)(u); 00220 v1V = (float)(v); 00221 v1W = (float)(w); 00222 LogDebug("SimHCalData") << "PHcalTB04Info::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; 00223 }
Definition at line 225 of file PHcalTB04Info.cc.
References LogDebug, v1Nsec, v1secEk, v1secPartID, v1secPx, v1secPy, v1secPz, and v1secTrackID.
Referenced by HcalTB04Analysis::fillEvent().
00226 { 00227 00228 int ns = v1Nsec; 00229 v1Nsec++; 00230 v1secTrackID.push_back(id); 00231 v1secPartID.push_back(pdg); 00232 v1secPx.push_back((float)(px)); 00233 v1secPy.push_back((float)(py)); 00234 v1secPz.push_back((float)(pz)); 00235 v1secEk.push_back((float)(ek)); 00236 LogDebug("SimHCalData") << "PHcalTB04Info::setVtxSec " << v1Nsec << " ID " << v1secTrackID[ns] << " PDG Code " << v1secPartID[ns] << " Px/Py/Pz/Ek " << v1secPx[ns] << "/" << v1secPy[ns] << "/" << v1secPz[ns] << "/" << v1secEk[ns]; 00237 }
float PHcalTB04Info::simEcE | ( | ) | const [inline] |
FloatVector PHcalTB04Info::simEEcal | ( | ) | const [inline] |
FloatVector PHcalTB04Info::simEHcal | ( | ) | const [inline] |
float PHcalTB04Info::simEtotal | ( | ) | const [inline] |
float PHcalTB04Info::simHcE | ( | ) | const [inline] |
FloatVector PHcalTB04Info::timeHit | ( | ) | const [inline] |
int PHcalTB04Info::tower | ( | ) | const [inline] |
IntVector PHcalTB04Info::vtxPartID | ( | ) | const [inline] |
float PHcalTB04Info::vtxPrimPx | ( | ) | const [inline] |
float PHcalTB04Info::vtxPrimPy | ( | ) | const [inline] |
float PHcalTB04Info::vtxPrimPz | ( | ) | const [inline] |
float PHcalTB04Info::vtxPrimR | ( | ) | const [inline] |
float PHcalTB04Info::vtxPrimU | ( | ) | const [inline] |
float PHcalTB04Info::vtxPrimV | ( | ) | const [inline] |
float PHcalTB04Info::vtxPrimW | ( | ) | const [inline] |
float PHcalTB04Info::vtxPrimX | ( | ) | const [inline] |
float PHcalTB04Info::vtxPrimY | ( | ) | const [inline] |
float PHcalTB04Info::vtxPrimZ | ( | ) | const [inline] |
int PHcalTB04Info::vtxSec | ( | ) | const [inline] |
FloatVector PHcalTB04Info::vtxSecEk | ( | ) | const [inline] |
FloatVector PHcalTB04Info::vtxSecPx | ( | ) | const [inline] |
FloatVector PHcalTB04Info::vtxSecPy | ( | ) | const [inline] |
FloatVector PHcalTB04Info::vtxSecPz | ( | ) | const [inline] |
IntVector PHcalTB04Info::vtxTrkID | ( | ) | const [inline] |
Definition at line 76 of file PHcalTB04Info.h.
References v1secTrackID.
00076 {return v1secTrackID;}
int PHcalTB04Info::vtxType | ( | ) | const [inline] |
friend class HcalTB04Analysis [friend] |
Definition at line 38 of file PHcalTB04Info.h.
IntVector PHcalTB04Info::detHit [private] |
float PHcalTB04Info::digEEc [private] |
float PHcalTB04Info::digEHc [private] |
float PHcalTB04Info::digEtot [private] |
float PHcalTB04Info::eBeam [private] |
FloatVector PHcalTB04Info::edige [private] |
Definition at line 127 of file PHcalTB04Info.h.
Referenced by digEEcal(), setEdepEcal(), and setIDs().
FloatVector PHcalTB04Info::edigh [private] |
Definition at line 128 of file PHcalTB04Info.h.
Referenced by digEHcal(), setEdepHcal(), and setIDs().
FloatVector PHcalTB04Info::eHit [private] |
FloatVector PHcalTB04Info::esime [private] |
Definition at line 127 of file PHcalTB04Info.h.
Referenced by setEdepEcal(), setIDs(), and simEEcal().
FloatVector PHcalTB04Info::esimh [private] |
Definition at line 128 of file PHcalTB04Info.h.
Referenced by setEdepHcal(), setIDs(), and simEHcal().
float PHcalTB04Info::etaBeam [private] |
IntVector PHcalTB04Info::etaHit [private] |
int PHcalTB04Info::hit [private] |
int PHcalTB04Info::idBeam [private] |
IntVector PHcalTB04Info::idEcal [private] |
IntVector PHcalTB04Info::idHcal [private] |
FloatVector PHcalTB04Info::latdigEta [private] |
FloatVector PHcalTB04Info::latdigPhi [private] |
FloatVector PHcalTB04Info::latsimEta [private] |
FloatVector PHcalTB04Info::latsimPhi [private] |
IntVector PHcalTB04Info::layHit [private] |
FloatVector PHcalTB04Info::longdig [private] |
FloatVector PHcalTB04Info::longsim [private] |
int PHcalTB04Info::nCrystal [private] |
Definition at line 134 of file PHcalTB04Info.h.
Referenced by clear(), crystal(), setEdepEcal(), and setIDs().
int PHcalTB04Info::nPrimary [private] |
int PHcalTB04Info::nTower [private] |
Definition at line 136 of file PHcalTB04Info.h.
Referenced by clear(), setEdepHcal(), setIDs(), and tower().
float PHcalTB04Info::phiBeam [private] |
IntVector PHcalTB04Info::phiHit [private] |
float PHcalTB04Info::simEEc [private] |
float PHcalTB04Info::simEHc [private] |
float PHcalTB04Info::simEtot [private] |
FloatVector PHcalTB04Info::tHit [private] |
int PHcalTB04Info::v1EvNum [private] |
int PHcalTB04Info::v1Nsec [private] |
float PHcalTB04Info::v1Px [private] |
Definition at line 148 of file PHcalTB04Info.h.
Referenced by clear(), setVtxPrim(), and vtxPrimPx().
float PHcalTB04Info::v1Py [private] |
Definition at line 148 of file PHcalTB04Info.h.
Referenced by clear(), setVtxPrim(), and vtxPrimPy().
float PHcalTB04Info::v1Pz [private] |
Definition at line 148 of file PHcalTB04Info.h.
Referenced by clear(), setVtxPrim(), and vtxPrimPz().
float PHcalTB04Info::v1R [private] |
FloatVector PHcalTB04Info::v1secEk [private] |
IntVector PHcalTB04Info::v1secPartID [private] |
FloatVector PHcalTB04Info::v1secPx [private] |
FloatVector PHcalTB04Info::v1secPy [private] |
FloatVector PHcalTB04Info::v1secPz [private] |
IntVector PHcalTB04Info::v1secTrackID [private] |
int PHcalTB04Info::v1Type [private] |
float PHcalTB04Info::v1U [private] |
Definition at line 147 of file PHcalTB04Info.h.
Referenced by clear(), setVtxPrim(), and vtxPrimU().
float PHcalTB04Info::v1V [private] |
Definition at line 147 of file PHcalTB04Info.h.
Referenced by clear(), setVtxPrim(), and vtxPrimV().
float PHcalTB04Info::v1W [private] |
Definition at line 147 of file PHcalTB04Info.h.
Referenced by clear(), setVtxPrim(), and vtxPrimW().
float PHcalTB04Info::v1X [private] |
Definition at line 147 of file PHcalTB04Info.h.
Referenced by clear(), setVtxPrim(), and vtxPrimX().
float PHcalTB04Info::v1Y [private] |
Definition at line 147 of file PHcalTB04Info.h.
Referenced by clear(), setVtxPrim(), and vtxPrimY().
float PHcalTB04Info::v1Z [private] |
Definition at line 147 of file PHcalTB04Info.h.
Referenced by clear(), setVtxPrim(), and vtxPrimZ().