#include <PValidationFormats.h>
Classes | |
struct | CSC |
struct | DT |
struct | RPC |
struct | Trk |
struct | Vtx |
Public Types | |
typedef std::vector< CSC > | CSCVector |
typedef std::vector< DT > | DTVector |
typedef std::vector< RPC > | RPCVector |
typedef std::vector< Trk > | TrkVector |
typedef std::vector< Vtx > | VtxVector |
Public Member Functions | |
CSCVector | getCSCHits () |
DTVector | getDTHits () |
TrkVector | getG4Trk () |
VtxVector | getG4Vtx () |
int | getnCSCHits () |
int | getnDTHits () |
int | getnG4Trk () |
int | getnG4Vtx () |
int | getnRawGenPart () |
get functions | |
int | getnRPCHits () |
RPCVector | getRPCHits () |
PMuonSimHit () | |
void | putCSCHits (std::vector< int > _cscId, std::vector< unsigned int > _detUnitId, std::vector< float > _trackId, std::vector< float > _processType, std::vector< float > _particleType, std::vector< float > _pabs, std::vector< float > _globposz, std::vector< float > _globposphi, std::vector< float > _globposeta, std::vector< float > _locposx, std::vector< float > _locposy, std::vector< float > _locposz, std::vector< float > _locdirx, std::vector< float > _locdiry, std::vector< float > _locdirz, std::vector< float > _locdirtheta, std::vector< float > _locdirphi, std::vector< float > _exitpointx, std::vector< float > _exitpointy, std::vector< float > _exitpointz, std::vector< float > _entrypointx, std::vector< float > _entrypointy, std::vector< float > _entrypointz, std::vector< float > _enloss, std::vector< float > _tof) |
void | putDTHits (std::vector< unsigned int > _detUnitId, std::vector< float > _trackId, std::vector< float > _processType, std::vector< float > _particleType, std::vector< float > _pabs, std::vector< float > _globposz, std::vector< float > _globposphi, std::vector< float > _globposeta, std::vector< float > _locposx, std::vector< float > _locposy, std::vector< float > _locposz, std::vector< float > _locdirx, std::vector< float > _locdiry, std::vector< float > _locdirz, std::vector< float > _locdirtheta, std::vector< float > _locdirphi, std::vector< float > _exitpointx, std::vector< float > _exitpointy, std::vector< float > _exitpointz, std::vector< float > _entrypointx, std::vector< float > _entrypointy, std::vector< float > _entrypointz, std::vector< float > _enloss, std::vector< float > _tof) |
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 | putRawGenPart (int n) |
put functions | |
void | putRPCHits (std::vector< unsigned int > _detUnitId, std::vector< float > _trackId, std::vector< float > _processType, std::vector< float > _particleType, std::vector< float > _pabs, std::vector< float > _globposz, std::vector< float > _globposphi, std::vector< float > _globposeta, std::vector< float > _locposx, std::vector< float > _locposy, std::vector< float > _locposz, std::vector< float > _locdirx, std::vector< float > _locdiry, std::vector< float > _locdirz, std::vector< float > _locdirtheta, std::vector< float > _locdirphi, std::vector< float > _exitpointx, std::vector< float > _exitpointy, std::vector< float > _exitpointz, std::vector< float > _entrypointx, std::vector< float > _entrypointy, std::vector< float > _entrypointz, std::vector< float > _enloss, std::vector< float > _tof) |
virtual | ~PMuonSimHit () |
Private Attributes | |
CSCVector | CSCHits |
DTVector | DTHits |
TrkVector | G4Trk |
VtxVector | G4Vtx |
int | nCSCHits |
Hit info. | |
int | nDTHits |
int | nG4Trk |
int | nG4Vtx |
int | nRawGenPart |
G4MC info. | |
int | nRPCHits |
RPCVector | RPCHits |
Class PMuonSimHit defines structure of simulated hits data in CSC,DT,RPC for validation. It also includes vertex and track info.
Definition at line 1366 of file PValidationFormats.h.
typedef std::vector<CSC> PMuonSimHit::CSCVector |
Definition at line 1514 of file PValidationFormats.h.
typedef std::vector<DT> PMuonSimHit::DTVector |
Definition at line 1515 of file PValidationFormats.h.
typedef std::vector<RPC> PMuonSimHit::RPCVector |
Definition at line 1516 of file PValidationFormats.h.
typedef std::vector<Trk> PMuonSimHit::TrkVector |
Definition at line 1512 of file PValidationFormats.h.
typedef std::vector<Vtx> PMuonSimHit::VtxVector |
Definition at line 1511 of file PValidationFormats.h.
PMuonSimHit::PMuonSimHit | ( | ) | [inline] |
Definition at line 1370 of file PValidationFormats.h.
virtual PMuonSimHit::~PMuonSimHit | ( | ) | [inline, virtual] |
Definition at line 1372 of file PValidationFormats.h.
{}
CSCVector PMuonSimHit::getCSCHits | ( | ) | [inline] |
DTVector PMuonSimHit::getDTHits | ( | ) | [inline] |
TrkVector PMuonSimHit::getG4Trk | ( | ) | [inline] |
VtxVector PMuonSimHit::getG4Vtx | ( | ) | [inline] |
int PMuonSimHit::getnCSCHits | ( | ) | [inline] |
int PMuonSimHit::getnDTHits | ( | ) | [inline] |
int PMuonSimHit::getnG4Trk | ( | ) | [inline] |
int PMuonSimHit::getnG4Vtx | ( | ) | [inline] |
int PMuonSimHit::getnRawGenPart | ( | ) | [inline] |
get functions
Definition at line 1608 of file PValidationFormats.h.
References nRawGenPart.
{return nRawGenPart;}
int PMuonSimHit::getnRPCHits | ( | ) | [inline] |
RPCVector PMuonSimHit::getRPCHits | ( | ) | [inline] |
void PMuonSimHit::putCSCHits | ( | std::vector< int > | _cscId, |
std::vector< unsigned int > | _detUnitId, | ||
std::vector< float > | _trackId, | ||
std::vector< float > | _processType, | ||
std::vector< float > | _particleType, | ||
std::vector< float > | _pabs, | ||
std::vector< float > | _globposz, | ||
std::vector< float > | _globposphi, | ||
std::vector< float > | _globposeta, | ||
std::vector< float > | _locposx, | ||
std::vector< float > | _locposy, | ||
std::vector< float > | _locposz, | ||
std::vector< float > | _locdirx, | ||
std::vector< float > | _locdiry, | ||
std::vector< float > | _locdirz, | ||
std::vector< float > | _locdirtheta, | ||
std::vector< float > | _locdirphi, | ||
std::vector< float > | _exitpointx, | ||
std::vector< float > | _exitpointy, | ||
std::vector< float > | _exitpointz, | ||
std::vector< float > | _entrypointx, | ||
std::vector< float > | _entrypointy, | ||
std::vector< float > | _entrypointz, | ||
std::vector< float > | _enloss, | ||
std::vector< float > | _tof | ||
) |
Definition at line 1515 of file PValidationFormats.cc.
References CSCHits, i, and nCSCHits.
{ nCSCHits = _tof.size(); CSCHits.resize(nCSCHits); for (int i = 0; i < nCSCHits; ++i) { CSCHits[i]._cscId = _cscId[i]; CSCHits[i]._detUnitId = _detUnitId[i]; CSCHits[i]._trackId = _trackId[i]; CSCHits[i]._processType = _processType[i]; CSCHits[i]._particleType = _particleType[i]; CSCHits[i]._pabs = _pabs[i]; CSCHits[i]._globposz = _globposz[i]; CSCHits[i]._globposphi = _globposphi[i]; CSCHits[i]._globposeta = _globposeta[i]; CSCHits[i]._locposx = _locposx[i]; CSCHits[i]._locposy = _locposy[i]; CSCHits[i]._locposz = _locposz[i]; CSCHits[i]._locdirx = _locdirx[i]; CSCHits[i]._locdiry = _locdiry[i]; CSCHits[i]._locdirz = _locdirz[i]; CSCHits[i]._locdirtheta = _locdirtheta[i]; CSCHits[i]._locdirphi = _locdirphi[i]; CSCHits[i]._exitpointx = _exitpointx[i]; CSCHits[i]._exitpointy = _exitpointy[i]; CSCHits[i]._exitpointz = _exitpointz[i]; CSCHits[i]._entrypointx = _entrypointx[i]; CSCHits[i]._entrypointy = _entrypointy[i]; CSCHits[i]._entrypointz = _entrypointz[i]; CSCHits[i]._enloss = _enloss[i]; CSCHits[i]._tof = _tof[i]; } return; }
void PMuonSimHit::putDTHits | ( | std::vector< unsigned int > | _detUnitId, |
std::vector< float > | _trackId, | ||
std::vector< float > | _processType, | ||
std::vector< float > | _particleType, | ||
std::vector< float > | _pabs, | ||
std::vector< float > | _globposz, | ||
std::vector< float > | _globposphi, | ||
std::vector< float > | _globposeta, | ||
std::vector< float > | _locposx, | ||
std::vector< float > | _locposy, | ||
std::vector< float > | _locposz, | ||
std::vector< float > | _locdirx, | ||
std::vector< float > | _locdiry, | ||
std::vector< float > | _locdirz, | ||
std::vector< float > | _locdirtheta, | ||
std::vector< float > | _locdirphi, | ||
std::vector< float > | _exitpointx, | ||
std::vector< float > | _exitpointy, | ||
std::vector< float > | _exitpointz, | ||
std::vector< float > | _entrypointx, | ||
std::vector< float > | _entrypointy, | ||
std::vector< float > | _entrypointz, | ||
std::vector< float > | _enloss, | ||
std::vector< float > | _tof | ||
) |
Definition at line 1575 of file PValidationFormats.cc.
References DTHits, i, and nDTHits.
{ nDTHits = _tof.size(); DTHits.resize(nDTHits); for (int i = 0; i < nDTHits; ++i) { DTHits[i]._detUnitId = _detUnitId[i]; DTHits[i]._trackId = _trackId[i]; DTHits[i]._processType = _processType[i]; DTHits[i]._particleType = _particleType[i]; DTHits[i]._pabs = _pabs[i]; DTHits[i]._globposz = _globposz[i]; DTHits[i]._globposphi = _globposphi[i]; DTHits[i]._globposeta = _globposeta[i]; DTHits[i]._locposx = _locposx[i]; DTHits[i]._locposy = _locposy[i]; DTHits[i]._locposz = _locposz[i]; DTHits[i]._locdirx = _locdirx[i]; DTHits[i]._locdiry = _locdiry[i]; DTHits[i]._locdirz = _locdirz[i]; DTHits[i]._locdirtheta = _locdirtheta[i]; DTHits[i]._locdirphi = _locdirphi[i]; DTHits[i]._exitpointx = _exitpointx[i]; DTHits[i]._exitpointy = _exitpointy[i]; DTHits[i]._exitpointz = _exitpointz[i]; DTHits[i]._entrypointx = _entrypointx[i]; DTHits[i]._entrypointy = _entrypointy[i]; DTHits[i]._entrypointz = _entrypointz[i]; DTHits[i]._enloss = _enloss[i]; DTHits[i]._tof = _tof[i]; } return; }
void PMuonSimHit::putG4Trk | ( | std::vector< float > | pt, |
std::vector< float > | e, | ||
std::vector< float > | eta, | ||
std::vector< float > | phi | ||
) |
void PMuonSimHit::putG4Vtx | ( | std::vector< float > | x, |
std::vector< float > | y, | ||
std::vector< float > | z | ||
) |
void PMuonSimHit::putRawGenPart | ( | int | n | ) |
put functions
Definition at line 1482 of file PValidationFormats.cc.
References n, and nRawGenPart.
{ nRawGenPart = n; return; }
void PMuonSimHit::putRPCHits | ( | std::vector< unsigned int > | _detUnitId, |
std::vector< float > | _trackId, | ||
std::vector< float > | _processType, | ||
std::vector< float > | _particleType, | ||
std::vector< float > | _pabs, | ||
std::vector< float > | _globposz, | ||
std::vector< float > | _globposphi, | ||
std::vector< float > | _globposeta, | ||
std::vector< float > | _locposx, | ||
std::vector< float > | _locposy, | ||
std::vector< float > | _locposz, | ||
std::vector< float > | _locdirx, | ||
std::vector< float > | _locdiry, | ||
std::vector< float > | _locdirz, | ||
std::vector< float > | _locdirtheta, | ||
std::vector< float > | _locdirphi, | ||
std::vector< float > | _exitpointx, | ||
std::vector< float > | _exitpointy, | ||
std::vector< float > | _exitpointz, | ||
std::vector< float > | _entrypointx, | ||
std::vector< float > | _entrypointy, | ||
std::vector< float > | _entrypointz, | ||
std::vector< float > | _enloss, | ||
std::vector< float > | _tof | ||
) |
Definition at line 1632 of file PValidationFormats.cc.
References i, nRPCHits, and RPCHits.
{ nRPCHits = _tof.size(); RPCHits.resize(nRPCHits); for (int i = 0; i < nRPCHits; ++i) { RPCHits[i]._detUnitId = _detUnitId[i]; RPCHits[i]._trackId = _trackId[i]; RPCHits[i]._processType = _processType[i]; RPCHits[i]._particleType = _particleType[i]; RPCHits[i]._pabs = _pabs[i]; RPCHits[i]._globposz = _globposz[i]; RPCHits[i]._globposphi = _globposphi[i]; RPCHits[i]._globposeta = _globposeta[i]; RPCHits[i]._locposx = _locposx[i]; RPCHits[i]._locposy = _locposy[i]; RPCHits[i]._locposz = _locposz[i]; RPCHits[i]._locdirx = _locdirx[i]; RPCHits[i]._locdiry = _locdiry[i]; RPCHits[i]._locdirz = _locdirz[i]; RPCHits[i]._locdirtheta = _locdirtheta[i]; RPCHits[i]._locdirphi = _locdirphi[i]; RPCHits[i]._exitpointx = _exitpointx[i]; RPCHits[i]._exitpointy = _exitpointy[i]; RPCHits[i]._exitpointz = _exitpointz[i]; RPCHits[i]._entrypointx = _entrypointx[i]; RPCHits[i]._entrypointy = _entrypointy[i]; RPCHits[i]._entrypointz = _entrypointz[i]; RPCHits[i]._enloss = _enloss[i]; RPCHits[i]._tof = _tof[i]; } return; }
CSCVector PMuonSimHit::CSCHits [private] |
Definition at line 1638 of file PValidationFormats.h.
Referenced by getCSCHits(), and putCSCHits().
DTVector PMuonSimHit::DTHits [private] |
Definition at line 1641 of file PValidationFormats.h.
Referenced by getDTHits(), and putDTHits().
TrkVector PMuonSimHit::G4Trk [private] |
Definition at line 1633 of file PValidationFormats.h.
Referenced by getG4Trk(), and putG4Trk().
VtxVector PMuonSimHit::G4Vtx [private] |
Definition at line 1631 of file PValidationFormats.h.
Referenced by getG4Vtx(), and putG4Vtx().
int PMuonSimHit::nCSCHits [private] |
Hit info.
Definition at line 1637 of file PValidationFormats.h.
Referenced by getnCSCHits(), and putCSCHits().
int PMuonSimHit::nDTHits [private] |
Definition at line 1640 of file PValidationFormats.h.
Referenced by getnDTHits(), and putDTHits().
int PMuonSimHit::nG4Trk [private] |
Definition at line 1632 of file PValidationFormats.h.
Referenced by getnG4Trk(), and putG4Trk().
int PMuonSimHit::nG4Vtx [private] |
Definition at line 1630 of file PValidationFormats.h.
Referenced by getnG4Vtx(), and putG4Vtx().
int PMuonSimHit::nRawGenPart [private] |
G4MC info.
Definition at line 1629 of file PValidationFormats.h.
Referenced by getnRawGenPart(), and putRawGenPart().
int PMuonSimHit::nRPCHits [private] |
Definition at line 1643 of file PValidationFormats.h.
Referenced by getnRPCHits(), and putRPCHits().
RPCVector PMuonSimHit::RPCHits [private] |
Definition at line 1644 of file PValidationFormats.h.
Referenced by getRPCHits(), and putRPCHits().