CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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, detailsBasic3DVector::y, TotemTestHistoClass::Hit::y, detailsBasic3DVector::z, and TotemTestHistoClass::Hit::z.

Referenced by TotemTestGem::fillEvent().

31  {
32 
34  h.UID = uID;
35  h.Ptype = pType;
36  h.TID = tID;
37  h.PID = pID;
38  h.ELoss = eLoss;
39  h.PABS = pAbs;
40  h.x = x;
41  h.y = y;
42  h.z = z;
43  h.vx = vX;
44  h.vy = vY;
45  h.vz = vZ;
46  hit.push_back(h);
47  hits++;
48  LogDebug("ForwardSim") << "TotemTestHistoClass : Hit " << hits << " " << uID
49  << ", " << pType << ", " << tID << ", " << pID << ", "
50  << eLoss << ", " << pAbs << ", " << vX << ", " << vY
51  << ", " << vZ << ", " << x << ", " << y << ", " << z;
52 }
#define LogDebug(id)
float float float z
static const int tID
Definition: TopGenEvent.h:13
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
Definition: DDAxes.h:10
int TotemTestHistoClass::getEVT ( ) const
inline

Definition at line 51 of file TotemTestHistoClass.h.

References evt.

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

Definition at line 53 of file TotemTestHistoClass.h.

References hit.

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

Definition at line 52 of file TotemTestHistoClass.h.

References hits.

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

Definition at line 55 of file TotemTestHistoClass.h.

References evt, and findQualityFiles::v.

Referenced by TotemTestGem::fillEvent().

Member Data Documentation

int TotemTestHistoClass::evt
private

Definition at line 62 of file TotemTestHistoClass.h.

Referenced by getEVT(), and setEVT().

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

Definition at line 63 of file TotemTestHistoClass.h.

Referenced by getHits().

int TotemTestHistoClass::hits
private

Definition at line 62 of file TotemTestHistoClass.h.

Referenced by fillHit(), and getNHit().