CMS 3D CMS Logo

Classes | Public Member Functions | Private Attributes

TotemTestHistoClass Class Reference

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

List of all members.

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.

: evt(0), hits(0) {}
TotemTestHistoClass::~TotemTestHistoClass ( ) [virtual]

Definition at line 28 of file TotemTestHistoClass.cc.

{}

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

Referenced by TotemTestGem::fillEvent().

                                                                       {

  TotemTestHistoClass::Hit h;
  h.UID   = uID;
  h.Ptype = pType;
  h.TID   = tID;
  h.PID   = pID;
  h.ELoss = eLoss;
  h.PABS  = pAbs;
  h.x     = x;
  h.y     = y;
  h.z     = z;
  h.vx    = vX;
  h.vy    = vY;
  h.vz    = vZ;
  hit.push_back(h);
  hits++;
  LogDebug("ForwardSim") << "TotemTestHistoClass : Hit " << hits << " " << uID
                         << ", " << pType << ", " << tID << ", " << pID << ", "
                         << eLoss << ", " << pAbs << ", " << vX << ", " << vY
                         << ", " << vZ << ", " << x << ", " << y << ", " << z;
}
int TotemTestHistoClass::getEVT ( ) const [inline]

Definition at line 52 of file TotemTestHistoClass.h.

References evt.

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

Definition at line 54 of file TotemTestHistoClass.h.

References hit.

{return hit;}
int TotemTestHistoClass::getNHit ( ) const [inline]

Definition at line 53 of file TotemTestHistoClass.h.

References hits.

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

Definition at line 56 of file TotemTestHistoClass.h.

References evt, and v.

Referenced by TotemTestGem::fillEvent().

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

Definition at line 63 of file TotemTestHistoClass.h.

Referenced by fillHit(), and getNHit().