Public Member Functions | Private Member Functions | Private Attributes

TSTSCluster Class Reference

#include <TSTSCluster.h>

Collaboration diagram for TSTSCluster:
Collaboration graph
[legend]

Public Member Functions

 TSTSCluster ()
virtual ~TSTSCluster ()
void AddDigi (const TSTSDigi &digi)
void Reset ()
Int_t GetNDigis () const
const TSTSDigiGetDigi (Int_t iDigi) const
Float_t GetAmplitude () const
const TSTSDigiGetMainDigi () const
Int_t GetMainStrip () const
Float_t GetCogStrip () const
Long64_t GetTime () const
Long64_t GetTimeLength () const
void Print () const
 TSTSCluster ()
 ~TSTSCluster ()
void AddDigi (const TSTSDigi &digi)
Int_t GetNDigis () const
TSTSDigi GetDigi (Int_t iDigi) const
TSTSDigi GetMainDigi () const
Double_t GetAmplitude () const
Int_t GetMainStrip () const
Long64_t GetTime () const
Long64_t GetTimeLength () const
void Print () const

Private Member Functions

void EnsureCacheActual () const
void UpdateCache () const

Private Attributes

std::vector< TSTSDigifDigis
Float_t fCachedAmplitude
TSTSDigi fCachedMainDigi
Int_t fCachedMainStrip
Float_t fCachedCogStrip
Long64_t fCachedTime
Long64_t fCachedTimeLength
Bool_t fCacheActual

Detailed Description

Definition at line 13 of file TSTSCluster.h.


Constructor & Destructor Documentation

TSTSCluster::TSTSCluster (  ) 

Definition at line 11 of file TSTSCluster.cxx.

TSTSCluster::~TSTSCluster (  )  [inline, virtual]

Definition at line 29 of file TSTSCluster.h.

TSTSCluster::TSTSCluster (  ) 
TSTSCluster::~TSTSCluster (  ) 

Member Function Documentation

void TSTSCluster::AddDigi ( const TSTSDigi digi  ) 

Definition at line 18 of file TSTSCluster.cxx.

References fCacheActual, and fDigis.

Referenced by TSTSClusterizer::MoveDigiToCluster().

void TSTSCluster::AddDigi ( const TSTSDigi digi  )  [inline]

Definition at line 21 of file TSTSCluster.h.

References fCachedTime, and fDigis.

void TSTSCluster::EnsureCacheActual (  )  const [private]

Definition at line 81 of file TSTSCluster.cxx.

References fCacheActual, and UpdateCache().

Referenced by GetAmplitude(), GetCogStrip(), GetMainDigi(), GetMainStrip(), GetTime(), and GetTimeLength().

Double_t TSTSCluster::GetAmplitude (  )  const
Double_t TSTSCluster::GetAmplitude (  )  const

Definition at line 120 of file TSTSCluster.cxx.

References EnsureCacheActual(), and fCachedAmplitude.

Referenced by TSTSProc::EvaluateHits(), TSTSProc::FinalizeEvent(), and Print().

Float_t TSTSCluster::GetCogStrip (  )  const

Definition at line 104 of file TSTSCluster.cxx.

References EnsureCacheActual(), and fCachedCogStrip.

TSTSDigi TSTSCluster::GetDigi ( Int_t  iDigi  )  const [inline]

Definition at line 24 of file TSTSCluster.h.

References fDigis.

const TSTSDigi& TSTSCluster::GetDigi ( Int_t  iDigi  )  const [inline]

Definition at line 33 of file TSTSCluster.h.

References fDigis.

Referenced by TSTSClusterizer::Match().

TSTSDigi TSTSCluster::GetMainDigi (  )  const
TSTSDigi TSTSCluster::GetMainDigi (  )  const

Definition at line 128 of file TSTSCluster.cxx.

References EnsureCacheActual(), and fCachedMainDigi.

Int_t TSTSCluster::GetMainStrip (  )  const
Int_t TSTSCluster::GetMainStrip (  )  const
Int_t TSTSCluster::GetNDigis (  )  const [inline]

Definition at line 32 of file TSTSCluster.h.

References fDigis.

Referenced by TSTSClusterizer::Match(), and Print().

Int_t TSTSCluster::GetNDigis (  )  const [inline]

Definition at line 23 of file TSTSCluster.h.

References fDigis.

Long64_t TSTSCluster::GetTime (  )  const
Long64_t TSTSCluster::GetTime (  )  const
Long64_t TSTSCluster::GetTimeLength (  )  const
Long64_t TSTSCluster::GetTimeLength (  )  const

Definition at line 112 of file TSTSCluster.cxx.

References EnsureCacheActual(), and fCachedTimeLength.

void TSTSCluster::Print (  )  const
void TSTSCluster::Print (  )  const

Definition at line 26 of file TSTSCluster.cxx.

References fDigis, GetAmplitude(), GetMainStrip(), GetNDigis(), and GetTime().

Referenced by TSTSHit::Print().

void TSTSCluster::Reset (  )  [inline]

Definition at line 31 of file TSTSCluster.h.

References fCacheActual, and fDigis.

Referenced by TSTSClusterizer::FetchCluster(), and TSTSHit::Reset().

void TSTSCluster::UpdateCache (  )  const [private]

Field Documentation

Bool_t TSTSCluster::fCacheActual [mutable, private]

Definition at line 22 of file TSTSCluster.h.

Referenced by AddDigi(), EnsureCacheActual(), Reset(), and UpdateCache().

Float_t TSTSCluster::fCachedAmplitude [mutable, private]

Definition at line 16 of file TSTSCluster.h.

Referenced by GetAmplitude(), and UpdateCache().

Float_t TSTSCluster::fCachedCogStrip [mutable, private]

Definition at line 19 of file TSTSCluster.h.

Referenced by GetCogStrip(), and UpdateCache().

Definition at line 17 of file TSTSCluster.h.

Referenced by GetMainDigi(), and UpdateCache().

Int_t TSTSCluster::fCachedMainStrip [mutable, private]

Definition at line 18 of file TSTSCluster.h.

Referenced by GetMainStrip(), and UpdateCache().

Long64_t TSTSCluster::fCachedTime [mutable, private]

Definition at line 20 of file TSTSCluster.h.

Referenced by AddDigi(), GetTime(), and UpdateCache().

Long64_t TSTSCluster::fCachedTimeLength [mutable, private]

Definition at line 21 of file TSTSCluster.h.

Referenced by GetTimeLength(), and UpdateCache().

std::vector< TSTSDigi > TSTSCluster::fDigis [private]

Definition at line 15 of file TSTSCluster.h.

Referenced by AddDigi(), GetDigi(), GetNDigis(), Print(), Reset(), and UpdateCache().


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