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

◆ CSCVector

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

Definition at line 1630 of file PValidationFormats.h.

◆ DTVector

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

Definition at line 1631 of file PValidationFormats.h.

◆ RPCVector

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

Definition at line 1632 of file PValidationFormats.h.

◆ TrkVector

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

Definition at line 1628 of file PValidationFormats.h.

◆ VtxVector

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

Definition at line 1627 of file PValidationFormats.h.

Constructor & Destructor Documentation

◆ PMuonSimHit()

PMuonSimHit::PMuonSimHit ( )
inline

Definition at line 1448 of file PValidationFormats.h.

1448 : nRawGenPart(0), nG4Vtx(0), nG4Trk(0), nCSCHits(0), nDTHits(0), nRPCHits(0) {}

◆ ~PMuonSimHit()

virtual PMuonSimHit::~PMuonSimHit ( )
inlinevirtual

Definition at line 1449 of file PValidationFormats.h.

1449 {}

Member Function Documentation

◆ getCSCHits()

CSCVector PMuonSimHit::getCSCHits ( )
inline

Definition at line 1730 of file PValidationFormats.h.

1730 { return CSCHits; }

References CSCHits.

◆ getDTHits()

DTVector PMuonSimHit::getDTHits ( )
inline

Definition at line 1733 of file PValidationFormats.h.

1733 { return DTHits; }

References DTHits.

◆ getG4Trk()

TrkVector PMuonSimHit::getG4Trk ( )
inline

Definition at line 1727 of file PValidationFormats.h.

1727 { return G4Trk; }

References G4Trk.

◆ getG4Vtx()

VtxVector PMuonSimHit::getG4Vtx ( )
inline

Definition at line 1726 of file PValidationFormats.h.

1726 { return G4Vtx; }

References G4Vtx.

◆ getnCSCHits()

int PMuonSimHit::getnCSCHits ( )
inline

Definition at line 1729 of file PValidationFormats.h.

1729 { return nCSCHits; }

References nCSCHits.

◆ getnDTHits()

int PMuonSimHit::getnDTHits ( )
inline

Definition at line 1732 of file PValidationFormats.h.

1732 { return nDTHits; }

References nDTHits.

◆ getnG4Trk()

int PMuonSimHit::getnG4Trk ( )
inline

Definition at line 1724 of file PValidationFormats.h.

1724 { return nG4Trk; }

References nG4Trk.

◆ getnG4Vtx()

int PMuonSimHit::getnG4Vtx ( )
inline

Definition at line 1723 of file PValidationFormats.h.

1723 { return nG4Vtx; }

References nG4Vtx.

◆ getnRawGenPart()

int PMuonSimHit::getnRawGenPart ( )
inline

get functions

Definition at line 1722 of file PValidationFormats.h.

1722 { return nRawGenPart; }

References nRawGenPart.

◆ getnRPCHits()

int PMuonSimHit::getnRPCHits ( )
inline

Definition at line 1735 of file PValidationFormats.h.

1735 { return nRPCHits; }

References nRPCHits.

◆ getRPCHits()

RPCVector PMuonSimHit::getRPCHits ( )
inline

Definition at line 1736 of file PValidationFormats.h.

1736 { return RPCHits; }

References RPCHits.

◆ putCSCHits()

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.

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 }

References CSCHits, mps_fire::i, and nCSCHits.

◆ putDTHits()

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.

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 }

References DTHits, mps_fire::i, and nDTHits.

◆ putG4Trk()

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.

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 }

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

◆ putG4Vtx()

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.

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 }

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

◆ putRawGenPart()

void PMuonSimHit::putRawGenPart ( int  n)

put functions

Definition at line 1350 of file PValidationFormats.cc.

1350  {
1351  nRawGenPart = n;
1352  return;
1353 }

References dqmiodumpmetadata::n, and nRawGenPart.

◆ putRPCHits()

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.

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 }

References mps_fire::i, nRPCHits, and RPCHits.

Member Data Documentation

◆ CSCHits

CSCVector PMuonSimHit::CSCHits
private

Definition at line 1750 of file PValidationFormats.h.

Referenced by getCSCHits(), and putCSCHits().

◆ DTHits

DTVector PMuonSimHit::DTHits
private

Definition at line 1753 of file PValidationFormats.h.

Referenced by getDTHits(), and putDTHits().

◆ G4Trk

TrkVector PMuonSimHit::G4Trk
private

Definition at line 1745 of file PValidationFormats.h.

Referenced by getG4Trk(), and putG4Trk().

◆ G4Vtx

VtxVector PMuonSimHit::G4Vtx
private

Definition at line 1743 of file PValidationFormats.h.

Referenced by getG4Vtx(), and putG4Vtx().

◆ nCSCHits

int PMuonSimHit::nCSCHits
private

Hit info.

Definition at line 1749 of file PValidationFormats.h.

Referenced by getnCSCHits(), and putCSCHits().

◆ nDTHits

int PMuonSimHit::nDTHits
private

Definition at line 1752 of file PValidationFormats.h.

Referenced by getnDTHits(), and putDTHits().

◆ nG4Trk

int PMuonSimHit::nG4Trk
private

Definition at line 1744 of file PValidationFormats.h.

Referenced by getnG4Trk(), and putG4Trk().

◆ nG4Vtx

int PMuonSimHit::nG4Vtx
private

Definition at line 1742 of file PValidationFormats.h.

Referenced by getnG4Vtx(), and putG4Vtx().

◆ nRawGenPart

int PMuonSimHit::nRawGenPart
private

G4MC info.

Definition at line 1741 of file PValidationFormats.h.

Referenced by getnRawGenPart(), and putRawGenPart().

◆ nRPCHits

int PMuonSimHit::nRPCHits
private

Definition at line 1755 of file PValidationFormats.h.

Referenced by getnRPCHits(), and putRPCHits().

◆ RPCHits

RPCVector PMuonSimHit::RPCHits
private

Definition at line 1756 of file PValidationFormats.h.

Referenced by getRPCHits(), and putRPCHits().

DDAxes::y
mps_fire.i
i
Definition: mps_fire.py:355
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
PMuonSimHit::nRawGenPart
int nRawGenPart
G4MC info.
Definition: PValidationFormats.h:1741
DDAxes::x
PMuonSimHit::nDTHits
int nDTHits
Definition: PValidationFormats.h:1752
PMuonSimHit::G4Vtx
VtxVector G4Vtx
Definition: PValidationFormats.h:1743
PMuonSimHit::nRPCHits
int nRPCHits
Definition: PValidationFormats.h:1755
PVValHelper::eta
Definition: PVValidationHelpers.h:69
DDAxes::z
PMuonSimHit::nCSCHits
int nCSCHits
Hit info.
Definition: PValidationFormats.h:1749
PMuonSimHit::CSCHits
CSCVector CSCHits
Definition: PValidationFormats.h:1750
PMuonSimHit::G4Trk
TrkVector G4Trk
Definition: PValidationFormats.h:1745
PMuonSimHit::RPCHits
RPCVector RPCHits
Definition: PValidationFormats.h:1756
DDAxes::phi
PMuonSimHit::nG4Trk
int nG4Trk
Definition: PValidationFormats.h:1744
PMuonSimHit::nG4Vtx
int nG4Vtx
Definition: PValidationFormats.h:1742
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
PMuonSimHit::DTHits
DTVector DTHits
Definition: PValidationFormats.h:1753