CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Private Attributes

PMuonSimHit Class Reference

#include <PValidationFormats.h>

List of all members.

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
int getnRPCHits ()
RPCVector getRPCHits ()
 PMuonSimHit ()
void putCSCHits (std::vector< int > _cscId, std::vector< unsigned int > _detUnitId, std::vector< float > _trackId, std::vector< float > _processType, std::vector< float > _particleType, std::vector< float > _pabs, std::vector< float > _globposz, std::vector< float > _globposphi, std::vector< float > _globposeta, std::vector< float > _locposx, std::vector< float > _locposy, std::vector< float > _locposz, std::vector< float > _locdirx, std::vector< float > _locdiry, std::vector< float > _locdirz, std::vector< float > _locdirtheta, std::vector< float > _locdirphi, std::vector< float > _exitpointx, std::vector< float > _exitpointy, std::vector< float > _exitpointz, std::vector< float > _entrypointx, std::vector< float > _entrypointy, std::vector< float > _entrypointz, std::vector< float > _enloss, std::vector< float > _tof)
void putDTHits (std::vector< unsigned int > _detUnitId, std::vector< float > _trackId, std::vector< float > _processType, std::vector< float > _particleType, std::vector< float > _pabs, std::vector< float > _globposz, std::vector< float > _globposphi, std::vector< float > _globposeta, std::vector< float > _locposx, std::vector< float > _locposy, std::vector< float > _locposz, std::vector< float > _locdirx, std::vector< float > _locdiry, std::vector< float > _locdirz, std::vector< float > _locdirtheta, std::vector< float > _locdirphi, std::vector< float > _exitpointx, std::vector< float > _exitpointy, std::vector< float > _exitpointz, std::vector< float > _entrypointx, std::vector< float > _entrypointy, std::vector< float > _entrypointz, std::vector< float > _enloss, std::vector< float > _tof)
void putG4Trk (std::vector< float > pt, std::vector< float > e, std::vector< float > eta, std::vector< float > phi)
void putG4Vtx (std::vector< float > x, std::vector< float > y, std::vector< float > z)
void putRawGenPart (int n)
 put functions
void putRPCHits (std::vector< unsigned int > _detUnitId, std::vector< float > _trackId, std::vector< float > _processType, std::vector< float > _particleType, std::vector< float > _pabs, std::vector< float > _globposz, std::vector< float > _globposphi, std::vector< float > _globposeta, std::vector< float > _locposx, std::vector< float > _locposy, std::vector< float > _locposz, std::vector< float > _locdirx, std::vector< float > _locdiry, std::vector< float > _locdirz, std::vector< float > _locdirtheta, std::vector< float > _locdirphi, std::vector< float > _exitpointx, std::vector< float > _exitpointy, std::vector< float > _exitpointz, std::vector< float > _entrypointx, std::vector< float > _entrypointy, std::vector< float > _entrypointz, std::vector< float > _enloss, std::vector< float > _tof)
virtual ~PMuonSimHit ()

Private Attributes

CSCVector CSCHits
DTVector DTHits
TrkVector G4Trk
VtxVector G4Vtx
int nCSCHits
 Hit info.
int nDTHits
int nG4Trk
int nG4Vtx
int nRawGenPart
 G4MC info.
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.

               : nRawGenPart(0), nG4Vtx(0), nG4Trk(0), 
                 nCSCHits(0), nDTHits(0), nRPCHits(0) {}
virtual PMuonSimHit::~PMuonSimHit ( ) [inline, virtual]

Definition at line 1372 of file PValidationFormats.h.

{}

Member Function Documentation

CSCVector PMuonSimHit::getCSCHits ( ) [inline]

Definition at line 1616 of file PValidationFormats.h.

References CSCHits.

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

Definition at line 1619 of file PValidationFormats.h.

References DTHits.

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

Definition at line 1613 of file PValidationFormats.h.

References G4Trk.

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

Definition at line 1612 of file PValidationFormats.h.

References G4Vtx.

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

Definition at line 1615 of file PValidationFormats.h.

References nCSCHits.

{return nCSCHits;}
int PMuonSimHit::getnDTHits ( ) [inline]

Definition at line 1618 of file PValidationFormats.h.

References nDTHits.

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

Definition at line 1610 of file PValidationFormats.h.

References nG4Trk.

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

Definition at line 1609 of file PValidationFormats.h.

References nG4Vtx.

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

get functions

Definition at line 1608 of file PValidationFormats.h.

References nRawGenPart.

{return nRawGenPart;}
int PMuonSimHit::getnRPCHits ( ) [inline]

Definition at line 1621 of file PValidationFormats.h.

References nRPCHits.

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

Definition at line 1622 of file PValidationFormats.h.

References RPCHits.

{return RPCHits;}
void PMuonSimHit::putCSCHits ( std::vector< int >  _cscId,
std::vector< unsigned int >  _detUnitId,
std::vector< float >  _trackId,
std::vector< float >  _processType,
std::vector< float >  _particleType,
std::vector< float >  _pabs,
std::vector< float >  _globposz,
std::vector< float >  _globposphi,
std::vector< float >  _globposeta,
std::vector< float >  _locposx,
std::vector< float >  _locposy,
std::vector< float >  _locposz,
std::vector< float >  _locdirx,
std::vector< float >  _locdiry,
std::vector< float >  _locdirz,
std::vector< float >  _locdirtheta,
std::vector< float >  _locdirphi,
std::vector< float >  _exitpointx,
std::vector< float >  _exitpointy,
std::vector< float >  _exitpointz,
std::vector< float >  _entrypointx,
std::vector< float >  _entrypointy,
std::vector< float >  _entrypointz,
std::vector< float >  _enloss,
std::vector< float >  _tof 
)

Definition at line 1515 of file PValidationFormats.cc.

References CSCHits, i, and nCSCHits.

{
  nCSCHits = _tof.size();
  CSCHits.resize(nCSCHits);
  for (int i = 0; i < nCSCHits; ++i) {
    CSCHits[i]._cscId           = _cscId[i];
    CSCHits[i]._detUnitId       = _detUnitId[i];
    CSCHits[i]._trackId         = _trackId[i];
    CSCHits[i]._processType     = _processType[i];
    CSCHits[i]._particleType    = _particleType[i];
    CSCHits[i]._pabs            = _pabs[i];
    CSCHits[i]._globposz        = _globposz[i];
    CSCHits[i]._globposphi      = _globposphi[i];
    CSCHits[i]._globposeta      = _globposeta[i];
    CSCHits[i]._locposx         = _locposx[i];
    CSCHits[i]._locposy         = _locposy[i];
    CSCHits[i]._locposz         = _locposz[i];
    CSCHits[i]._locdirx         = _locdirx[i];
    CSCHits[i]._locdiry         = _locdiry[i];
    CSCHits[i]._locdirz         = _locdirz[i];
    CSCHits[i]._locdirtheta     = _locdirtheta[i];
    CSCHits[i]._locdirphi       = _locdirphi[i];
    CSCHits[i]._exitpointx      = _exitpointx[i];
    CSCHits[i]._exitpointy      = _exitpointy[i];
    CSCHits[i]._exitpointz      = _exitpointz[i];
    CSCHits[i]._entrypointx     = _entrypointx[i];
    CSCHits[i]._entrypointy     = _entrypointy[i];
    CSCHits[i]._entrypointz     = _entrypointz[i];
    CSCHits[i]._enloss          = _enloss[i];
    CSCHits[i]._tof             = _tof[i];
  }
  return;
}
void PMuonSimHit::putDTHits ( std::vector< unsigned int >  _detUnitId,
std::vector< float >  _trackId,
std::vector< float >  _processType,
std::vector< float >  _particleType,
std::vector< float >  _pabs,
std::vector< float >  _globposz,
std::vector< float >  _globposphi,
std::vector< float >  _globposeta,
std::vector< float >  _locposx,
std::vector< float >  _locposy,
std::vector< float >  _locposz,
std::vector< float >  _locdirx,
std::vector< float >  _locdiry,
std::vector< float >  _locdirz,
std::vector< float >  _locdirtheta,
std::vector< float >  _locdirphi,
std::vector< float >  _exitpointx,
std::vector< float >  _exitpointy,
std::vector< float >  _exitpointz,
std::vector< float >  _entrypointx,
std::vector< float >  _entrypointy,
std::vector< float >  _entrypointz,
std::vector< float >  _enloss,
std::vector< float >  _tof 
)

Definition at line 1575 of file PValidationFormats.cc.

References DTHits, i, and nDTHits.

{
  nDTHits = _tof.size();
  DTHits.resize(nDTHits);
  for (int i = 0; i < nDTHits; ++i) {
    DTHits[i]._detUnitId       = _detUnitId[i];
    DTHits[i]._trackId         = _trackId[i];
    DTHits[i]._processType     = _processType[i];
    DTHits[i]._particleType    = _particleType[i];
    DTHits[i]._pabs            = _pabs[i];
    DTHits[i]._globposz        = _globposz[i];
    DTHits[i]._globposphi      = _globposphi[i];
    DTHits[i]._globposeta      = _globposeta[i];
    DTHits[i]._locposx         = _locposx[i];
    DTHits[i]._locposy         = _locposy[i];
    DTHits[i]._locposz         = _locposz[i];
    DTHits[i]._locdirx         = _locdirx[i];
    DTHits[i]._locdiry         = _locdiry[i];
    DTHits[i]._locdirz         = _locdirz[i];
    DTHits[i]._locdirtheta     = _locdirtheta[i];
    DTHits[i]._locdirphi       = _locdirphi[i];
    DTHits[i]._exitpointx      = _exitpointx[i];
    DTHits[i]._exitpointy      = _exitpointy[i];
    DTHits[i]._exitpointz      = _exitpointz[i];
    DTHits[i]._entrypointx     = _entrypointx[i];
    DTHits[i]._entrypointy     = _entrypointy[i];
    DTHits[i]._entrypointz     = _entrypointz[i];
    DTHits[i]._enloss          = _enloss[i];
    DTHits[i]._tof             = _tof[i];
  }
  return;
}
void PMuonSimHit::putG4Trk ( std::vector< float >  pt,
std::vector< float >  e,
std::vector< float >  eta,
std::vector< float >  phi 
)

Definition at line 1501 of file PValidationFormats.cc.

References G4Trk, i, and nG4Trk.

{
  nG4Trk = pt.size();
  G4Trk.resize(nG4Trk);
  for (int i = 0; i < nG4Trk; ++i) {
    G4Trk[i].pt  = pt[i];
    G4Trk[i].e   = e[i];
    G4Trk[i].eta = eta[i];
    G4Trk[i].phi = phi[i];
  }
  return;
}
void PMuonSimHit::putG4Vtx ( std::vector< float >  x,
std::vector< float >  y,
std::vector< float >  z 
)

Definition at line 1488 of file PValidationFormats.cc.

References G4Vtx, i, and nG4Vtx.

{
  nG4Vtx = x.size();
  G4Vtx.resize(nG4Vtx);
  for (int i = 0; i < nG4Vtx; ++i) {
    G4Vtx[i].x = x[i];
    G4Vtx[i].y = y[i];
    G4Vtx[i].z = z[i];
  }
  return;
}
void PMuonSimHit::putRawGenPart ( int  n)

put functions

Definition at line 1482 of file PValidationFormats.cc.

References n, and nRawGenPart.

{
  nRawGenPart = n;
  return;
}
void PMuonSimHit::putRPCHits ( std::vector< unsigned int >  _detUnitId,
std::vector< float >  _trackId,
std::vector< float >  _processType,
std::vector< float >  _particleType,
std::vector< float >  _pabs,
std::vector< float >  _globposz,
std::vector< float >  _globposphi,
std::vector< float >  _globposeta,
std::vector< float >  _locposx,
std::vector< float >  _locposy,
std::vector< float >  _locposz,
std::vector< float >  _locdirx,
std::vector< float >  _locdiry,
std::vector< float >  _locdirz,
std::vector< float >  _locdirtheta,
std::vector< float >  _locdirphi,
std::vector< float >  _exitpointx,
std::vector< float >  _exitpointy,
std::vector< float >  _exitpointz,
std::vector< float >  _entrypointx,
std::vector< float >  _entrypointy,
std::vector< float >  _entrypointz,
std::vector< float >  _enloss,
std::vector< float >  _tof 
)

Definition at line 1632 of file PValidationFormats.cc.

References i, nRPCHits, and RPCHits.

{
  nRPCHits = _tof.size();
  RPCHits.resize(nRPCHits);
  for (int i = 0; i < nRPCHits; ++i) {
    RPCHits[i]._detUnitId       = _detUnitId[i];
    RPCHits[i]._trackId         = _trackId[i];
    RPCHits[i]._processType     = _processType[i];
    RPCHits[i]._particleType    = _particleType[i];
    RPCHits[i]._pabs            = _pabs[i];
    RPCHits[i]._globposz        = _globposz[i];
    RPCHits[i]._globposphi      = _globposphi[i];
    RPCHits[i]._globposeta      = _globposeta[i];
    RPCHits[i]._locposx         = _locposx[i];
    RPCHits[i]._locposy         = _locposy[i];
    RPCHits[i]._locposz         = _locposz[i];
    RPCHits[i]._locdirx         = _locdirx[i];
    RPCHits[i]._locdiry         = _locdiry[i];
    RPCHits[i]._locdirz         = _locdirz[i];
    RPCHits[i]._locdirtheta     = _locdirtheta[i];
    RPCHits[i]._locdirphi       = _locdirphi[i];
    RPCHits[i]._exitpointx      = _exitpointx[i];
    RPCHits[i]._exitpointy      = _exitpointy[i];
    RPCHits[i]._exitpointz      = _exitpointz[i];
    RPCHits[i]._entrypointx     = _entrypointx[i];
    RPCHits[i]._entrypointy     = _entrypointy[i];
    RPCHits[i]._entrypointz     = _entrypointz[i];
    RPCHits[i]._enloss          = _enloss[i];
    RPCHits[i]._tof             = _tof[i];
  }
  return;

}

Member Data Documentation

Definition at line 1638 of file PValidationFormats.h.

Referenced by getCSCHits(), and putCSCHits().

Definition at line 1641 of file PValidationFormats.h.

Referenced by getDTHits(), and putDTHits().

Definition at line 1633 of file PValidationFormats.h.

Referenced by getG4Trk(), and putG4Trk().

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

Definition at line 1644 of file PValidationFormats.h.

Referenced by getRPCHits(), and putRPCHits().