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.

◆ ~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.

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

Referenced by TotemTestGem::fillEvent().

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 }
static const int tID
Definition: TopGenEvent.h:12
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
#define LogDebug(id)

◆ getEVT()

int TotemTestHistoClass::getEVT ( ) const
inline

Definition at line 49 of file TotemTestHistoClass.h.

References evt.

49 { return evt; }

◆ getHits()

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

Definition at line 51 of file TotemTestHistoClass.h.

References hit.

51 { return hit; }
std::vector< Hit > hit

◆ getNHit()

int TotemTestHistoClass::getNHit ( ) const
inline

Definition at line 50 of file TotemTestHistoClass.h.

References hits.

50 { return hits; }

◆ setEVT()

void TotemTestHistoClass::setEVT ( int  v)
inline

Definition at line 53 of file TotemTestHistoClass.h.

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