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

Definition at line 25 of file TotemTestHistoClass.cc.

TotemTestHistoClass::~TotemTestHistoClass ( )
virtual

Definition at line 27 of file TotemTestHistoClass.cc.

27 {}

Member Function Documentation

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 TotemTestHistoClass::Hit::ELoss, h, hits, LogDebug, TotemTestHistoClass::Hit::PABS, TotemTestHistoClass::Hit::PID, TotemTestHistoClass::Hit::Ptype, TopDecayID::tID, TotemTestHistoClass::Hit::TID, TotemTestHistoClass::Hit::UID, TotemTestHistoClass::Hit::vx, TotemTestHistoClass::Hit::vy, TotemTestHistoClass::Hit::vz, x, TotemTestHistoClass::Hit::x, y, TotemTestHistoClass::Hit::y, z, and TotemTestHistoClass::Hit::z.

Referenced by TotemTestGem::fillEvent(), and setEVT().

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 }
#define LogDebug(id)
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
static const int tID
Definition: TopGenEvent.h:13
int TotemTestHistoClass::getEVT ( ) const
inline

Definition at line 49 of file TotemTestHistoClass.h.

References evt.

49 { return evt; }
std::vector<Hit> TotemTestHistoClass::getHits ( ) const
inline

Definition at line 51 of file TotemTestHistoClass.h.

References hit.

51 { return hit; }
std::vector< Hit > hit
int TotemTestHistoClass::getNHit ( ) const
inline

Definition at line 50 of file TotemTestHistoClass.h.

References hits.

50 { return hits; }
void TotemTestHistoClass::setEVT ( int  v)
inline

Member Data Documentation

int TotemTestHistoClass::evt
private

Definition at line 69 of file TotemTestHistoClass.h.

Referenced by getEVT(), and setEVT().

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

Definition at line 70 of file TotemTestHistoClass.h.

Referenced by getHits().

int TotemTestHistoClass::hits
private

Definition at line 69 of file TotemTestHistoClass.h.

Referenced by fillHit(), and getNHit().