00001 /* 00002 * TSTSHit.h 00003 * 00004 * Created on: Jan 9, 2012 00005 * Author: isorokin 00006 */ 00007 00008 #ifndef TSTSHIT_H 00009 #define TSTSHIT_H 00010 00011 #include "TSTSCluster.h" 00012 #include "TSTSTopology.h" 00013 00014 class TSTSHit { 00015 private: 00016 TSTSCluster fClustP; 00017 TSTSCluster fClustN; 00018 public: 00019 TSTSHit() {}; 00020 TSTSHit( const TSTSCluster & clustP, const TSTSCluster & clustN ); 00021 virtual ~TSTSHit() {}; 00022 Long64_t GetTime() const { return ( fClustP.GetTime() + fClustN.GetTime() ) / 2; } 00023 Long64_t GetTimeLength() const; 00024 const TSTSCluster & GetCluster( TSTSTopology::ESTSSide side ) const { return side == TSTSTopology::kPSide ? fClustP : fClustN; } 00025 void Print() const; 00026 void Reset(); 00027 ClassDef(TSTSHit, 1) 00028 }; 00029 00030 00031 #endif /* TSTSHIT_H */