#include <PValidationFormats.h>
Classes | |
struct | Hit |
struct | Trk |
struct | Vtx |
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 (const std::vector< float > &pt, const std::vector< float > &e, const std::vector< float > &eta, const std::vector< float > &phi) |
void | putG4Vtx (const std::vector< float > &x, const std::vector< float > &y, const std::vector< float > &z) |
void | putHits (const std::vector< int > &_sysID, const std::vector< float > &_detUnitId, const std::vector< float > &_trackId, const std::vector< float > &_processType, const std::vector< float > &_particleType, const std::vector< float > &_pabs, const std::vector< float > &_lpx, const std::vector< float > &_lpy, const std::vector< float > &_lpz, const std::vector< float > &_ldx, const std::vector< float > &_ldy, const std::vector< float > &_ldz, const std::vector< float > &_ldtheta, const std::vector< float > &_ldphi, const std::vector< float > &_exx, const std::vector< float > &_exy, const std::vector< float > &_exz, const std::vector< float > &_enx, const std::vector< float > &_eny, const std::vector< float > &_enz, const std::vector< float > &_eloss, const 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 |
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.
: nRawGenPart(0), nG4Vtx(0), nG4Trk(0), nHits(0) {}
virtual PTrackerSimHit::~PTrackerSimHit | ( | ) | [inline, virtual] |
Definition at line 1666 of file PValidationFormats.h.
{}
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] |
void PTrackerSimHit::putG4Trk | ( | const std::vector< float > & | pt, |
const std::vector< float > & | e, | ||
const std::vector< float > & | eta, | ||
const std::vector< float > & | phi | ||
) |
Definition at line 1714 of file PValidationFormats.cc.
References G4Trk, i, and nG4Trk.
Referenced by TrackerHitProducer::storeG4MC().
void PTrackerSimHit::putG4Vtx | ( | const std::vector< float > & | x, |
const std::vector< float > & | y, | ||
const std::vector< float > & | z | ||
) |
void PTrackerSimHit::putHits | ( | const std::vector< int > & | _sysID, |
const std::vector< float > & | _detUnitId, | ||
const std::vector< float > & | _trackId, | ||
const std::vector< float > & | _processType, | ||
const std::vector< float > & | _particleType, | ||
const std::vector< float > & | _pabs, | ||
const std::vector< float > & | _lpx, | ||
const std::vector< float > & | _lpy, | ||
const std::vector< float > & | _lpz, | ||
const std::vector< float > & | _ldx, | ||
const std::vector< float > & | _ldy, | ||
const std::vector< float > & | _ldz, | ||
const std::vector< float > & | _ldtheta, | ||
const std::vector< float > & | _ldphi, | ||
const std::vector< float > & | _exx, | ||
const std::vector< float > & | _exy, | ||
const std::vector< float > & | _exz, | ||
const std::vector< float > & | _enx, | ||
const std::vector< float > & | _eny, | ||
const std::vector< float > & | _enz, | ||
const std::vector< float > & | _eloss, | ||
const std::vector< float > & | _tof | ||
) |
Definition at line 1730 of file PValidationFormats.cc.
References Hits, i, and nHits.
Referenced by TrackerHitProducer::storeTrk().
{ nHits = _tof.size(); Hits.resize(nHits); for (int i = 0; i < nHits; ++i) { Hits[i]._sysID = _sysID[i]; Hits[i]._detUnitId = _detUnitId[i]; Hits[i]._trackId = _trackId[i]; Hits[i]._processType = _processType[i]; Hits[i]._particleType = _particleType[i]; Hits[i]._pabs = _pabs[i]; Hits[i]._lpx = _lpx[i]; Hits[i]._lpy = _lpy[i]; Hits[i]._lpz = _lpz[i]; Hits[i]._ldx = _ldx[i]; Hits[i]._ldy = _ldy[i]; Hits[i]._ldz = _ldz[i]; Hits[i]._ldtheta = _ldtheta[i]; Hits[i]._ldphi = _ldphi[i]; Hits[i]._exx = _exx[i]; Hits[i]._exy = _exy[i]; Hits[i]._exz = _exz[i]; Hits[i]._enx = _enx[i]; Hits[i]._eny = _eny[i]; Hits[i]._enz = _enz[i]; Hits[i]._eloss = _eloss[i]; Hits[i]._tof = _tof[i]; } return; }
void PTrackerSimHit::putRawGenPart | ( | int | n | ) |
Definition at line 1694 of file PValidationFormats.cc.
References n, and nRawGenPart.
Referenced by TrackerHitProducer::storeG4MC().
{ nRawGenPart = n; return; }
TrkVector PTrackerSimHit::G4Trk [private] |
Definition at line 1753 of file PValidationFormats.h.
Referenced by getG4Trk(), and putG4Trk().
VtxVector PTrackerSimHit::G4Vtx [private] |
Definition at line 1751 of file PValidationFormats.h.
Referenced by getG4Vtx(), and putG4Vtx().
HitVector PTrackerSimHit::Hits [private] |
Definition at line 1756 of file PValidationFormats.h.
int PTrackerSimHit::nG4Trk [private] |
Definition at line 1752 of file PValidationFormats.h.
Referenced by getnG4Trk(), and putG4Trk().
int PTrackerSimHit::nG4Vtx [private] |
Definition at line 1750 of file PValidationFormats.h.
Referenced by getnG4Vtx(), and putG4Vtx().
int PTrackerSimHit::nHits [private] |
Definition at line 1755 of file PValidationFormats.h.
Referenced by getnHits(), and putHits().
int PTrackerSimHit::nRawGenPart [private] |
Definition at line 1749 of file PValidationFormats.h.
Referenced by getnRawGenPart(), and putRawGenPart().