CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Private Attributes

PGlobalSimHit Class Reference

#include <PValidationFormats.h>

List of all members.

Classes

struct  BrlHit
struct  CalHit
struct  FwdHit
struct  Trk
struct  Vtx

Public Types

typedef std::vector< BrlHitBrlVector
typedef std::vector< CalHitCalVector
typedef std::vector< FwdHitFwdVector
typedef std::vector< TrkTrkVector
typedef std::vector< VtxVtxVector

Public Member Functions

CalVector getECalHits () const
TrkVector getG4Trk () const
VtxVector getG4Vtx () const
CalVector getHCalHits () const
FwdVector getMuonCscHits () const
BrlVector getMuonDtHits () const
BrlVector getMuonRpcBrlHits () const
FwdVector getMuonRpcFwdHits () const
int getnECalHits () const
int getnG4Trk () const
int getnG4Vtx () const
int getnHCalHits () const
int getnMuonCscHits () const
int getnMuonDtHits () const
int getnMuonRpcBrlHits () const
int getnMuonRpcFwdHits () const
int getnPreShHits () const
int getnPxlBrlHits () const
int getnPxlFwdHits () const
int getnRawGenPart () const
int getnSiBrlHits () const
int getnSiFwdHits () const
CalVector getPreShHits () const
BrlVector getPxlBrlHits () const
FwdVector getPxlFwdHits () const
BrlVector getSiBrlHits () const
FwdVector getSiFwdHits () const
 PGlobalSimHit ()
void putECalHits (std::vector< float > e, std::vector< float > tof, std::vector< float > phi, std::vector< float > eta)
void putG4Trk (std::vector< float > pt, std::vector< float > e)
void putG4Vtx (std::vector< float > x, std::vector< float > y, std::vector< float > z)
void putHCalHits (std::vector< float > e, std::vector< float > tof, std::vector< float > phi, std::vector< float > eta)
void putMuonCscHits (std::vector< float > tof, std::vector< float > z, std::vector< float > phi, std::vector< float > eta)
void putMuonDtHits (std::vector< float > tof, std::vector< float > r, std::vector< float > phi, std::vector< float > eta)
void putMuonRpcBrlHits (std::vector< float > tof, std::vector< float > r, std::vector< float > phi, std::vector< float > eta)
void putMuonRpcFwdHits (std::vector< float > tof, std::vector< float > z, std::vector< float > phi, std::vector< float > eta)
void putPreShHits (std::vector< float > e, std::vector< float > tof, std::vector< float > phi, std::vector< float > eta)
void putPxlBrlHits (std::vector< float > tof, std::vector< float > r, std::vector< float > phi, std::vector< float > eta)
void putPxlFwdHits (std::vector< float > tof, std::vector< float > z, std::vector< float > phi, std::vector< float > eta)
void putRawGenPart (int n)
void putSiBrlHits (std::vector< float > tof, std::vector< float > r, std::vector< float > phi, std::vector< float > eta)
void putSiFwdHits (std::vector< float > tof, std::vector< float > z, std::vector< float > phi, std::vector< float > eta)
virtual ~PGlobalSimHit ()

Private Attributes

CalVector ECalHits
TrkVector G4Trk
VtxVector G4Vtx
CalVector HCalHits
FwdVector MuonCscHits
BrlVector MuonDtHits
BrlVector MuonRpcBrlHits
FwdVector MuonRpcFwdHits
int nECalHits
int nG4Trk
int nG4Vtx
int nHCalHits
int nMuonCscHits
int nMuonDtHits
int nMuonRpcBrlHits
int nMuonRpcFwdHits
int nPreShHits
int nPxlBrlHits
int nPxlFwdHits
int nRawGenPart
int nSiBrlHits
int nSiFwdHits
CalVector PreShHits
BrlVector PxlBrlHits
FwdVector PxlFwdHits
BrlVector SiBrlHits
FwdVector SiFwdHits

Detailed Description

DataFormat class to hold the information for the Global Hit Validation

Date:
2007/11/20 12:45:10
Revision:
1.3
Author:
M. Strang SUNY-Buffalo

Definition at line 22 of file PValidationFormats.h.


Member Typedef Documentation

typedef std::vector<BrlHit> PGlobalSimHit::BrlVector

Definition at line 80 of file PValidationFormats.h.

typedef std::vector<CalHit> PGlobalSimHit::CalVector

Definition at line 78 of file PValidationFormats.h.

typedef std::vector<FwdHit> PGlobalSimHit::FwdVector

Definition at line 79 of file PValidationFormats.h.

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

Definition at line 77 of file PValidationFormats.h.

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

Definition at line 76 of file PValidationFormats.h.


Constructor & Destructor Documentation

PGlobalSimHit::PGlobalSimHit ( ) [inline]
virtual PGlobalSimHit::~PGlobalSimHit ( ) [inline, virtual]

Definition at line 32 of file PValidationFormats.h.

{}

Member Function Documentation

CalVector PGlobalSimHit::getECalHits ( ) const [inline]

Definition at line 116 of file PValidationFormats.h.

References ECalHits.

{return ECalHits;}
TrkVector PGlobalSimHit::getG4Trk ( ) const [inline]

Definition at line 114 of file PValidationFormats.h.

References G4Trk.

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

Definition at line 112 of file PValidationFormats.h.

References G4Vtx.

{return G4Vtx;}
CalVector PGlobalSimHit::getHCalHits ( ) const [inline]

Definition at line 120 of file PValidationFormats.h.

References HCalHits.

{return HCalHits;}
FwdVector PGlobalSimHit::getMuonCscHits ( ) const [inline]

Definition at line 132 of file PValidationFormats.h.

References MuonCscHits.

{return MuonCscHits;}
BrlVector PGlobalSimHit::getMuonDtHits ( ) const [inline]

Definition at line 130 of file PValidationFormats.h.

References MuonDtHits.

{return MuonDtHits;}
BrlVector PGlobalSimHit::getMuonRpcBrlHits ( ) const [inline]

Definition at line 136 of file PValidationFormats.h.

References MuonRpcBrlHits.

{return MuonRpcBrlHits;}  
FwdVector PGlobalSimHit::getMuonRpcFwdHits ( ) const [inline]

Definition at line 134 of file PValidationFormats.h.

References MuonRpcFwdHits.

{return MuonRpcFwdHits;}
int PGlobalSimHit::getnECalHits ( ) const [inline]

Definition at line 115 of file PValidationFormats.h.

References nECalHits.

{return nECalHits;}
int PGlobalSimHit::getnG4Trk ( ) const [inline]

Definition at line 113 of file PValidationFormats.h.

References nG4Trk.

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

Definition at line 111 of file PValidationFormats.h.

References nG4Vtx.

{return nG4Vtx;}
int PGlobalSimHit::getnHCalHits ( ) const [inline]

Definition at line 119 of file PValidationFormats.h.

References nHCalHits.

{return nHCalHits;}
int PGlobalSimHit::getnMuonCscHits ( ) const [inline]

Definition at line 131 of file PValidationFormats.h.

References nMuonCscHits.

{return nMuonCscHits;}
int PGlobalSimHit::getnMuonDtHits ( ) const [inline]

Definition at line 129 of file PValidationFormats.h.

References nMuonDtHits.

{return nMuonDtHits;}
int PGlobalSimHit::getnMuonRpcBrlHits ( ) const [inline]

Definition at line 135 of file PValidationFormats.h.

References nMuonRpcBrlHits.

{return nMuonRpcBrlHits;}
int PGlobalSimHit::getnMuonRpcFwdHits ( ) const [inline]

Definition at line 133 of file PValidationFormats.h.

References nMuonRpcFwdHits.

{return nMuonRpcFwdHits;}
int PGlobalSimHit::getnPreShHits ( ) const [inline]

Definition at line 117 of file PValidationFormats.h.

References nPreShHits.

{return nPreShHits;}
int PGlobalSimHit::getnPxlBrlHits ( ) const [inline]

Definition at line 123 of file PValidationFormats.h.

References nPxlBrlHits.

{return nPxlBrlHits;}
int PGlobalSimHit::getnPxlFwdHits ( ) const [inline]

Definition at line 121 of file PValidationFormats.h.

References nPxlFwdHits.

{return nPxlFwdHits;}
int PGlobalSimHit::getnRawGenPart ( ) const [inline]

Definition at line 110 of file PValidationFormats.h.

References nRawGenPart.

{return nRawGenPart;}
int PGlobalSimHit::getnSiBrlHits ( ) const [inline]

Definition at line 127 of file PValidationFormats.h.

References nSiBrlHits.

{return nSiBrlHits;}
int PGlobalSimHit::getnSiFwdHits ( ) const [inline]

Definition at line 125 of file PValidationFormats.h.

References nSiFwdHits.

{return nSiFwdHits;}
CalVector PGlobalSimHit::getPreShHits ( ) const [inline]

Definition at line 118 of file PValidationFormats.h.

References PreShHits.

{return PreShHits;}
BrlVector PGlobalSimHit::getPxlBrlHits ( ) const [inline]

Definition at line 124 of file PValidationFormats.h.

References PxlBrlHits.

{return PxlBrlHits;}
FwdVector PGlobalSimHit::getPxlFwdHits ( ) const [inline]

Definition at line 122 of file PValidationFormats.h.

References PxlFwdHits.

{return PxlFwdHits;}
BrlVector PGlobalSimHit::getSiBrlHits ( ) const [inline]

Definition at line 128 of file PValidationFormats.h.

References SiBrlHits.

{return SiBrlHits;}  
FwdVector PGlobalSimHit::getSiFwdHits ( ) const [inline]

Definition at line 126 of file PValidationFormats.h.

References SiFwdHits.

{return SiFwdHits;}
void PGlobalSimHit::putECalHits ( std::vector< float >  e,
std::vector< float >  tof,
std::vector< float >  phi,
std::vector< float >  eta 
)

Definition at line 49 of file PValidationFormats.cc.

References ECalHits, i, and nECalHits.

Referenced by GlobalHitsProducer::storeECal().

{
  nECalHits = e.size();
  ECalHits.resize(nECalHits);
  for (int i = 0; i < nECalHits; ++i) {
    ECalHits[i].e = e[i];
    ECalHits[i].tof = tof[i];
    ECalHits[i].phi = phi[i];
    ECalHits[i].eta = eta[i];
  }

  return;
}
void PGlobalSimHit::putG4Trk ( std::vector< float >  pt,
std::vector< float >  e 
)

Definition at line 37 of file PValidationFormats.cc.

References G4Trk, i, and nG4Trk.

Referenced by GlobalHitsProducer::storeG4MC().

{
  nG4Trk = pt.size();
  G4Trk.resize(nG4Trk);
  for (int i = 0; i < nG4Trk; ++i) {
    G4Trk[i].pt = pt[i];
    G4Trk[i].e = e[i];
  }

  return;
}
void PGlobalSimHit::putG4Vtx ( std::vector< float >  x,
std::vector< float >  y,
std::vector< float >  z 
)

Definition at line 23 of file PValidationFormats.cc.

References G4Vtx, i, and nG4Vtx.

Referenced by GlobalHitsProducer::storeG4MC().

{
  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 PGlobalSimHit::putHCalHits ( std::vector< float >  e,
std::vector< float >  tof,
std::vector< float >  phi,
std::vector< float >  eta 
)

Definition at line 81 of file PValidationFormats.cc.

References HCalHits, i, and nHCalHits.

Referenced by GlobalHitsProducer::storeHCal().

{
  nHCalHits = e.size();
  HCalHits.resize(nHCalHits);
  for (int i = 0; i < nHCalHits; ++i) {
    HCalHits[i].e = e[i];
    HCalHits[i].tof = tof[i];
    HCalHits[i].phi = phi[i];
    HCalHits[i].eta = eta[i];
  }

  return;
}
void PGlobalSimHit::putMuonCscHits ( std::vector< float >  tof,
std::vector< float >  z,
std::vector< float >  phi,
std::vector< float >  eta 
)

Definition at line 164 of file PValidationFormats.cc.

References i, MuonCscHits, and nMuonCscHits.

Referenced by GlobalHitsProducer::storeMuon().

{
  nMuonCscHits = tof.size();
  MuonCscHits.resize(nMuonCscHits);
  for (int i = 0; i < nMuonCscHits; ++i) {
    MuonCscHits[i].tof = tof[i];
    MuonCscHits[i].z = z[i];
    MuonCscHits[i].phi = phi[i];
    MuonCscHits[i].eta = eta[i];
  }

  return;
}
void PGlobalSimHit::putMuonDtHits ( std::vector< float >  tof,
std::vector< float >  r,
std::vector< float >  phi,
std::vector< float >  eta 
)

Definition at line 181 of file PValidationFormats.cc.

References i, MuonDtHits, and nMuonDtHits.

Referenced by GlobalHitsProducer::storeMuon().

{
  nMuonDtHits = tof.size();
  MuonDtHits.resize(nMuonDtHits);
  for (int i = 0; i < nMuonDtHits; ++i) {
    MuonDtHits[i].tof = tof[i];
    MuonDtHits[i].r = r[i];
    MuonDtHits[i].phi = phi[i];
    MuonDtHits[i].eta = eta[i];
  }

  return;
}
void PGlobalSimHit::putMuonRpcBrlHits ( std::vector< float >  tof,
std::vector< float >  r,
std::vector< float >  phi,
std::vector< float >  eta 
)

Definition at line 215 of file PValidationFormats.cc.

References i, MuonRpcBrlHits, and nMuonRpcBrlHits.

Referenced by GlobalHitsProducer::storeMuon().

{
  nMuonRpcBrlHits = tof.size();
  MuonRpcBrlHits.resize(nMuonRpcBrlHits);
  for (int i = 0; i < nMuonRpcBrlHits; ++i) {
    MuonRpcBrlHits[i].tof = tof[i];
    MuonRpcBrlHits[i].r = r[i];
    MuonRpcBrlHits[i].phi = phi[i];
    MuonRpcBrlHits[i].eta = eta[i];
  }

  return;
}
void PGlobalSimHit::putMuonRpcFwdHits ( std::vector< float >  tof,
std::vector< float >  z,
std::vector< float >  phi,
std::vector< float >  eta 
)

Definition at line 198 of file PValidationFormats.cc.

References i, MuonRpcFwdHits, and nMuonRpcFwdHits.

Referenced by GlobalHitsProducer::storeMuon().

{
  nMuonRpcFwdHits = tof.size();
  MuonRpcFwdHits.resize(nMuonRpcFwdHits);
  for (int i = 0; i < nMuonRpcFwdHits; ++i) {
    MuonRpcFwdHits[i].tof = tof[i];
    MuonRpcFwdHits[i].z = z[i];
    MuonRpcFwdHits[i].phi = phi[i];
    MuonRpcFwdHits[i].eta = eta[i];
  }

  return;
}
void PGlobalSimHit::putPreShHits ( std::vector< float >  e,
std::vector< float >  tof,
std::vector< float >  phi,
std::vector< float >  eta 
)

Definition at line 65 of file PValidationFormats.cc.

References i, nPreShHits, and PreShHits.

Referenced by GlobalHitsProducer::storeECal().

{
  nPreShHits = e.size();
  PreShHits.resize(nPreShHits);
  for (int i = 0; i < nPreShHits; ++i) {
    PreShHits[i].e = e[i];
    PreShHits[i].tof = tof[i];
    PreShHits[i].phi = phi[i];
    PreShHits[i].eta = eta[i];
  }

  return;
}
void PGlobalSimHit::putPxlBrlHits ( std::vector< float >  tof,
std::vector< float >  r,
std::vector< float >  phi,
std::vector< float >  eta 
)

Definition at line 114 of file PValidationFormats.cc.

References i, nPxlBrlHits, and PxlBrlHits.

Referenced by GlobalHitsProducer::storeTrk().

{
  nPxlBrlHits = tof.size(); 
  PxlBrlHits.resize(nPxlBrlHits);
  for (int i = 0; i < nPxlBrlHits; ++i) {
    PxlBrlHits[i].tof = tof[i];
    PxlBrlHits[i].r = r[i];
    PxlBrlHits[i].phi = phi[i];
    PxlBrlHits[i].eta = eta[i];
  }

  return;
}
void PGlobalSimHit::putPxlFwdHits ( std::vector< float >  tof,
std::vector< float >  z,
std::vector< float >  phi,
std::vector< float >  eta 
)

Definition at line 97 of file PValidationFormats.cc.

References i, nPxlFwdHits, and PxlFwdHits.

Referenced by GlobalHitsProducer::storeTrk().

{
  nPxlFwdHits = tof.size();
  PxlFwdHits.resize(nPxlFwdHits);
  for (int i = 0; i < nPxlFwdHits; ++i) {
    PxlFwdHits[i].tof = tof[i];
    PxlFwdHits[i].z = z[i];
    PxlFwdHits[i].phi = phi[i];
    PxlFwdHits[i].eta = eta[i];
  }

  return;
}
void PGlobalSimHit::putRawGenPart ( int  n)

Definition at line 17 of file PValidationFormats.cc.

References n, and nRawGenPart.

Referenced by GlobalHitsProducer::storeG4MC().

{
  nRawGenPart = n;
  return;
}
void PGlobalSimHit::putSiBrlHits ( std::vector< float >  tof,
std::vector< float >  r,
std::vector< float >  phi,
std::vector< float >  eta 
)

Definition at line 148 of file PValidationFormats.cc.

References i, nSiBrlHits, and SiBrlHits.

Referenced by GlobalHitsProducer::storeTrk().

{
  nSiBrlHits = tof.size();
  SiBrlHits.resize(nSiBrlHits);
  for (int i = 0; i < nSiBrlHits; ++i) {
    SiBrlHits[i].tof = tof[i];
    SiBrlHits[i].r = r[i];
    SiBrlHits[i].phi = phi[i];
    SiBrlHits[i].eta = eta[i];
  }

  return;
}
void PGlobalSimHit::putSiFwdHits ( std::vector< float >  tof,
std::vector< float >  z,
std::vector< float >  phi,
std::vector< float >  eta 
)

Definition at line 131 of file PValidationFormats.cc.

References i, nSiFwdHits, and SiFwdHits.

Referenced by GlobalHitsProducer::storeTrk().

{
  nSiFwdHits = tof.size();
  SiFwdHits.resize(nSiFwdHits);
  for (int i = 0; i < nSiFwdHits; ++i) {
    SiFwdHits[i].tof = tof[i];
    SiFwdHits[i].z = z[i];
    SiFwdHits[i].phi = phi[i];
    SiFwdHits[i].eta = eta[i];
  }

  return;
}

Member Data Documentation

Definition at line 149 of file PValidationFormats.h.

Referenced by getECalHits(), and putECalHits().

Definition at line 145 of file PValidationFormats.h.

Referenced by getG4Trk(), and putG4Trk().

Definition at line 143 of file PValidationFormats.h.

Referenced by getG4Vtx(), and putG4Vtx().

Definition at line 155 of file PValidationFormats.h.

Referenced by getHCalHits(), and putHCalHits().

Definition at line 171 of file PValidationFormats.h.

Referenced by getMuonCscHits(), and putMuonCscHits().

Definition at line 169 of file PValidationFormats.h.

Referenced by getMuonDtHits(), and putMuonDtHits().

Definition at line 175 of file PValidationFormats.h.

Referenced by getMuonRpcBrlHits(), and putMuonRpcBrlHits().

Definition at line 173 of file PValidationFormats.h.

Referenced by getMuonRpcFwdHits(), and putMuonRpcFwdHits().

int PGlobalSimHit::nECalHits [private]

Definition at line 148 of file PValidationFormats.h.

Referenced by getnECalHits(), and putECalHits().

int PGlobalSimHit::nG4Trk [private]

Definition at line 144 of file PValidationFormats.h.

Referenced by getnG4Trk(), and putG4Trk().

int PGlobalSimHit::nG4Vtx [private]

Definition at line 142 of file PValidationFormats.h.

Referenced by getnG4Vtx(), and putG4Vtx().

int PGlobalSimHit::nHCalHits [private]

Definition at line 154 of file PValidationFormats.h.

Referenced by getnHCalHits(), and putHCalHits().

Definition at line 170 of file PValidationFormats.h.

Referenced by getnMuonCscHits(), and putMuonCscHits().

Definition at line 168 of file PValidationFormats.h.

Referenced by getnMuonDtHits(), and putMuonDtHits().

Definition at line 174 of file PValidationFormats.h.

Referenced by getnMuonRpcBrlHits(), and putMuonRpcBrlHits().

Definition at line 172 of file PValidationFormats.h.

Referenced by getnMuonRpcFwdHits(), and putMuonRpcFwdHits().

Definition at line 150 of file PValidationFormats.h.

Referenced by getnPreShHits(), and putPreShHits().

Definition at line 160 of file PValidationFormats.h.

Referenced by getnPxlBrlHits(), and putPxlBrlHits().

Definition at line 158 of file PValidationFormats.h.

Referenced by getnPxlFwdHits(), and putPxlFwdHits().

Definition at line 141 of file PValidationFormats.h.

Referenced by getnRawGenPart(), and putRawGenPart().

Definition at line 164 of file PValidationFormats.h.

Referenced by getnSiBrlHits(), and putSiBrlHits().

Definition at line 162 of file PValidationFormats.h.

Referenced by getnSiFwdHits(), and putSiFwdHits().

Definition at line 151 of file PValidationFormats.h.

Referenced by getPreShHits(), and putPreShHits().

Definition at line 161 of file PValidationFormats.h.

Referenced by getPxlBrlHits(), and putPxlBrlHits().

Definition at line 159 of file PValidationFormats.h.

Referenced by getPxlFwdHits(), and putPxlFwdHits().

Definition at line 165 of file PValidationFormats.h.

Referenced by getSiBrlHits(), and putSiBrlHits().

Definition at line 163 of file PValidationFormats.h.

Referenced by getSiFwdHits(), and putSiFwdHits().