Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes

TSTSClusterizer Class Reference

#include <TSTSClusterizer.h>

Collaboration diagram for TSTSClusterizer:
Collaboration graph
[legend]

Public Member Functions

 TSTSClusterizer (Int_t det=0, Int_t side=0)
virtual ~TSTSClusterizer ()
void FeedDigi (TSTSDigi const &digi)
Bool_t FetchCluster (Bool_t noTriggers, TSTSCluster &cluster)
Int_t GetDetector () const
Int_t GetSide () const
void SetDetector (Int_t det)
void SetSide (Int_t side)
void SetTimeTolerance (Long64_t timeTolerance)
void SetSpaceTolerance (Int_t spaceTolerance)
void SetTimeWindow (Long64_t timeWindow)
Long64_t GetTimeWindow () const
UInt_t GetBufferSize () const
 TSTSClusterizer (Int_t det=0, Int_t side=0)
virtual ~TSTSClusterizer ()
void FeedDigi (TSTSDigi const &digi)
TSTSClusterFetchCluster (Bool_t noTriggers)
Int_t GetDetector () const
Int_t GetSide () const
void SetDetector (Int_t det)
void SetSide (Int_t side)
void SetTimeTolerance (Int_t timeTolerance)
void SetSpaceTolerance (Int_t spaceTolerance)
void Clear ()

Protected Member Functions

void CheckTimeWindowSufficient (const TSTSDigi &newDigi)
void CheckTimeWindowGtTimeTol ()
Bool_t Match (const TSTSDigi &digi1, const TSTSDigi &digi2) const
Bool_t Match (const TSTSCluster &cluster, const TSTSDigi &digi) const
void MoveDigiToCluster (TSTSCluster &cluster, const std::deque< TSTSDigi >::iterator &itDigi)
void InsertDigiSorted (TSTSDigi const &digi)
Bool_t IsDigiBufferFilled (Bool_t noTrigger) const
void PrintBuffer () const
Bool_t Match (const TSTSDigi digi1, const TSTSDigi digi2)
Bool_t Match (const TSTSCluster *const cluster, const TSTSDigi digi)
void MoveDigiToCluster (TSTSCluster *cluster, const std::deque< TSTSDigi >::iterator &itDigi)
Bool_t FindDigiFitsCluster (Bool_t noTrigger, const TSTSCluster *const cluster, std::deque< TSTSDigi >::iterator &itDigi)

Protected Attributes

Long64_t fTimeTolerance
Int_t fSpaceTolerance
Long64_t fTimeWindow
Int_t fDetector
Int_t fSide
std::deque< TSTSDigifDigis
Long64_t fLatestDigiTime
Int_t fTimeTolerance

Static Protected Attributes

static const Long64_t kDefTimeTolerance = 50
static const Int_t kDefSpaceTolerance = 1
static const Long64_t kDefTimeWindow = 5000
static Int_t const kDefTimeTolerance = 50
static Int_t const kDefSpaceTolerance = 1
static Int_t const kDefTimeWindow = 5000

Detailed Description

Definition at line 10 of file TSTSClusterizer.h.


Constructor & Destructor Documentation

TSTSClusterizer::TSTSClusterizer ( Int_t  det = 0,
Int_t  side = 0 
)
TSTSClusterizer::~TSTSClusterizer (  )  [virtual]

Definition at line 17 of file TSTSClusterizer.cxx.

TSTSClusterizer::TSTSClusterizer ( Int_t  det = 0,
Int_t  side = 0 
)
virtual TSTSClusterizer::~TSTSClusterizer (  )  [virtual]

Member Function Documentation

void TSTSClusterizer::CheckTimeWindowGtTimeTol (  )  [protected]

Definition at line 35 of file TSTSClusterizer.cxx.

References fTimeTolerance, and fTimeWindow.

Referenced by SetTimeTolerance(), SetTimeWindow(), and TSTSClusterizer().

void TSTSClusterizer::CheckTimeWindowSufficient ( const TSTSDigi newDigi  )  [protected]

Definition at line 24 of file TSTSClusterizer.cxx.

References fLatestDigiTime, fTimeTolerance, fTimeWindow, and TSTSDigi::GetTime().

Referenced by FeedDigi().

void TSTSClusterizer::Clear ( void   )  [inline]

Definition at line 38 of file TSTSClusterizer.h.

References fDigis.

void TSTSClusterizer::FeedDigi ( TSTSDigi const &  digi  ) 

Definition at line 94 of file TSTSClusterizer.cxx.

References CheckTimeWindowSufficient(), and InsertDigiSorted().

void TSTSClusterizer::FeedDigi ( TSTSDigi const &  digi  )  [inline]

Definition at line 30 of file TSTSClusterizer.h.

References fDigis.

Bool_t TSTSClusterizer::FetchCluster ( Bool_t  noTriggers,
TSTSCluster cluster 
)
TSTSCluster * TSTSClusterizer::FetchCluster ( Bool_t  noTriggers  ) 

Definition at line 69 of file TSTSClusterizer.cxx.

References fDigis, FindDigiFitsCluster(), fTimeWindow, and MoveDigiToCluster().

Bool_t TSTSClusterizer::FindDigiFitsCluster ( Bool_t  noTrigger,
const TSTSCluster *const  cluster,
std::deque< TSTSDigi >::iterator &  itDigi 
) [protected]

Definition at line 51 of file TSTSClusterizer.cxx.

References fDigis, fTimeTolerance, and Match().

Referenced by FetchCluster().

UInt_t TSTSClusterizer::GetBufferSize (  )  const [inline]

Definition at line 45 of file TSTSClusterizer.h.

References fDigis.

Int_t TSTSClusterizer::GetDetector (  )  const [inline]

Definition at line 37 of file TSTSClusterizer.h.

References fDetector.

Int_t TSTSClusterizer::GetDetector (  )  const [inline]

Definition at line 32 of file TSTSClusterizer.h.

References fDetector.

Int_t TSTSClusterizer::GetSide (  )  const [inline]

Definition at line 38 of file TSTSClusterizer.h.

References fSide.

Int_t TSTSClusterizer::GetSide (  )  const [inline]

Definition at line 33 of file TSTSClusterizer.h.

References fSide.

Long64_t TSTSClusterizer::GetTimeWindow (  )  const [inline]

Definition at line 44 of file TSTSClusterizer.h.

References fTimeWindow.

void TSTSClusterizer::InsertDigiSorted ( TSTSDigi const &  digi  )  [protected]

Definition at line 74 of file TSTSClusterizer.cxx.

References fDigis, and TSTSDigi::GetTime().

Referenced by FeedDigi().

Bool_t TSTSClusterizer::IsDigiBufferFilled ( Bool_t  noTrigger  )  const [protected]

Definition at line 103 of file TSTSClusterizer.cxx.

References fDigis, and fTimeWindow.

Referenced by FetchCluster().

Bool_t TSTSClusterizer::Match ( const TSTSDigi digi1,
const TSTSDigi digi2 
) const [protected]
Bool_t TSTSClusterizer::Match ( const TSTSCluster cluster,
const TSTSDigi digi 
) const [protected]

Definition at line 52 of file TSTSClusterizer.cxx.

References TSTSCluster::GetDigi(), TSTSCluster::GetNDigis(), and Match().

Bool_t TSTSClusterizer::Match ( const TSTSDigi  digi1,
const TSTSDigi  digi2 
) [protected]
Bool_t TSTSClusterizer::Match ( const TSTSCluster *const  cluster,
const TSTSDigi  digi 
) [protected]

Definition at line 27 of file TSTSClusterizer.cxx.

References TSTSCluster::GetDigi(), TSTSCluster::GetNDigis(), and Match().

void TSTSClusterizer::MoveDigiToCluster ( TSTSCluster cluster,
const std::deque< TSTSDigi >::iterator &  itDigi 
) [protected]

Definition at line 66 of file TSTSClusterizer.cxx.

References TSTSCluster::AddDigi(), and fDigis.

Referenced by FetchCluster().

void TSTSClusterizer::MoveDigiToCluster ( TSTSCluster cluster,
const std::deque< TSTSDigi >::iterator &  itDigi 
) [protected]

Definition at line 41 of file TSTSClusterizer.cxx.

References TSTSCluster::AddDigi(), and fDigis.

void TSTSClusterizer::PrintBuffer (  )  const [protected]

Definition at line 84 of file TSTSClusterizer.cxx.

References fDetector, fDigis, fSide, and TSTSTopology::GetSideName().

void TSTSClusterizer::SetDetector ( Int_t  det  )  [inline]

Definition at line 39 of file TSTSClusterizer.h.

References fDetector.

void TSTSClusterizer::SetDetector ( Int_t  det  )  [inline]

Definition at line 34 of file TSTSClusterizer.h.

References fDetector.

void TSTSClusterizer::SetSide ( Int_t  side  )  [inline]

Definition at line 40 of file TSTSClusterizer.h.

References fSide.

void TSTSClusterizer::SetSide ( Int_t  side  )  [inline]

Definition at line 35 of file TSTSClusterizer.h.

References fSide.

void TSTSClusterizer::SetSpaceTolerance ( Int_t  spaceTolerance  )  [inline]

Definition at line 37 of file TSTSClusterizer.h.

References fSpaceTolerance.

void TSTSClusterizer::SetSpaceTolerance ( Int_t  spaceTolerance  )  [inline]

Definition at line 42 of file TSTSClusterizer.h.

References fSpaceTolerance.

void TSTSClusterizer::SetTimeTolerance ( Long64_t  timeTolerance  ) 

Definition at line 159 of file TSTSClusterizer.cxx.

References CheckTimeWindowGtTimeTol(), and fTimeTolerance.

void TSTSClusterizer::SetTimeTolerance ( Int_t  timeTolerance  )  [inline]

Definition at line 36 of file TSTSClusterizer.h.

References fTimeTolerance.

void TSTSClusterizer::SetTimeWindow ( Long64_t  timeWindow  ) 

Definition at line 167 of file TSTSClusterizer.cxx.

References CheckTimeWindowGtTimeTol(), and fTimeWindow.


Field Documentation

Int_t TSTSClusterizer::fDetector [protected]

Definition at line 19 of file TSTSClusterizer.h.

Referenced by GetDetector(), PrintBuffer(), and SetDetector().

std::deque< TSTSDigi > TSTSClusterizer::fDigis [protected]
Long64_t TSTSClusterizer::fLatestDigiTime [protected]

Definition at line 22 of file TSTSClusterizer.h.

Referenced by CheckTimeWindowSufficient(), and TSTSClusterizer().

Int_t TSTSClusterizer::fSide [protected]

Definition at line 20 of file TSTSClusterizer.h.

Referenced by GetSide(), PrintBuffer(), and SetSide().

Definition at line 13 of file TSTSClusterizer.h.

Referenced by Match(), SetSpaceTolerance(), and TSTSClusterizer().

Long64_t TSTSClusterizer::fTimeTolerance [protected]

Definition at line 12 of file TSTSClusterizer.h.

Long64_t TSTSClusterizer::fTimeWindow [protected]
const Int_t TSTSClusterizer::kDefSpaceTolerance = 1 [static, protected]

Definition at line 17 of file TSTSClusterizer.h.

Referenced by TSTSClusterizer().

Int_t const TSTSClusterizer::kDefSpaceTolerance = 1 [static, protected]

Definition at line 17 of file TSTSClusterizer.h.

Int_t const TSTSClusterizer::kDefTimeTolerance = 50 [static, protected]

Definition at line 16 of file TSTSClusterizer.h.

const Long64_t TSTSClusterizer::kDefTimeTolerance = 50 [static, protected]

Definition at line 16 of file TSTSClusterizer.h.

Referenced by TSTSClusterizer().

const Long64_t TSTSClusterizer::kDefTimeWindow = 5000 [static, protected]

Definition at line 18 of file TSTSClusterizer.h.

Referenced by TSTSClusterizer().

Int_t const TSTSClusterizer::kDefTimeWindow = 5000 [static, protected]

Definition at line 18 of file TSTSClusterizer.h.


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