Managed::ManagedHit Class Reference

#include <ManagedHit.h>

List of all members.

Public Member Functions

 ManagedHit (int view, int plane, int strip, double z, double t, double e)
 ManagedHit ()
virtual ~ManagedHit ()
void AdvanceID ()
double TakeEnergy (double e)
double SetEnergy (double e)
double GetT ()
double GetZ ()
int GetView ()
int GetStrip ()
int GetPlane ()
double GetEOriginal ()
double GetERemaining ()
int GetID ()

Static Public Member Functions

static void ResetIDCounter ()

Public Attributes

int id

Static Public Attributes

static int idcounter = 0

Private Member Functions

 ClassDef (ManagedHit, 1)

Private Attributes

double t
double z
int view
int plane
int strip
double e_original
double e_remaining

Detailed Description

Definition at line 9 of file ManagedHit.h.


Constructor & Destructor Documentation

ManagedHit::ManagedHit ( int  view,
int  plane,
int  strip,
double  z,
double  t,
double  e 
)

Definition at line 9 of file ManagedHit.cxx.

00010 {
00011         id=idcounter++;
00012 
00013         this->view=view;
00014         this->z=z;
00015         this->t=t;
00016         this->e_original=e;
00017         this->plane=plane;
00018         this->strip=strip;
00019         e_remaining=e_original;
00020 }

Managed::ManagedHit::ManagedHit (  )  [inline]

Definition at line 13 of file ManagedHit.h.

References idcounter.

00013 {id=idcounter++;};

ManagedHit::~ManagedHit (  )  [virtual]

Definition at line 22 of file ManagedHit.cxx.

00023 {}


Member Function Documentation

void ManagedHit::AdvanceID (  ) 

Definition at line 25 of file ManagedHit.cxx.

References idcounter.

00026 {
00027         id=idcounter++;
00028 }

Managed::ManagedHit::ClassDef ( ManagedHit  ,
 
) [private]
double Managed::ManagedHit::GetEOriginal (  )  [inline]

Definition at line 30 of file ManagedHit.h.

References e_original.

00030 {return e_original;};

double Managed::ManagedHit::GetERemaining (  )  [inline]

Definition at line 31 of file ManagedHit.h.

References e_remaining.

00031 {return e_remaining;};

int Managed::ManagedHit::GetID (  )  [inline]

Definition at line 32 of file ManagedHit.h.

00032 {return id;};

int Managed::ManagedHit::GetPlane (  )  [inline]

Definition at line 29 of file ManagedHit.h.

00029 {return plane;};

int Managed::ManagedHit::GetStrip (  )  [inline]

Definition at line 28 of file ManagedHit.h.

00028 {return strip;};

double Managed::ManagedHit::GetT (  )  [inline]

Definition at line 25 of file ManagedHit.h.

00025 {return t;};

int Managed::ManagedHit::GetView (  )  [inline]

Definition at line 27 of file ManagedHit.h.

00027 {return view;};

double Managed::ManagedHit::GetZ (  )  [inline]

Definition at line 26 of file ManagedHit.h.

00026 {return z;};

void ManagedHit::ResetIDCounter (  )  [static]

Definition at line 30 of file ManagedHit.cxx.

References idcounter.

Referenced by Managed::HitManager::Reset().

00031 {
00032         idcounter=0;
00033 }

double Managed::ManagedHit::SetEnergy ( double  e  )  [inline]

Definition at line 24 of file ManagedHit.h.

References e_remaining.

Referenced by Managed::ClusterManager::AdjustCluster().

00024 { if(e>e_remaining)return e_remaining; else e_remaining=e;return e_remaining;};

double Managed::ManagedHit::TakeEnergy ( double  e  )  [inline]

Definition at line 22 of file ManagedHit.h.

References e_remaining.

00022 { if(e<e_remaining)e_remaining-=e;else{e=e_remaining;e_remaining=0;}return e;};


Member Data Documentation

Definition at line 40 of file ManagedHit.h.

Referenced by GetEOriginal().

Definition at line 41 of file ManagedHit.h.

Referenced by GetERemaining(), SetEnergy(), and TakeEnergy().

Definition at line 17 of file ManagedHit.h.

Referenced by Managed::HitManager::InsertHit().

int ManagedHit::idcounter = 0 [static]

Definition at line 16 of file ManagedHit.h.

Referenced by AdvanceID(), ManagedHit(), and ResetIDCounter().

Definition at line 38 of file ManagedHit.h.

Definition at line 39 of file ManagedHit.h.

double Managed::ManagedHit::t [private]

Definition at line 32 of file ManagedHit.h.

Definition at line 37 of file ManagedHit.h.

double Managed::ManagedHit::z [private]

Definition at line 36 of file ManagedHit.h.


The documentation for this class was generated from the following files:

Generated on 15 Jul 2018 for loon by  doxygen 1.6.1