CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Private Attributes
PTrackerSimHit Class Reference

#include <PValidationFormats.h>

Classes

struct  Hit
 
struct  Trk
 
struct  Vtx
 

Public Types

typedef std::vector< HitHitVector
 
typedef std::vector< TrkTrkVector
 
typedef std::vector< VtxVtxVector
 

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
 

Detailed Description

Definition at line 1660 of file PValidationFormats.h.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

PTrackerSimHit::PTrackerSimHit ( )
inline
virtual PTrackerSimHit::~PTrackerSimHit ( )
inlinevirtual

Definition at line 1666 of file PValidationFormats.h.

1666 {}

Member Function Documentation

TrkVector PTrackerSimHit::getG4Trk ( )
inline

Definition at line 1742 of file PValidationFormats.h.

References G4Trk.

1742 {return G4Trk;}
VtxVector PTrackerSimHit::getG4Vtx ( )
inline

Definition at line 1740 of file PValidationFormats.h.

References G4Vtx.

1740 {return G4Vtx;}
HitVector PTrackerSimHit::getHits ( )
inline

Definition at line 1744 of file PValidationFormats.h.

References Hits.

1744 {return Hits;}
int PTrackerSimHit::getnG4Trk ( )
inline

Definition at line 1741 of file PValidationFormats.h.

References nG4Trk.

1741 {return nG4Trk;}
int PTrackerSimHit::getnG4Vtx ( )
inline

Definition at line 1739 of file PValidationFormats.h.

References nG4Vtx.

1739 {return nG4Vtx;}
int PTrackerSimHit::getnHits ( )
inline

Definition at line 1743 of file PValidationFormats.h.

References nHits.

1743 {return nHits;}
int PTrackerSimHit::getnRawGenPart ( )
inline

Definition at line 1738 of file PValidationFormats.h.

References nRawGenPart.

1738 {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().

1716 {
1717  nG4Trk = pt.size();
1718  G4Trk.resize(nG4Trk);
1719  for (int i = 0; i < nG4Trk; ++i) {
1720  G4Trk[i].pt = pt[i];
1721  G4Trk[i].e = e[i];
1722  G4Trk[i].eta = eta[i];
1723  G4Trk[i].phi = phi[i];
1724  }
1725 
1726  return;
1727 }
int i
Definition: DBlmapReader.cc:9
T eta() const
Definition: DDAxes.h:10
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().

1702 {
1703  nG4Vtx = x.size();
1704  G4Vtx.resize(nG4Vtx);
1705  for (int i = 0; i < nG4Vtx; ++i) {
1706  G4Vtx[i].x = x[i];
1707  G4Vtx[i].y = y[i];
1708  G4Vtx[i].z = z[i];
1709  }
1710 
1711  return;
1712 }
int i
Definition: DBlmapReader.cc:9
Definition: DDAxes.h:10
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().

1740 {
1741  nHits = _tof.size();
1742  Hits.resize(nHits);
1743  for (int i = 0; i < nHits; ++i) {
1744  Hits[i]._sysID = _sysID[i];
1745  Hits[i]._detUnitId = _detUnitId[i];
1746  Hits[i]._trackId = _trackId[i];
1747  Hits[i]._processType = _processType[i];
1748  Hits[i]._particleType = _particleType[i];
1749  Hits[i]._pabs = _pabs[i];
1750  Hits[i]._lpx = _lpx[i];
1751  Hits[i]._lpy = _lpy[i];
1752  Hits[i]._lpz = _lpz[i];
1753  Hits[i]._ldx = _ldx[i];
1754  Hits[i]._ldy = _ldy[i];
1755  Hits[i]._ldz = _ldz[i];
1756  Hits[i]._ldtheta = _ldtheta[i];
1757  Hits[i]._ldphi = _ldphi[i];
1758  Hits[i]._exx = _exx[i];
1759  Hits[i]._exy = _exy[i];
1760  Hits[i]._exz = _exz[i];
1761  Hits[i]._enx = _enx[i];
1762  Hits[i]._eny = _eny[i];
1763  Hits[i]._enz = _enz[i];
1764  Hits[i]._eloss = _eloss[i];
1765  Hits[i]._tof = _tof[i];
1766  }
1767 
1768  return;
1769 }
int i
Definition: DBlmapReader.cc:9
void PTrackerSimHit::putRawGenPart ( int  n)

Definition at line 1694 of file PValidationFormats.cc.

References n, and nRawGenPart.

Referenced by TrackerHitProducer::storeG4MC().

1695 {
1696  nRawGenPart = n;
1697  return;
1698 }

Member Data Documentation

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.

Referenced by getHits(), and putHits().

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().