00001 #ifndef __L2DbTime_h__
00002 #define __L2DbTime_h__
00003
00004
00005
00006
00007
00008
00009 #include "TString.h"
00010 #include <iostream>
00011 #include <fstream>
00012 #include <vector>
00013 #include <algorithm>
00014
00015 class L2DbTime
00016 {
00017 public:
00018 L2DbTime();
00019 ~L2DbTime(){ };
00020 Bool_t valid( Int_t d, Int_t t );
00021 Bool_t eof();
00022 Bool_t comment();
00023 void print();
00024
00025 std::ifstream &read( std::ifstream &in );
00026
00027 double getFullStartTime() { return mDateStart+mTimeStart/1.e6; }
00028 double getFullFinishTime() { return mDateFinish+mTimeFinish/1.e6; }
00029 TString getPedFile(){ return mPedFile; }
00030 TString getMaskFile(){ return mMaskFile; }
00031 TString getBuf1(){ return mPedFile; }
00032 TString getBuf2(){ return mMaskFile; }
00033 TString getTag(){ return mTag; }
00034
00035
00036 private:
00037 protected:
00038 TString mTag;
00039 Int_t mDateStart;
00040 Int_t mDateFinish;
00041 Int_t mTimeStart;
00042 Int_t mTimeFinish;
00043 TString mPedFile;
00044 TString mMaskFile;
00045
00046 };
00047 #endif