test
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 1364 of file PValidationFormats.h.

Member Typedef Documentation

typedef std::vector<CSC> PMuonSimHit::CSCVector

Definition at line 1512 of file PValidationFormats.h.

typedef std::vector<DT> PMuonSimHit::DTVector

Definition at line 1513 of file PValidationFormats.h.

typedef std::vector<RPC> PMuonSimHit::RPCVector

Definition at line 1514 of file PValidationFormats.h.

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

Definition at line 1510 of file PValidationFormats.h.

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

Definition at line 1509 of file PValidationFormats.h.

Constructor & Destructor Documentation

PMuonSimHit::PMuonSimHit ( )
inline

Definition at line 1368 of file PValidationFormats.h.

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

Definition at line 1370 of file PValidationFormats.h.

1370 {}

Member Function Documentation

CSCVector PMuonSimHit::getCSCHits ( )
inline

Definition at line 1614 of file PValidationFormats.h.

References CSCHits.

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

Definition at line 1617 of file PValidationFormats.h.

References DTHits.

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

Definition at line 1611 of file PValidationFormats.h.

References G4Trk.

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

Definition at line 1610 of file PValidationFormats.h.

References G4Vtx.

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

Definition at line 1613 of file PValidationFormats.h.

References nCSCHits.

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

Definition at line 1616 of file PValidationFormats.h.

References nDTHits.

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

Definition at line 1608 of file PValidationFormats.h.

References nG4Trk.

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

Definition at line 1607 of file PValidationFormats.h.

References nG4Vtx.

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

get functions

Definition at line 1606 of file PValidationFormats.h.

References nRawGenPart.

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

Definition at line 1619 of file PValidationFormats.h.

References nRPCHits.

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

Definition at line 1620 of file PValidationFormats.h.

References RPCHits.

1620 {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 1513 of file PValidationFormats.cc.

References CSCHits, i, and nCSCHits.

1540 {
1541  nCSCHits = _tof.size();
1542  CSCHits.resize(nCSCHits);
1543  for (int i = 0; i < nCSCHits; ++i) {
1544  CSCHits[i]._cscId = _cscId[i];
1545  CSCHits[i]._detUnitId = _detUnitId[i];
1546  CSCHits[i]._trackId = _trackId[i];
1547  CSCHits[i]._processType = _processType[i];
1548  CSCHits[i]._particleType = _particleType[i];
1549  CSCHits[i]._pabs = _pabs[i];
1550  CSCHits[i]._globposz = _globposz[i];
1551  CSCHits[i]._globposphi = _globposphi[i];
1552  CSCHits[i]._globposeta = _globposeta[i];
1553  CSCHits[i]._locposx = _locposx[i];
1554  CSCHits[i]._locposy = _locposy[i];
1555  CSCHits[i]._locposz = _locposz[i];
1556  CSCHits[i]._locdirx = _locdirx[i];
1557  CSCHits[i]._locdiry = _locdiry[i];
1558  CSCHits[i]._locdirz = _locdirz[i];
1559  CSCHits[i]._locdirtheta = _locdirtheta[i];
1560  CSCHits[i]._locdirphi = _locdirphi[i];
1561  CSCHits[i]._exitpointx = _exitpointx[i];
1562  CSCHits[i]._exitpointy = _exitpointy[i];
1563  CSCHits[i]._exitpointz = _exitpointz[i];
1564  CSCHits[i]._entrypointx = _entrypointx[i];
1565  CSCHits[i]._entrypointy = _entrypointy[i];
1566  CSCHits[i]._entrypointz = _entrypointz[i];
1567  CSCHits[i]._enloss = _enloss[i];
1568  CSCHits[i]._tof = _tof[i];
1569  }
1570  return;
1571 }
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 1573 of file PValidationFormats.cc.

References DTHits, i, and nDTHits.

1598 {
1599  nDTHits = _tof.size();
1600  DTHits.resize(nDTHits);
1601  for (int i = 0; i < nDTHits; ++i) {
1602  DTHits[i]._detUnitId = _detUnitId[i];
1603  DTHits[i]._trackId = _trackId[i];
1604  DTHits[i]._processType = _processType[i];
1605  DTHits[i]._particleType = _particleType[i];
1606  DTHits[i]._pabs = _pabs[i];
1607  DTHits[i]._globposz = _globposz[i];
1608  DTHits[i]._globposphi = _globposphi[i];
1609  DTHits[i]._globposeta = _globposeta[i];
1610  DTHits[i]._locposx = _locposx[i];
1611  DTHits[i]._locposy = _locposy[i];
1612  DTHits[i]._locposz = _locposz[i];
1613  DTHits[i]._locdirx = _locdirx[i];
1614  DTHits[i]._locdiry = _locdiry[i];
1615  DTHits[i]._locdirz = _locdirz[i];
1616  DTHits[i]._locdirtheta = _locdirtheta[i];
1617  DTHits[i]._locdirphi = _locdirphi[i];
1618  DTHits[i]._exitpointx = _exitpointx[i];
1619  DTHits[i]._exitpointy = _exitpointy[i];
1620  DTHits[i]._exitpointz = _exitpointz[i];
1621  DTHits[i]._entrypointx = _entrypointx[i];
1622  DTHits[i]._entrypointy = _entrypointy[i];
1623  DTHits[i]._entrypointz = _entrypointz[i];
1624  DTHits[i]._enloss = _enloss[i];
1625  DTHits[i]._tof = _tof[i];
1626  }
1627  return;
1628 }
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 1499 of file PValidationFormats.cc.

References G4Trk, i, and nG4Trk.

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

Definition at line 1486 of file PValidationFormats.cc.

References G4Vtx, i, and nG4Vtx.

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

put functions

Definition at line 1480 of file PValidationFormats.cc.

References gen::n, and nRawGenPart.

1481 {
1482  nRawGenPart = n;
1483  return;
1484 }
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 1630 of file PValidationFormats.cc.

References i, nRPCHits, and RPCHits.

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

Member Data Documentation

CSCVector PMuonSimHit::CSCHits
private

Definition at line 1636 of file PValidationFormats.h.

Referenced by getCSCHits(), and putCSCHits().

DTVector PMuonSimHit::DTHits
private

Definition at line 1639 of file PValidationFormats.h.

Referenced by getDTHits(), and putDTHits().

TrkVector PMuonSimHit::G4Trk
private

Definition at line 1631 of file PValidationFormats.h.

Referenced by getG4Trk(), and putG4Trk().

VtxVector PMuonSimHit::G4Vtx
private

Definition at line 1629 of file PValidationFormats.h.

Referenced by getG4Vtx(), and putG4Vtx().

int PMuonSimHit::nCSCHits
private

Hit info.

Definition at line 1635 of file PValidationFormats.h.

Referenced by getnCSCHits(), and putCSCHits().

int PMuonSimHit::nDTHits
private

Definition at line 1638 of file PValidationFormats.h.

Referenced by getnDTHits(), and putDTHits().

int PMuonSimHit::nG4Trk
private

Definition at line 1630 of file PValidationFormats.h.

Referenced by getnG4Trk(), and putG4Trk().

int PMuonSimHit::nG4Vtx
private

Definition at line 1628 of file PValidationFormats.h.

Referenced by getnG4Vtx(), and putG4Vtx().

int PMuonSimHit::nRawGenPart
private

G4MC info.

Definition at line 1627 of file PValidationFormats.h.

Referenced by getnRawGenPart(), and putRawGenPart().

int PMuonSimHit::nRPCHits
private

Definition at line 1641 of file PValidationFormats.h.

Referenced by getnRPCHits(), and putRPCHits().

RPCVector PMuonSimHit::RPCHits
private

Definition at line 1642 of file PValidationFormats.h.

Referenced by getRPCHits(), and putRPCHits().