CMS 3D CMS Logo

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

Member Typedef Documentation

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

Definition at line 1630 of file PValidationFormats.h.

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

Definition at line 1631 of file PValidationFormats.h.

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

Definition at line 1632 of file PValidationFormats.h.

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

Definition at line 1628 of file PValidationFormats.h.

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

Definition at line 1627 of file PValidationFormats.h.

Constructor & Destructor Documentation

PMuonSimHit::PMuonSimHit ( )
inline

Definition at line 1448 of file PValidationFormats.h.

virtual PMuonSimHit::~PMuonSimHit ( )
inlinevirtual

Definition at line 1449 of file PValidationFormats.h.

1449 {}

Member Function Documentation

CSCVector PMuonSimHit::getCSCHits ( )
inline

Definition at line 1730 of file PValidationFormats.h.

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

Definition at line 1733 of file PValidationFormats.h.

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

Definition at line 1727 of file PValidationFormats.h.

References PGlobalSimHit::G4Trk.

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

Definition at line 1726 of file PValidationFormats.h.

References PGlobalSimHit::G4Vtx.

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

Definition at line 1729 of file PValidationFormats.h.

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

Definition at line 1732 of file PValidationFormats.h.

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

Definition at line 1724 of file PValidationFormats.h.

References PGlobalSimHit::nG4Trk.

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

Definition at line 1723 of file PValidationFormats.h.

References PGlobalSimHit::nG4Vtx.

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

get functions

Definition at line 1722 of file PValidationFormats.h.

References PGlobalSimHit::nRawGenPart.

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

Definition at line 1735 of file PValidationFormats.h.

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

Definition at line 1736 of file PValidationFormats.h.

1736 { 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 1381 of file PValidationFormats.cc.

References mps_fire::i.

1407 {
1408  nCSCHits = _tof.size();
1409  CSCHits.resize(nCSCHits);
1410  for (int i = 0; i < nCSCHits; ++i) {
1411  CSCHits[i]._cscId = _cscId[i];
1412  CSCHits[i]._detUnitId = _detUnitId[i];
1413  CSCHits[i]._trackId = _trackId[i];
1414  CSCHits[i]._processType = _processType[i];
1415  CSCHits[i]._particleType = _particleType[i];
1416  CSCHits[i]._pabs = _pabs[i];
1417  CSCHits[i]._globposz = _globposz[i];
1418  CSCHits[i]._globposphi = _globposphi[i];
1419  CSCHits[i]._globposeta = _globposeta[i];
1420  CSCHits[i]._locposx = _locposx[i];
1421  CSCHits[i]._locposy = _locposy[i];
1422  CSCHits[i]._locposz = _locposz[i];
1423  CSCHits[i]._locdirx = _locdirx[i];
1424  CSCHits[i]._locdiry = _locdiry[i];
1425  CSCHits[i]._locdirz = _locdirz[i];
1426  CSCHits[i]._locdirtheta = _locdirtheta[i];
1427  CSCHits[i]._locdirphi = _locdirphi[i];
1428  CSCHits[i]._exitpointx = _exitpointx[i];
1429  CSCHits[i]._exitpointy = _exitpointy[i];
1430  CSCHits[i]._exitpointz = _exitpointz[i];
1431  CSCHits[i]._entrypointx = _entrypointx[i];
1432  CSCHits[i]._entrypointy = _entrypointy[i];
1433  CSCHits[i]._entrypointz = _entrypointz[i];
1434  CSCHits[i]._enloss = _enloss[i];
1435  CSCHits[i]._tof = _tof[i];
1436  }
1437  return;
1438 }
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 1440 of file PValidationFormats.cc.

References mps_fire::i.

1465 {
1466  nDTHits = _tof.size();
1467  DTHits.resize(nDTHits);
1468  for (int i = 0; i < nDTHits; ++i) {
1469  DTHits[i]._detUnitId = _detUnitId[i];
1470  DTHits[i]._trackId = _trackId[i];
1471  DTHits[i]._processType = _processType[i];
1472  DTHits[i]._particleType = _particleType[i];
1473  DTHits[i]._pabs = _pabs[i];
1474  DTHits[i]._globposz = _globposz[i];
1475  DTHits[i]._globposphi = _globposphi[i];
1476  DTHits[i]._globposeta = _globposeta[i];
1477  DTHits[i]._locposx = _locposx[i];
1478  DTHits[i]._locposy = _locposy[i];
1479  DTHits[i]._locposz = _locposz[i];
1480  DTHits[i]._locdirx = _locdirx[i];
1481  DTHits[i]._locdiry = _locdiry[i];
1482  DTHits[i]._locdirz = _locdirz[i];
1483  DTHits[i]._locdirtheta = _locdirtheta[i];
1484  DTHits[i]._locdirphi = _locdirphi[i];
1485  DTHits[i]._exitpointx = _exitpointx[i];
1486  DTHits[i]._exitpointy = _exitpointy[i];
1487  DTHits[i]._exitpointz = _exitpointz[i];
1488  DTHits[i]._entrypointx = _entrypointx[i];
1489  DTHits[i]._entrypointy = _entrypointy[i];
1490  DTHits[i]._entrypointz = _entrypointz[i];
1491  DTHits[i]._enloss = _enloss[i];
1492  DTHits[i]._tof = _tof[i];
1493  }
1494  return;
1495 }
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 1366 of file PValidationFormats.cc.

References PGlobalSimHit::G4Trk, mps_fire::i, and PGlobalSimHit::nG4Trk.

1369  {
1370  nG4Trk = pt.size();
1371  G4Trk.resize(nG4Trk);
1372  for (int i = 0; i < nG4Trk; ++i) {
1373  G4Trk[i].pt = pt[i];
1374  G4Trk[i].e = e[i];
1375  G4Trk[i].eta = eta[i];
1376  G4Trk[i].phi = phi[i];
1377  }
1378  return;
1379 }
void PMuonSimHit::putG4Vtx ( const std::vector< float > &  x,
const std::vector< float > &  y,
const std::vector< float > &  z 
)

Definition at line 1355 of file PValidationFormats.cc.

References PGlobalSimHit::G4Vtx, mps_fire::i, and PGlobalSimHit::nG4Vtx.

1355  {
1356  nG4Vtx = x.size();
1357  G4Vtx.resize(nG4Vtx);
1358  for (int i = 0; i < nG4Vtx; ++i) {
1359  G4Vtx[i].x = x[i];
1360  G4Vtx[i].y = y[i];
1361  G4Vtx[i].z = z[i];
1362  }
1363  return;
1364 }
void PMuonSimHit::putRawGenPart ( int  n)

put functions

Definition at line 1350 of file PValidationFormats.cc.

References gen::n, and PGlobalSimHit::nRawGenPart.

1350  {
1351  nRawGenPart = n;
1352  return;
1353 }
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 1497 of file PValidationFormats.cc.

References mps_fire::i.

1522 {
1523  nRPCHits = _tof.size();
1524  RPCHits.resize(nRPCHits);
1525  for (int i = 0; i < nRPCHits; ++i) {
1526  RPCHits[i]._detUnitId = _detUnitId[i];
1527  RPCHits[i]._trackId = _trackId[i];
1528  RPCHits[i]._processType = _processType[i];
1529  RPCHits[i]._particleType = _particleType[i];
1530  RPCHits[i]._pabs = _pabs[i];
1531  RPCHits[i]._globposz = _globposz[i];
1532  RPCHits[i]._globposphi = _globposphi[i];
1533  RPCHits[i]._globposeta = _globposeta[i];
1534  RPCHits[i]._locposx = _locposx[i];
1535  RPCHits[i]._locposy = _locposy[i];
1536  RPCHits[i]._locposz = _locposz[i];
1537  RPCHits[i]._locdirx = _locdirx[i];
1538  RPCHits[i]._locdiry = _locdiry[i];
1539  RPCHits[i]._locdirz = _locdirz[i];
1540  RPCHits[i]._locdirtheta = _locdirtheta[i];
1541  RPCHits[i]._locdirphi = _locdirphi[i];
1542  RPCHits[i]._exitpointx = _exitpointx[i];
1543  RPCHits[i]._exitpointy = _exitpointy[i];
1544  RPCHits[i]._exitpointz = _exitpointz[i];
1545  RPCHits[i]._entrypointx = _entrypointx[i];
1546  RPCHits[i]._entrypointy = _entrypointy[i];
1547  RPCHits[i]._entrypointz = _entrypointz[i];
1548  RPCHits[i]._enloss = _enloss[i];
1549  RPCHits[i]._tof = _tof[i];
1550  }
1551  return;
1552 }

Member Data Documentation

CSCVector PMuonSimHit::CSCHits
private

Definition at line 1750 of file PValidationFormats.h.

DTVector PMuonSimHit::DTHits
private

Definition at line 1753 of file PValidationFormats.h.

TrkVector PMuonSimHit::G4Trk
private

Definition at line 1745 of file PValidationFormats.h.

VtxVector PMuonSimHit::G4Vtx
private

Definition at line 1743 of file PValidationFormats.h.

int PMuonSimHit::nCSCHits
private

Hit info.

Definition at line 1749 of file PValidationFormats.h.

int PMuonSimHit::nDTHits
private

Definition at line 1752 of file PValidationFormats.h.

int PMuonSimHit::nG4Trk
private

Definition at line 1744 of file PValidationFormats.h.

int PMuonSimHit::nG4Vtx
private

Definition at line 1742 of file PValidationFormats.h.

int PMuonSimHit::nRawGenPart
private

G4MC info.

Definition at line 1741 of file PValidationFormats.h.

int PMuonSimHit::nRPCHits
private

Definition at line 1755 of file PValidationFormats.h.

RPCVector PMuonSimHit::RPCHits
private

Definition at line 1756 of file PValidationFormats.h.