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
PMuonSimHit Class Reference

#include <PValidationFormats.h>

Classes

struct  CSC
 
struct  DT
 
struct  RPC
 
struct  Trk
 
struct  Vtx
 

Public Types

typedef std::vector< CSCCSCVector
 
typedef std::vector< DTDTVector
 
typedef std::vector< RPCRPCVector
 
typedef std::vector< TrkTrkVector
 
typedef std::vector< VtxVtxVector
 

Public Member Functions

CSCVector getCSCHits ()
 
DTVector getDTHits ()
 
TrkVector getG4Trk ()
 
VtxVector getG4Vtx ()
 
int getnCSCHits ()
 
int getnDTHits ()
 
int getnG4Trk ()
 
int getnG4Vtx ()
 
int getnRawGenPart ()
 get functions More...
 
int getnRPCHits ()
 
RPCVector getRPCHits ()
 
 PMuonSimHit ()
 
void putCSCHits (const std::vector< int > &_cscId, const std::vector< unsigned int > &_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 > &_globposz, const std::vector< float > &_globposphi, const std::vector< float > &_globposeta, const std::vector< float > &_locposx, const std::vector< float > &_locposy, const std::vector< float > &_locposz, const std::vector< float > &_locdirx, const std::vector< float > &_locdiry, const std::vector< float > &_locdirz, const std::vector< float > &_locdirtheta, const std::vector< float > &_locdirphi, const std::vector< float > &_exitpointx, const std::vector< float > &_exitpointy, const std::vector< float > &_exitpointz, const std::vector< float > &_entrypointx, const std::vector< float > &_entrypointy, const std::vector< float > &_entrypointz, const std::vector< float > &_enloss, const std::vector< float > &_tof)
 
void putDTHits (const std::vector< unsigned int > &_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 > &_globposz, const std::vector< float > &_globposphi, const std::vector< float > &_globposeta, const std::vector< float > &_locposx, const std::vector< float > &_locposy, const std::vector< float > &_locposz, const std::vector< float > &_locdirx, const std::vector< float > &_locdiry, const std::vector< float > &_locdirz, const std::vector< float > &_locdirtheta, const std::vector< float > &_locdirphi, const std::vector< float > &_exitpointx, const std::vector< float > &_exitpointy, const std::vector< float > &_exitpointz, const std::vector< float > &_entrypointx, const std::vector< float > &_entrypointy, const std::vector< float > &_entrypointz, const std::vector< float > &_enloss, const std::vector< float > &_tof)
 
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 putRawGenPart (int n)
 put functions More...
 
void putRPCHits (const std::vector< unsigned int > &_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 > &_globposz, const std::vector< float > &_globposphi, const std::vector< float > &_globposeta, const std::vector< float > &_locposx, const std::vector< float > &_locposy, const std::vector< float > &_locposz, const std::vector< float > &_locdirx, const std::vector< float > &_locdiry, const std::vector< float > &_locdirz, const std::vector< float > &_locdirtheta, const std::vector< float > &_locdirphi, const std::vector< float > &_exitpointx, const std::vector< float > &_exitpointy, const std::vector< float > &_exitpointz, const std::vector< float > &_entrypointx, const std::vector< float > &_entrypointy, const std::vector< float > &_entrypointz, const std::vector< float > &_enloss, const std::vector< float > &_tof)
 
virtual ~PMuonSimHit ()
 

Private Attributes

CSCVector CSCHits
 
DTVector DTHits
 
TrkVector G4Trk
 
VtxVector G4Vtx
 
int nCSCHits
 Hit info. More...
 
int nDTHits
 
int nG4Trk
 
int nG4Vtx
 
int nRawGenPart
 G4MC info. More...
 
int nRPCHits
 
RPCVector RPCHits
 

Detailed Description

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.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

PMuonSimHit::PMuonSimHit ( )
inline

Definition at line 1370 of file PValidationFormats.h.

1370  : nRawGenPart(0), nG4Vtx(0), nG4Trk(0),
1371  nCSCHits(0), nDTHits(0), nRPCHits(0) {}
int nRawGenPart
G4MC info.
int nCSCHits
Hit info.
virtual PMuonSimHit::~PMuonSimHit ( )
inlinevirtual

Definition at line 1372 of file PValidationFormats.h.

1372 {}

Member Function Documentation

CSCVector PMuonSimHit::getCSCHits ( )
inline

Definition at line 1616 of file PValidationFormats.h.

References CSCHits.

1616 {return CSCHits;}
DTVector PMuonSimHit::getDTHits ( )
inline

Definition at line 1619 of file PValidationFormats.h.

References DTHits.

1619 {return DTHits;}
TrkVector PMuonSimHit::getG4Trk ( )
inline

Definition at line 1613 of file PValidationFormats.h.

References G4Trk.

1613 {return G4Trk;}
VtxVector PMuonSimHit::getG4Vtx ( )
inline

Definition at line 1612 of file PValidationFormats.h.

References G4Vtx.

1612 {return G4Vtx;}
int PMuonSimHit::getnCSCHits ( )
inline

Definition at line 1615 of file PValidationFormats.h.

References nCSCHits.

1615 {return nCSCHits;}
int nCSCHits
Hit info.
int PMuonSimHit::getnDTHits ( )
inline

Definition at line 1618 of file PValidationFormats.h.

References nDTHits.

1618 {return nDTHits;}
int PMuonSimHit::getnG4Trk ( )
inline

Definition at line 1610 of file PValidationFormats.h.

References nG4Trk.

1610 {return nG4Trk;}
int PMuonSimHit::getnG4Vtx ( )
inline

Definition at line 1609 of file PValidationFormats.h.

References nG4Vtx.

1609 {return nG4Vtx;}
int PMuonSimHit::getnRawGenPart ( )
inline

get functions

Definition at line 1608 of file PValidationFormats.h.

References nRawGenPart.

1608 {return nRawGenPart;}
int nRawGenPart
G4MC info.
int PMuonSimHit::getnRPCHits ( )
inline

Definition at line 1621 of file PValidationFormats.h.

References nRPCHits.

1621 {return nRPCHits;}
RPCVector PMuonSimHit::getRPCHits ( )
inline

Definition at line 1622 of file PValidationFormats.h.

References RPCHits.

1622 {return RPCHits;}
void PMuonSimHit::putCSCHits ( const std::vector< int > &  _cscId,
const std::vector< unsigned int > &  _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 > &  _globposz,
const std::vector< float > &  _globposphi,
const std::vector< float > &  _globposeta,
const std::vector< float > &  _locposx,
const std::vector< float > &  _locposy,
const std::vector< float > &  _locposz,
const std::vector< float > &  _locdirx,
const std::vector< float > &  _locdiry,
const std::vector< float > &  _locdirz,
const std::vector< float > &  _locdirtheta,
const std::vector< float > &  _locdirphi,
const std::vector< float > &  _exitpointx,
const std::vector< float > &  _exitpointy,
const std::vector< float > &  _exitpointz,
const std::vector< float > &  _entrypointx,
const std::vector< float > &  _entrypointy,
const std::vector< float > &  _entrypointz,
const std::vector< float > &  _enloss,
const std::vector< float > &  _tof 
)

Definition at line 1515 of file PValidationFormats.cc.

References CSCHits, i, and nCSCHits.

1542 {
1543  nCSCHits = _tof.size();
1544  CSCHits.resize(nCSCHits);
1545  for (int i = 0; i < nCSCHits; ++i) {
1546  CSCHits[i]._cscId = _cscId[i];
1547  CSCHits[i]._detUnitId = _detUnitId[i];
1548  CSCHits[i]._trackId = _trackId[i];
1549  CSCHits[i]._processType = _processType[i];
1550  CSCHits[i]._particleType = _particleType[i];
1551  CSCHits[i]._pabs = _pabs[i];
1552  CSCHits[i]._globposz = _globposz[i];
1553  CSCHits[i]._globposphi = _globposphi[i];
1554  CSCHits[i]._globposeta = _globposeta[i];
1555  CSCHits[i]._locposx = _locposx[i];
1556  CSCHits[i]._locposy = _locposy[i];
1557  CSCHits[i]._locposz = _locposz[i];
1558  CSCHits[i]._locdirx = _locdirx[i];
1559  CSCHits[i]._locdiry = _locdiry[i];
1560  CSCHits[i]._locdirz = _locdirz[i];
1561  CSCHits[i]._locdirtheta = _locdirtheta[i];
1562  CSCHits[i]._locdirphi = _locdirphi[i];
1563  CSCHits[i]._exitpointx = _exitpointx[i];
1564  CSCHits[i]._exitpointy = _exitpointy[i];
1565  CSCHits[i]._exitpointz = _exitpointz[i];
1566  CSCHits[i]._entrypointx = _entrypointx[i];
1567  CSCHits[i]._entrypointy = _entrypointy[i];
1568  CSCHits[i]._entrypointz = _entrypointz[i];
1569  CSCHits[i]._enloss = _enloss[i];
1570  CSCHits[i]._tof = _tof[i];
1571  }
1572  return;
1573 }
int i
Definition: DBlmapReader.cc:9
int nCSCHits
Hit info.
void PMuonSimHit::putDTHits ( const std::vector< unsigned int > &  _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 > &  _globposz,
const std::vector< float > &  _globposphi,
const std::vector< float > &  _globposeta,
const std::vector< float > &  _locposx,
const std::vector< float > &  _locposy,
const std::vector< float > &  _locposz,
const std::vector< float > &  _locdirx,
const std::vector< float > &  _locdiry,
const std::vector< float > &  _locdirz,
const std::vector< float > &  _locdirtheta,
const std::vector< float > &  _locdirphi,
const std::vector< float > &  _exitpointx,
const std::vector< float > &  _exitpointy,
const std::vector< float > &  _exitpointz,
const std::vector< float > &  _entrypointx,
const std::vector< float > &  _entrypointy,
const std::vector< float > &  _entrypointz,
const std::vector< float > &  _enloss,
const std::vector< float > &  _tof 
)

Definition at line 1575 of file PValidationFormats.cc.

References DTHits, i, and nDTHits.

1600 {
1601  nDTHits = _tof.size();
1602  DTHits.resize(nDTHits);
1603  for (int i = 0; i < nDTHits; ++i) {
1604  DTHits[i]._detUnitId = _detUnitId[i];
1605  DTHits[i]._trackId = _trackId[i];
1606  DTHits[i]._processType = _processType[i];
1607  DTHits[i]._particleType = _particleType[i];
1608  DTHits[i]._pabs = _pabs[i];
1609  DTHits[i]._globposz = _globposz[i];
1610  DTHits[i]._globposphi = _globposphi[i];
1611  DTHits[i]._globposeta = _globposeta[i];
1612  DTHits[i]._locposx = _locposx[i];
1613  DTHits[i]._locposy = _locposy[i];
1614  DTHits[i]._locposz = _locposz[i];
1615  DTHits[i]._locdirx = _locdirx[i];
1616  DTHits[i]._locdiry = _locdiry[i];
1617  DTHits[i]._locdirz = _locdirz[i];
1618  DTHits[i]._locdirtheta = _locdirtheta[i];
1619  DTHits[i]._locdirphi = _locdirphi[i];
1620  DTHits[i]._exitpointx = _exitpointx[i];
1621  DTHits[i]._exitpointy = _exitpointy[i];
1622  DTHits[i]._exitpointz = _exitpointz[i];
1623  DTHits[i]._entrypointx = _entrypointx[i];
1624  DTHits[i]._entrypointy = _entrypointy[i];
1625  DTHits[i]._entrypointz = _entrypointz[i];
1626  DTHits[i]._enloss = _enloss[i];
1627  DTHits[i]._tof = _tof[i];
1628  }
1629  return;
1630 }
int i
Definition: DBlmapReader.cc:9
void PMuonSimHit::putG4Trk ( const std::vector< float > &  pt,
const std::vector< float > &  e,
const std::vector< float > &  eta,
const std::vector< float > &  phi 
)

Definition at line 1501 of file PValidationFormats.cc.

References G4Trk, i, and nG4Trk.

1503 {
1504  nG4Trk = pt.size();
1505  G4Trk.resize(nG4Trk);
1506  for (int i = 0; i < nG4Trk; ++i) {
1507  G4Trk[i].pt = pt[i];
1508  G4Trk[i].e = e[i];
1509  G4Trk[i].eta = eta[i];
1510  G4Trk[i].phi = phi[i];
1511  }
1512  return;
1513 }
int i
Definition: DBlmapReader.cc:9
T eta() const
Definition: DDAxes.h:10
void PMuonSimHit::putG4Vtx ( const std::vector< float > &  x,
const std::vector< float > &  y,
const std::vector< float > &  z 
)

Definition at line 1488 of file PValidationFormats.cc.

References G4Vtx, i, and nG4Vtx.

1490 {
1491  nG4Vtx = x.size();
1492  G4Vtx.resize(nG4Vtx);
1493  for (int i = 0; i < nG4Vtx; ++i) {
1494  G4Vtx[i].x = x[i];
1495  G4Vtx[i].y = y[i];
1496  G4Vtx[i].z = z[i];
1497  }
1498  return;
1499 }
int i
Definition: DBlmapReader.cc:9
float float float z
Definition: DDAxes.h:10
void PMuonSimHit::putRawGenPart ( int  n)

put functions

Definition at line 1482 of file PValidationFormats.cc.

References n, and nRawGenPart.

1483 {
1484  nRawGenPart = n;
1485  return;
1486 }
int nRawGenPart
G4MC info.
void PMuonSimHit::putRPCHits ( const std::vector< unsigned int > &  _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 > &  _globposz,
const std::vector< float > &  _globposphi,
const std::vector< float > &  _globposeta,
const std::vector< float > &  _locposx,
const std::vector< float > &  _locposy,
const std::vector< float > &  _locposz,
const std::vector< float > &  _locdirx,
const std::vector< float > &  _locdiry,
const std::vector< float > &  _locdirz,
const std::vector< float > &  _locdirtheta,
const std::vector< float > &  _locdirphi,
const std::vector< float > &  _exitpointx,
const std::vector< float > &  _exitpointy,
const std::vector< float > &  _exitpointz,
const std::vector< float > &  _entrypointx,
const std::vector< float > &  _entrypointy,
const std::vector< float > &  _entrypointz,
const std::vector< float > &  _enloss,
const std::vector< float > &  _tof 
)

Definition at line 1632 of file PValidationFormats.cc.

References i, nRPCHits, and RPCHits.

1657 {
1658  nRPCHits = _tof.size();
1659  RPCHits.resize(nRPCHits);
1660  for (int i = 0; i < nRPCHits; ++i) {
1661  RPCHits[i]._detUnitId = _detUnitId[i];
1662  RPCHits[i]._trackId = _trackId[i];
1663  RPCHits[i]._processType = _processType[i];
1664  RPCHits[i]._particleType = _particleType[i];
1665  RPCHits[i]._pabs = _pabs[i];
1666  RPCHits[i]._globposz = _globposz[i];
1667  RPCHits[i]._globposphi = _globposphi[i];
1668  RPCHits[i]._globposeta = _globposeta[i];
1669  RPCHits[i]._locposx = _locposx[i];
1670  RPCHits[i]._locposy = _locposy[i];
1671  RPCHits[i]._locposz = _locposz[i];
1672  RPCHits[i]._locdirx = _locdirx[i];
1673  RPCHits[i]._locdiry = _locdiry[i];
1674  RPCHits[i]._locdirz = _locdirz[i];
1675  RPCHits[i]._locdirtheta = _locdirtheta[i];
1676  RPCHits[i]._locdirphi = _locdirphi[i];
1677  RPCHits[i]._exitpointx = _exitpointx[i];
1678  RPCHits[i]._exitpointy = _exitpointy[i];
1679  RPCHits[i]._exitpointz = _exitpointz[i];
1680  RPCHits[i]._entrypointx = _entrypointx[i];
1681  RPCHits[i]._entrypointy = _entrypointy[i];
1682  RPCHits[i]._entrypointz = _entrypointz[i];
1683  RPCHits[i]._enloss = _enloss[i];
1684  RPCHits[i]._tof = _tof[i];
1685  }
1686  return;
1687 
1688 }
int i
Definition: DBlmapReader.cc:9

Member Data Documentation

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