#include <SimDataFormats/ValidationFormats/interface/PValidationFormats.h>
Public Types | |
typedef std::vector< Hit > | HitVector |
typedef std::vector< Trk > | TrkVector |
typedef std::vector< Vtx > | VtxVector |
Public Member Functions | |
TrkVector | getG4Trk () |
VtxVector | getG4Vtx () |
HitVector | getHits () |
int | getnG4Trk () |
int | getnG4Vtx () |
int | getnHits () |
int | getnRawGenPart () |
PTrackerSimHit () | |
void | putG4Trk (std::vector< float > pt, std::vector< float > e, std::vector< float > eta, std::vector< float > phi) |
void | putG4Vtx (std::vector< float > x, std::vector< float > y, std::vector< float > z) |
void | putHits (std::vector< int > _sysID, std::vector< float > _detUnitId, std::vector< float >_trackId, std::vector< float >_processType, std::vector< float >_particleType, std::vector< float > _pabs, std::vector< float >_lpx, std::vector< float >_lpy, std::vector< float >_lpz, std::vector< float >_ldx, std::vector< float >_ldy, std::vector< float >_ldz, std::vector< float >_ldtheta, std::vector< float >_ldphi, std::vector< float >_exx, std::vector< float >_exy, std::vector< float >_exz, std::vector< float >_enx, std::vector< float >_eny, std::vector< float >_enz, std::vector< float >_eloss, std::vector< float >_tof) |
void | putRawGenPart (int n) |
virtual | ~PTrackerSimHit () |
Private Attributes | |
TrkVector | G4Trk |
VtxVector | G4Vtx |
HitVector | Hits |
int | nG4Trk |
int | nG4Vtx |
int | nHits |
int | nRawGenPart |
Classes | |
struct | Hit |
struct | Trk |
struct | Vtx |
Definition at line 1660 of file PValidationFormats.h.
typedef std::vector<Hit> PTrackerSimHit::HitVector |
Definition at line 1721 of file PValidationFormats.h.
typedef std::vector<Trk> PTrackerSimHit::TrkVector |
Definition at line 1720 of file PValidationFormats.h.
typedef std::vector<Vtx> PTrackerSimHit::VtxVector |
Definition at line 1719 of file PValidationFormats.h.
PTrackerSimHit::PTrackerSimHit | ( | ) | [inline] |
Definition at line 1665 of file PValidationFormats.h.
01665 : nRawGenPart(0), nG4Vtx(0), nG4Trk(0), nHits(0) {}
virtual PTrackerSimHit::~PTrackerSimHit | ( | ) | [inline, virtual] |
TrkVector PTrackerSimHit::getG4Trk | ( | ) | [inline] |
VtxVector PTrackerSimHit::getG4Vtx | ( | ) | [inline] |
HitVector PTrackerSimHit::getHits | ( | ) | [inline] |
int PTrackerSimHit::getnG4Trk | ( | ) | [inline] |
int PTrackerSimHit::getnG4Vtx | ( | ) | [inline] |
int PTrackerSimHit::getnHits | ( | ) | [inline] |
int PTrackerSimHit::getnRawGenPart | ( | ) | [inline] |
Definition at line 1738 of file PValidationFormats.h.
References nRawGenPart.
01738 {return nRawGenPart;}
void PTrackerSimHit::putG4Trk | ( | std::vector< float > | pt, | |
std::vector< float > | e, | |||
std::vector< float > | eta, | |||
std::vector< float > | phi | |||
) |
Definition at line 1714 of file PValidationFormats.cc.
References G4Trk, i, and nG4Trk.
Referenced by TrackerHitProducer::storeG4MC().
01716 { 01717 nG4Trk = pt.size(); 01718 G4Trk.resize(nG4Trk); 01719 for (int i = 0; i < nG4Trk; ++i) { 01720 G4Trk[i].pt = pt[i]; 01721 G4Trk[i].e = e[i]; 01722 G4Trk[i].eta = eta[i]; 01723 G4Trk[i].phi = phi[i]; 01724 } 01725 01726 return; 01727 }
void PTrackerSimHit::putG4Vtx | ( | std::vector< float > | x, | |
std::vector< float > | y, | |||
std::vector< float > | z | |||
) |
Definition at line 1700 of file PValidationFormats.cc.
References G4Vtx, i, and nG4Vtx.
Referenced by TrackerHitProducer::storeG4MC().
01702 { 01703 nG4Vtx = x.size(); 01704 G4Vtx.resize(nG4Vtx); 01705 for (int i = 0; i < nG4Vtx; ++i) { 01706 G4Vtx[i].x = x[i]; 01707 G4Vtx[i].y = y[i]; 01708 G4Vtx[i].z = z[i]; 01709 } 01710 01711 return; 01712 }
void PTrackerSimHit::putHits | ( | std::vector< int > | _sysID, | |
std::vector< float > | _detUnitId, | |||
std::vector< float > | _trackId, | |||
std::vector< float > | _processType, | |||
std::vector< float > | _particleType, | |||
std::vector< float > | _pabs, | |||
std::vector< float > | _lpx, | |||
std::vector< float > | _lpy, | |||
std::vector< float > | _lpz, | |||
std::vector< float > | _ldx, | |||
std::vector< float > | _ldy, | |||
std::vector< float > | _ldz, | |||
std::vector< float > | _ldtheta, | |||
std::vector< float > | _ldphi, | |||
std::vector< float > | _exx, | |||
std::vector< float > | _exy, | |||
std::vector< float > | _exz, | |||
std::vector< float > | _enx, | |||
std::vector< float > | _eny, | |||
std::vector< float > | _enz, | |||
std::vector< float > | _eloss, | |||
std::vector< float > | _tof | |||
) |
Definition at line 1730 of file PValidationFormats.cc.
References Hits, i, and nHits.
Referenced by TrackerHitProducer::storeTrk().
01740 { 01741 nHits = _tof.size(); 01742 Hits.resize(nHits); 01743 for (int i = 0; i < nHits; ++i) { 01744 Hits[i]._sysID = _sysID[i]; 01745 Hits[i]._detUnitId = _detUnitId[i]; 01746 Hits[i]._trackId = _trackId[i]; 01747 Hits[i]._processType = _processType[i]; 01748 Hits[i]._particleType = _particleType[i]; 01749 Hits[i]._pabs = _pabs[i]; 01750 Hits[i]._lpx = _lpx[i]; 01751 Hits[i]._lpy = _lpy[i]; 01752 Hits[i]._lpz = _lpz[i]; 01753 Hits[i]._ldx = _ldx[i]; 01754 Hits[i]._ldy = _ldy[i]; 01755 Hits[i]._ldz = _ldz[i]; 01756 Hits[i]._ldtheta = _ldtheta[i]; 01757 Hits[i]._ldphi = _ldphi[i]; 01758 Hits[i]._exx = _exx[i]; 01759 Hits[i]._exy = _exy[i]; 01760 Hits[i]._exz = _exz[i]; 01761 Hits[i]._enx = _enx[i]; 01762 Hits[i]._eny = _eny[i]; 01763 Hits[i]._enz = _enz[i]; 01764 Hits[i]._eloss = _eloss[i]; 01765 Hits[i]._tof = _tof[i]; 01766 } 01767 01768 return; 01769 }
Definition at line 1694 of file PValidationFormats.cc.
References nRawGenPart.
Referenced by TrackerHitProducer::storeG4MC().
01695 { 01696 nRawGenPart = n; 01697 return; 01698 }
TrkVector PTrackerSimHit::G4Trk [private] |
VtxVector PTrackerSimHit::G4Vtx [private] |
HitVector PTrackerSimHit::Hits [private] |
int PTrackerSimHit::nG4Trk [private] |
int PTrackerSimHit::nG4Vtx [private] |
int PTrackerSimHit::nHits [private] |
int PTrackerSimHit::nRawGenPart [private] |
Definition at line 1749 of file PValidationFormats.h.
Referenced by getnRawGenPart(), and putRawGenPart().