00001 00002 // Author : florent robinet (LAL - Orsay): robinet@lal.in2p3.fr 00004 #ifndef __TimeSlides__ 00005 #define __TimeSlides__ 00006 00007 #include "CUtils.h" 00008 #include "TTree.h" 00009 00010 using namespace std; 00011 00018 class TimeSlides { 00019 00020 public: 00021 00029 TimeSlides(const TimeSlides& InTimeSlides); // copy constructor 00030 00037 TimeSlides(const int aNstreams, const int aVerbose=0); // constructor 00038 00042 virtual ~TimeSlides(void); // destructor 00058 bool MakeLags(const int aN, const double aDt); 00059 00066 double GetTimeOffset(const int aStreamIndex, const int aLagIndex); 00067 00071 inline int GetNlags(void){ return SlideTree->GetEntries(); }; 00072 00076 inline int GetNLags(void){ return SlideTree->GetEntries(); }; 00077 00081 inline int GetNStreams(void){ return Nstreams; }; 00082 00086 inline int GetNstreams(void){ return Nstreams; }; 00087 00092 bool PrintSlides(const int aVerbose=1); 00093 00094 protected: 00095 00096 int Nstreams; 00097 int verbose; 00098 00099 // SLIDES 00100 TTree *SlideTree; 00101 double *t_offset; 00102 00103 ClassDef(TimeSlides,0) 00104 }; 00105 00106 #endif 00107 00108