CMS 3D CMS Logo

TotemTestHistoClass Class Reference

Description: Content of the Root file for Totem Tests. More...

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

List of all members.

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

Classes

struct  Hit


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.

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

TotemTestHistoClass::~TotemTestHistoClass (  )  [virtual]

Definition at line 28 of file TotemTestHistoClass.cc.

00028 {}


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

Referenced by TotemTestGem::fillEvent().

00032                                                                        {
00033 
00034   TotemTestHistoClass::Hit h;
00035   h.UID   = uID;
00036   h.Ptype = pType;
00037   h.TID   = tID;
00038   h.PID   = pID;
00039   h.ELoss = eLoss;
00040   h.PABS  = pAbs;
00041   h.x     = x;
00042   h.y     = y;
00043   h.z     = z;
00044   h.vx    = vX;
00045   h.vy    = vY;
00046   h.vz    = vZ;
00047   hit.push_back(h);
00048   hits++;
00049   LogDebug("ForwardSim") << "TotemTestHistoClass : Hit " << hits << " " << uID
00050                          << ", " << pType << ", " << tID << ", " << pID << ", "
00051                          << eLoss << ", " << pAbs << ", " << vX << ", " << vY
00052                          << ", " << vZ << ", " << x << ", " << y << ", " << z;
00053 }

int TotemTestHistoClass::getEVT (  )  const [inline]

Definition at line 52 of file TotemTestHistoClass.h.

References evt.

00052 {return evt;}

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

Definition at line 54 of file TotemTestHistoClass.h.

References hit.

00054 {return hit;}

int TotemTestHistoClass::getNHit (  )  const [inline]

Definition at line 53 of file TotemTestHistoClass.h.

References hits.

00053 {return hits;}

void TotemTestHistoClass::setEVT ( int  v  )  [inline]

Definition at line 56 of file TotemTestHistoClass.h.

References evt.

Referenced by TotemTestGem::fillEvent().

00056 {evt=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 fillHit(), and getHits().

int TotemTestHistoClass::hits [private]

Definition at line 63 of file TotemTestHistoClass.h.

Referenced by fillHit(), and getNHit().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:33:50 2009 for CMSSW by  doxygen 1.5.4