#include <TSTSHiterizer.h>
Public Member Functions | |
TSTSHiterizer (Int_t det=0) | |
~TSTSHiterizer () | |
void | FeedCluster (const TSTSCluster &cluster, TSTSTopology::ESTSSide side) |
Bool_t | FetchHit (Bool_t noTrigger, TSTSHit &hit) |
Long64_t | GetTimeTolerance () const |
void | SetTimeTolerance (Long64_t timeTolerance) |
void | SetTimeWindow (Long64_t timeWindow) |
Long64_t | GetTimeWindow () const |
void | Clear () |
TSTSHiterizer (Int_t det=0) | |
~TSTSHiterizer () | |
void | FeedCluster (TSTSCluster *cluster, TSTSTopology::ESTSSide side) |
TSTSHit * | FetchHit (Bool_t noTrigger) |
Long64_t | GetTimeTolerance () const |
void | SetTimeTolerance (Long64_t timeTolerance) |
void | Clear () |
Private Member Functions | |
Bool_t | IsClusterBuffersFilled (Bool_t noTrigger) const |
TSTSTopology::ESTSSide | GetOldesetClusterSide () const |
Bool_t | IsClusterBuffersContainSufficientTimeInterval () const |
Bool_t | Match (const TSTSCluster &clust1, const TSTSCluster &clust2) const |
void | CreateHit (const TSTSCluster &clust1, TSTSTopology::ESTSSide side1, const TSTSCluster &clust2, TSTSTopology::ESTSSide side2) |
void | ClearClustBuffers () |
void | ReconstructHits (Bool_t noTrigger) |
void | CheckTimeWindowSufficient (Long64_t newClustTime) |
void | InsertClusterSorted (TSTSTopology::ESTSSide side, const TSTSCluster &cluster) |
void | PrintBuffers () const |
void | ReconstructHits (Bool_t noTrigger) |
Private Attributes | |
Long64_t | fTimeTolerance |
Long64_t | fTimeWindow |
Int_t | fDetector |
std::deque< TSTSCluster > | fClusters [TSTSTopology::kNSides] |
std::deque< TSTSHit > | fHits |
Long64_t | fLatestClusterTime |
std::deque< TSTSCluster * > | fClusters [TSTSTopology::kNSides] |
std::deque< TSTSHit * > | fHits |
Static Private Attributes | |
static const Long64_t | kDefTimeTolerance = 50 |
static const Long64_t | kDefTimeWindow = 5000 |
static Long64_t const | kDefTimeTolerance = 50 |
Definition at line 15 of file TSTSHiterizer.h.
TSTSHiterizer::TSTSHiterizer | ( | Int_t | det = 0 |
) |
Definition at line 11 of file TSTSHiterizer.cxx.
References fDetector, fLatestClusterTime, fTimeTolerance, fTimeWindow, kDefTimeTolerance, and kDefTimeWindow.
TSTSHiterizer::~TSTSHiterizer | ( | ) |
Definition at line 19 of file TSTSHiterizer.cxx.
TSTSHiterizer::TSTSHiterizer | ( | Int_t | det = 0 |
) |
TSTSHiterizer::~TSTSHiterizer | ( | ) |
void TSTSHiterizer::CheckTimeWindowSufficient | ( | Long64_t | newClustTime | ) | [private] |
Definition at line 75 of file TSTSHiterizer.cxx.
References fLatestClusterTime, fTimeTolerance, and fTimeWindow.
Referenced by FeedCluster().
void TSTSHiterizer::Clear | ( | ) |
Definition at line 192 of file TSTSHiterizer.cxx.
References ClearClustBuffers(), and fHits.
void TSTSHiterizer::Clear | ( | ) |
void TSTSHiterizer::ClearClustBuffers | ( | ) | [private] |
Definition at line 24 of file TSTSHiterizer.cxx.
References fClusters.
Referenced by Clear(), and ReconstructHits().
void TSTSHiterizer::CreateHit | ( | const TSTSCluster & | clust1, | |
TSTSTopology::ESTSSide | side1, | |||
const TSTSCluster & | clust2, | |||
TSTSTopology::ESTSSide | side2 | |||
) | [private] |
Definition at line 114 of file TSTSHiterizer.cxx.
References fHits, and TSTSTopology::kPSide.
Referenced by ReconstructHits().
void TSTSHiterizer::FeedCluster | ( | TSTSCluster * | cluster, | |
TSTSTopology::ESTSSide | side | |||
) | [inline] |
Definition at line 27 of file TSTSHiterizer.h.
References fClusters.
void TSTSHiterizer::FeedCluster | ( | const TSTSCluster & | cluster, | |
TSTSTopology::ESTSSide | side | |||
) |
Definition at line 106 of file TSTSHiterizer.cxx.
References CheckTimeWindowSufficient(), TSTSCluster::GetTime(), and InsertClusterSorted().
TSTSHit * TSTSHiterizer::FetchHit | ( | Bool_t | noTrigger | ) |
Definition at line 52 of file TSTSHiterizer.cxx.
References fHits, and ReconstructHits().
Bool_t TSTSHiterizer::FetchHit | ( | Bool_t | noTrigger, | |
TSTSHit & | hit | |||
) |
Definition at line 177 of file TSTSHiterizer.cxx.
References fHits, and ReconstructHits().
TSTSTopology::ESTSSide TSTSHiterizer::GetOldesetClusterSide | ( | ) | const [private] |
Definition at line 167 of file TSTSHiterizer.cxx.
References fClusters, and TSTSTopology::kPSide.
Referenced by IsClusterBuffersContainSufficientTimeInterval(), and ReconstructHits().
Long64_t TSTSHiterizer::GetTimeTolerance | ( | ) | const [inline] |
Definition at line 29 of file TSTSHiterizer.h.
References fTimeTolerance.
Long64_t TSTSHiterizer::GetTimeTolerance | ( | ) | const [inline] |
Definition at line 41 of file TSTSHiterizer.h.
References fTimeTolerance.
Long64_t TSTSHiterizer::GetTimeWindow | ( | ) | const [inline] |
Definition at line 44 of file TSTSHiterizer.h.
References fTimeWindow.
void TSTSHiterizer::InsertClusterSorted | ( | TSTSTopology::ESTSSide | side, | |
const TSTSCluster & | cluster | |||
) | [private] |
Definition at line 88 of file TSTSHiterizer.cxx.
References fClusters, and TSTSCluster::GetTime().
Referenced by FeedCluster().
Bool_t TSTSHiterizer::IsClusterBuffersContainSufficientTimeInterval | ( | ) | const [private] |
Definition at line 129 of file TSTSHiterizer.cxx.
References fClusters, fTimeWindow, GetOldesetClusterSide(), and TSTSTopology::OppositeSide().
Referenced by IsClusterBuffersFilled().
Bool_t TSTSHiterizer::IsClusterBuffersFilled | ( | Bool_t | noTrigger | ) | const [private] |
Definition at line 138 of file TSTSHiterizer.cxx.
References fClusters, IsClusterBuffersContainSufficientTimeInterval(), TSTSTopology::kNSide, and TSTSTopology::kPSide.
Referenced by ReconstructHits().
Bool_t TSTSHiterizer::Match | ( | const TSTSCluster & | clust1, | |
const TSTSCluster & | clust2 | |||
) | const [private] |
Definition at line 32 of file TSTSHiterizer.cxx.
References fTimeTolerance, and TSTSCluster::GetTime().
Referenced by ReconstructHits().
void TSTSHiterizer::PrintBuffers | ( | ) | const [private] |
Definition at line 149 of file TSTSHiterizer.cxx.
References fClusters, TSTSTopology::kNSide, and TSTSTopology::kPSide.
void TSTSHiterizer::ReconstructHits | ( | Bool_t | noTrigger | ) | [private] |
void TSTSHiterizer::ReconstructHits | ( | Bool_t | noTrigger | ) | [private] |
Definition at line 43 of file TSTSHiterizer.cxx.
References ClearClustBuffers(), CreateHit(), fClusters, fTimeTolerance, GetOldesetClusterSide(), TSTSCluster::GetTime(), IsClusterBuffersFilled(), Match(), and TSTSTopology::OppositeSide().
Referenced by FetchHit().
void TSTSHiterizer::SetTimeTolerance | ( | Long64_t | timeTolerance | ) | [inline] |
Definition at line 42 of file TSTSHiterizer.h.
References fTimeTolerance.
void TSTSHiterizer::SetTimeTolerance | ( | Long64_t | timeTolerance | ) | [inline] |
Definition at line 30 of file TSTSHiterizer.h.
References fTimeTolerance.
void TSTSHiterizer::SetTimeWindow | ( | Long64_t | timeWindow | ) | [inline] |
Definition at line 43 of file TSTSHiterizer.h.
References fTimeWindow.
std::deque<TSTSCluster> TSTSHiterizer::fClusters[TSTSTopology::kNSides] [private] |
Definition at line 22 of file TSTSHiterizer.h.
Referenced by ClearClustBuffers(), FeedCluster(), GetOldesetClusterSide(), InsertClusterSorted(), IsClusterBuffersContainSufficientTimeInterval(), IsClusterBuffersFilled(), PrintBuffers(), and ReconstructHits().
std::deque< TSTSCluster * > TSTSHiterizer::fClusters[TSTSTopology::kNSides] [private] |
Definition at line 20 of file TSTSHiterizer.h.
Int_t TSTSHiterizer::fDetector [private] |
Definition at line 21 of file TSTSHiterizer.h.
Referenced by TSTSHiterizer().
std::deque< TSTSHit * > TSTSHiterizer::fHits [private] |
Definition at line 21 of file TSTSHiterizer.h.
std::deque<TSTSHit> TSTSHiterizer::fHits [private] |
Definition at line 23 of file TSTSHiterizer.h.
Referenced by Clear(), CreateHit(), and FetchHit().
Long64_t TSTSHiterizer::fLatestClusterTime [private] |
Definition at line 24 of file TSTSHiterizer.h.
Referenced by CheckTimeWindowSufficient(), and TSTSHiterizer().
Long64_t TSTSHiterizer::fTimeTolerance [private] |
Definition at line 17 of file TSTSHiterizer.h.
Referenced by CheckTimeWindowSufficient(), GetTimeTolerance(), Match(), ReconstructHits(), SetTimeTolerance(), and TSTSHiterizer().
Long64_t TSTSHiterizer::fTimeWindow [private] |
Definition at line 18 of file TSTSHiterizer.h.
Referenced by CheckTimeWindowSufficient(), GetTimeWindow(), IsClusterBuffersContainSufficientTimeInterval(), SetTimeWindow(), and TSTSHiterizer().
const Long64_t TSTSHiterizer::kDefTimeTolerance = 50 [static, private] |
Definition at line 19 of file TSTSHiterizer.h.
Referenced by TSTSHiterizer().
Long64_t const TSTSHiterizer::kDefTimeTolerance = 50 [static, private] |
Definition at line 18 of file TSTSHiterizer.h.
const Long64_t TSTSHiterizer::kDefTimeWindow = 5000 [static, private] |
Definition at line 20 of file TSTSHiterizer.h.
Referenced by TSTSHiterizer().