CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Attributes
TotemTestHistoClass Class Reference

#include <SimG4CMS/Forward/interface/TotemTestHistoClass.h>

Classes

struct  Hit
 

Public Member Functions

void fillHit (int uID, int pType, int tID, int pID, float eLoss, float pAbs, float vX, float vY, float vZ, float x, float y, float z)
 
int getEVT () const
 
std::vector< HitgetHits () const
 
int getNHit () const
 
void setEVT (int v)
 
 TotemTestHistoClass ()
 
virtual ~TotemTestHistoClass ()
 

Private Attributes

int evt
 
std::vector< Hithit
 
int hits
 

Detailed Description

Description: Content of the Root file for Totem Tests

Usage: Used in testing Totem simulation

Definition at line 26 of file TotemTestHistoClass.h.

Constructor & Destructor Documentation

◆ TotemTestHistoClass()

TotemTestHistoClass::TotemTestHistoClass ( )
explicit

Definition at line 25 of file TotemTestHistoClass.cc.

25 : evt(0), hits(0) {}

◆ ~TotemTestHistoClass()

TotemTestHistoClass::~TotemTestHistoClass ( )
virtual

Definition at line 27 of file TotemTestHistoClass.cc.

27 {}

Member Function Documentation

◆ fillHit()

void TotemTestHistoClass::fillHit ( int  uID,
int  pType,
int  tID,
int  pID,
float  eLoss,
float  pAbs,
float  vX,
float  vY,
float  vZ,
float  x,
float  y,
float  z 
)

Definition at line 29 of file TotemTestHistoClass.cc.

40  {
42  h.UID = uID;
43  h.Ptype = pType;
44  h.TID = tID;
45  h.PID = pID;
46  h.ELoss = eLoss;
47  h.PABS = pAbs;
48  h.x = x;
49  h.y = y;
50  h.z = z;
51  h.vx = vX;
52  h.vy = vY;
53  h.vz = vZ;
54  hit.push_back(h);
55  hits++;
56  LogDebug("ForwardSim") << "TotemTestHistoClass : Hit " << hits << " " << uID << ", " << pType << ", " << tID << ", "
57  << pID << ", " << eLoss << ", " << pAbs << ", " << vX << ", " << vY << ", " << vZ << ", " << x
58  << ", " << y << ", " << z;
59 }

References simKBmtfDigis_cfi::eLoss, h, hits, LogDebug, TopDecayID::tID, x, y, and z.

Referenced by TotemTestGem::fillEvent().

◆ getEVT()

int TotemTestHistoClass::getEVT ( ) const
inline

Definition at line 49 of file TotemTestHistoClass.h.

49 { return evt; }

References evt.

◆ getHits()

std::vector<Hit> TotemTestHistoClass::getHits ( ) const
inline

Definition at line 51 of file TotemTestHistoClass.h.

51 { return hit; }

References hit.

◆ getNHit()

int TotemTestHistoClass::getNHit ( ) const
inline

Definition at line 50 of file TotemTestHistoClass.h.

50 { return hits; }

References hits.

◆ setEVT()

void TotemTestHistoClass::setEVT ( int  v)
inline

Definition at line 53 of file TotemTestHistoClass.h.

53 { evt = v; }

References evt, and findQualityFiles::v.

Referenced by TotemTestGem::fillEvent().

Member Data Documentation

◆ evt

int TotemTestHistoClass::evt
private

Definition at line 69 of file TotemTestHistoClass.h.

Referenced by getEVT(), and setEVT().

◆ hit

std::vector<Hit> TotemTestHistoClass::hit
private

Definition at line 70 of file TotemTestHistoClass.h.

Referenced by getHits().

◆ hits

int TotemTestHistoClass::hits
private

Definition at line 69 of file TotemTestHistoClass.h.

Referenced by fillHit(), and getNHit().

DDAxes::y
h
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
Definition: L1TUtmAlgorithmRcd.h:4
DDAxes::x
findQualityFiles.v
v
Definition: findQualityFiles.py:179
simKBmtfDigis_cfi.eLoss
eLoss
Definition: simKBmtfDigis_cfi.py:9
TopDecayID::tID
static const int tID
Definition: TopGenEvent.h:12
DDAxes::z
h
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
TotemTestHistoClass::hits
int hits
Definition: TotemTestHistoClass.h:69
TotemTestHistoClass::hit
std::vector< Hit > hit
Definition: TotemTestHistoClass.h:70
TotemTestHistoClass::Hit
Definition: TotemTestHistoClass.h:32
TotemTestHistoClass::evt
int evt
Definition: TotemTestHistoClass.h:69
hit
Definition: SiStripHitEffFromCalibTree.cc:88