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 27 of file TotemTestHistoClass.h.

Constructor & Destructor Documentation

TotemTestHistoClass::TotemTestHistoClass ( )
explicit

Definition at line 26 of file TotemTestHistoClass.cc.

TotemTestHistoClass::~TotemTestHistoClass ( )
virtual

Definition at line 28 of file TotemTestHistoClass.cc.

28 {}

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 30 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, TotemTestHistoClass::Hit::x, vdt::x, detailsBasic3DVector::y, TotemTestHistoClass::Hit::y, detailsBasic3DVector::z, and TotemTestHistoClass::Hit::z.

Referenced by TotemTestGem::fillEvent().

32  {
33 
35  h.UID = uID;
36  h.Ptype = pType;
37  h.TID = tID;
38  h.PID = pID;
39  h.ELoss = eLoss;
40  h.PABS = pAbs;
41  h.x = x;
42  h.y = y;
43  h.z = z;
44  h.vx = vX;
45  h.vy = vY;
46  h.vz = vZ;
47  hit.push_back(h);
48  hits++;
49  LogDebug("ForwardSim") << "TotemTestHistoClass : Hit " << hits << " " << uID
50  << ", " << pType << ", " << tID << ", " << pID << ", "
51  << eLoss << ", " << pAbs << ", " << vX << ", " << vY
52  << ", " << vZ << ", " << x << ", " << y << ", " << z;
53 }
#define LogDebug(id)
double double double 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
x
Definition: VDTMath.h:216
int TotemTestHistoClass::getEVT ( ) const
inline

Definition at line 52 of file TotemTestHistoClass.h.

References evt.

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

Definition at line 54 of file TotemTestHistoClass.h.

References hit.

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

Definition at line 53 of file TotemTestHistoClass.h.

References hits.

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

Definition at line 56 of file TotemTestHistoClass.h.

References evt, and v.

Referenced by TotemTestGem::fillEvent().

56 {evt=v;}
mathSSE::Vec4< T > v

Member Data Documentation

int TotemTestHistoClass::evt
private

Definition at line 63 of file TotemTestHistoClass.h.

Referenced by getEVT(), and setEVT().

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

Definition at line 64 of file TotemTestHistoClass.h.

Referenced by getHits().

int TotemTestHistoClass::hits
private

Definition at line 63 of file TotemTestHistoClass.h.

Referenced by fillHit(), and getNHit().