00001 /* 00002 * TSTSHiterizer.h 00003 * 00004 * Created on: Jan 9, 2012 00005 * Author: isorokin 00006 */ 00007 00008 #ifndef TSTSHITERIZER_H 00009 #define TSTSHITERIZER_H 00010 00011 #include "TSTSTopology.h" 00012 #include "TSTSHit.h" 00013 #include <deque> 00014 00015 class TSTSHiterizer { 00016 private: 00017 Long64_t fTimeTolerance; 00018 static Long64_t const kDefTimeTolerance = 50; 00019 Int_t fDetector; 00020 std::deque< TSTSCluster * > fClusters[ TSTSTopology::kNSides ]; 00021 std::deque< TSTSHit * > fHits; 00022 void ReconstructHits( Bool_t noTrigger); 00023 00024 public: 00025 TSTSHiterizer( Int_t det = 0 ); 00026 ~TSTSHiterizer(); 00027 void FeedCluster( TSTSCluster * cluster, TSTSTopology::ESTSSide side) { fClusters[side].push_back( cluster ); } 00028 TSTSHit * FetchHit( Bool_t noTrigger ); 00029 Long64_t GetTimeTolerance() const { return fTimeTolerance; } 00030 void SetTimeTolerance( Long64_t timeTolerance ) { fTimeTolerance = timeTolerance; } 00031 void Clear(); 00032 00033 00034 }; 00035 00036 00037 #endif /* TSTSHITERIZER_H */