StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
L2DbTime.h
1 #ifndef __L2DbTime_h__
2 #define __L2DbTime_h__
3 /*
4  * \class StL2DbTime
5  *
6  */
7 
8 
9 #include "TString.h"
10 #include <iostream>
11 #include <fstream>
12 #include <vector>
13 #include <algorithm>
14 
15 class L2DbTime
16 {
17  public:
18  L2DbTime();
19  ~L2DbTime(){ /* nop */};
20  Bool_t valid( Int_t d, Int_t t );
21  Bool_t eof();
22  Bool_t comment();
23  void print();
24 
25  std::ifstream &read( std::ifstream &in );
26 
27  double getFullStartTime() { return mDateStart+mTimeStart/1.e6; }
28  double getFullFinishTime() { return mDateFinish+mTimeFinish/1.e6; }
29  TString getPedFile(){ return mPedFile; }
30  TString getMaskFile(){ return mMaskFile; }
31  TString getBuf1(){ return mPedFile; } // tmp, will clean it up later, JanB
32  TString getBuf2(){ return mMaskFile; } // tmp, will clean it up later, JanB
33  TString getTag(){ return mTag; }
34 
35  // overload << operator for read in
36  private:
37  protected:
38  TString mTag;
39  Int_t mDateStart;
40  Int_t mDateFinish;
41  Int_t mTimeStart;
42  Int_t mTimeFinish;
43  TString mPedFile;
44  TString mMaskFile;
45 
46 };
47 #endif