CMS 3D CMS Logo

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

Detailed Description

Definition at line 1771 of file PValidationFormats.h.

Member Typedef Documentation

◆ HitVector

typedef std::vector<Hit> PTrackerSimHit::HitVector

Definition at line 1841 of file PValidationFormats.h.

◆ TrkVector

typedef std::vector<Trk> PTrackerSimHit::TrkVector

Definition at line 1840 of file PValidationFormats.h.

◆ VtxVector

typedef std::vector<Vtx> PTrackerSimHit::VtxVector

Definition at line 1839 of file PValidationFormats.h.

Constructor & Destructor Documentation

◆ PTrackerSimHit()

PTrackerSimHit::PTrackerSimHit ( )
inline

Definition at line 1773 of file PValidationFormats.h.

1773 : nRawGenPart(0), nG4Vtx(0), nG4Trk(0), nHits(0) {}

◆ ~PTrackerSimHit()

virtual PTrackerSimHit::~PTrackerSimHit ( )
inlinevirtual

Definition at line 1774 of file PValidationFormats.h.

1774 {}

Member Function Documentation

◆ getG4Trk()

TrkVector PTrackerSimHit::getG4Trk ( )
inline

Definition at line 1878 of file PValidationFormats.h.

1878 { return G4Trk; }

References G4Trk.

◆ getG4Vtx()

VtxVector PTrackerSimHit::getG4Vtx ( )
inline

Definition at line 1876 of file PValidationFormats.h.

1876 { return G4Vtx; }

References G4Vtx.

◆ getHits()

HitVector PTrackerSimHit::getHits ( )
inline

Definition at line 1880 of file PValidationFormats.h.

1880 { return Hits; }

References Hits.

◆ getnG4Trk()

int PTrackerSimHit::getnG4Trk ( )
inline

Definition at line 1877 of file PValidationFormats.h.

1877 { return nG4Trk; }

References nG4Trk.

◆ getnG4Vtx()

int PTrackerSimHit::getnG4Vtx ( )
inline

Definition at line 1875 of file PValidationFormats.h.

1875 { return nG4Vtx; }

References nG4Vtx.

◆ getnHits()

int PTrackerSimHit::getnHits ( )
inline

Definition at line 1879 of file PValidationFormats.h.

1879 { return nHits; }

References nHits.

◆ getnRawGenPart()

int PTrackerSimHit::getnRawGenPart ( )
inline

Definition at line 1874 of file PValidationFormats.h.

1874 { return nRawGenPart; }

References nRawGenPart.

◆ putG4Trk()

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 1575 of file PValidationFormats.cc.

1578  {
1579  nG4Trk = pt.size();
1580  G4Trk.resize(nG4Trk);
1581  for (int i = 0; i < nG4Trk; ++i) {
1582  G4Trk[i].pt = pt[i];
1583  G4Trk[i].e = e[i];
1584  G4Trk[i].eta = eta[i];
1585  G4Trk[i].phi = phi[i];
1586  }
1587 
1588  return;
1589 }

References MillePedeFileConverter_cfg::e, PVValHelper::eta, G4Trk, mps_fire::i, nG4Trk, phi, and DiDispStaMuonMonitor_cfi::pt.

Referenced by TrackerHitProducer::storeG4MC().

◆ putG4Vtx()

void PTrackerSimHit::putG4Vtx ( const std::vector< float > &  x,
const std::vector< float > &  y,
const std::vector< float > &  z 
)

Definition at line 1563 of file PValidationFormats.cc.

1563  {
1564  nG4Vtx = x.size();
1565  G4Vtx.resize(nG4Vtx);
1566  for (int i = 0; i < nG4Vtx; ++i) {
1567  G4Vtx[i].x = x[i];
1568  G4Vtx[i].y = y[i];
1569  G4Vtx[i].z = z[i];
1570  }
1571 
1572  return;
1573 }

References G4Vtx, mps_fire::i, nG4Vtx, x, y, and z.

Referenced by TrackerHitProducer::storeG4MC().

◆ putHits()

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 1591 of file PValidationFormats.cc.

1614 {
1615  nHits = _tof.size();
1616  Hits.resize(nHits);
1617  for (int i = 0; i < nHits; ++i) {
1618  Hits[i]._sysID = _sysID[i];
1619  Hits[i]._detUnitId = _detUnitId[i];
1620  Hits[i]._trackId = _trackId[i];
1621  Hits[i]._processType = _processType[i];
1622  Hits[i]._particleType = _particleType[i];
1623  Hits[i]._pabs = _pabs[i];
1624  Hits[i]._lpx = _lpx[i];
1625  Hits[i]._lpy = _lpy[i];
1626  Hits[i]._lpz = _lpz[i];
1627  Hits[i]._ldx = _ldx[i];
1628  Hits[i]._ldy = _ldy[i];
1629  Hits[i]._ldz = _ldz[i];
1630  Hits[i]._ldtheta = _ldtheta[i];
1631  Hits[i]._ldphi = _ldphi[i];
1632  Hits[i]._exx = _exx[i];
1633  Hits[i]._exy = _exy[i];
1634  Hits[i]._exz = _exz[i];
1635  Hits[i]._enx = _enx[i];
1636  Hits[i]._eny = _eny[i];
1637  Hits[i]._enz = _enz[i];
1638  Hits[i]._eloss = _eloss[i];
1639  Hits[i]._tof = _tof[i];
1640  }
1641 
1642  return;
1643 }

References Hits, mps_fire::i, and nHits.

Referenced by TrackerHitProducer::storeTrk().

◆ putRawGenPart()

void PTrackerSimHit::putRawGenPart ( int  n)

Definition at line 1558 of file PValidationFormats.cc.

1558  {
1559  nRawGenPart = n;
1560  return;
1561 }

References dqmiodumpmetadata::n, and nRawGenPart.

Referenced by TrackerHitProducer::storeG4MC().

Member Data Documentation

◆ G4Trk

TrkVector PTrackerSimHit::G4Trk
private

Definition at line 1888 of file PValidationFormats.h.

Referenced by getG4Trk(), and putG4Trk().

◆ G4Vtx

VtxVector PTrackerSimHit::G4Vtx
private

Definition at line 1886 of file PValidationFormats.h.

Referenced by getG4Vtx(), and putG4Vtx().

◆ Hits

HitVector PTrackerSimHit::Hits
private

Definition at line 1891 of file PValidationFormats.h.

Referenced by getHits(), and putHits().

◆ nG4Trk

int PTrackerSimHit::nG4Trk
private

Definition at line 1887 of file PValidationFormats.h.

Referenced by getnG4Trk(), and putG4Trk().

◆ nG4Vtx

int PTrackerSimHit::nG4Vtx
private

Definition at line 1885 of file PValidationFormats.h.

Referenced by getnG4Vtx(), and putG4Vtx().

◆ nHits

int PTrackerSimHit::nHits
private

Definition at line 1890 of file PValidationFormats.h.

Referenced by getnHits(), and putHits().

◆ nRawGenPart

int PTrackerSimHit::nRawGenPart
private

Definition at line 1884 of file PValidationFormats.h.

Referenced by getnRawGenPart(), and putRawGenPart().

DDAxes::y
mps_fire.i
i
Definition: mps_fire.py:428
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
PTrackerSimHit::G4Vtx
VtxVector G4Vtx
Definition: PValidationFormats.h:1886
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
PTrackerSimHit::nG4Vtx
int nG4Vtx
Definition: PValidationFormats.h:1885
DDAxes::x
PVValHelper::eta
Definition: PVValidationHelpers.h:69
DDAxes::z
PTrackerSimHit::nRawGenPart
int nRawGenPart
Definition: PValidationFormats.h:1884
PTrackerSimHit::nG4Trk
int nG4Trk
Definition: PValidationFormats.h:1887
PTrackerSimHit::Hits
HitVector Hits
Definition: PValidationFormats.h:1891
DDAxes::phi
PTrackerSimHit::G4Trk
TrkVector G4Trk
Definition: PValidationFormats.h:1888
PTrackerSimHit::nHits
int nHits
Definition: PValidationFormats.h:1890
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37