22 mTag=mPedFile=mMaskFile=
"EMPTY";
29 Bool_t L2DbTime::valid( Int_t mydate, Int_t mytime )
32 Bool_t inRange = mydate >= mDateStart && mydate <= mDateFinish;
33 if ( mydate==mDateStart ) inRange &= mytime >= mTimeStart;
34 if ( mydate==mDateFinish ) inRange &= mytime < mTimeFinish;
39 Bool_t L2DbTime::eof()
41 return mTag.Contains(
"EndOfFile") || mTag.Contains(
"EOF");
44 Bool_t L2DbTime::comment()
46 return mTag.Contains(
"#");
49 std::ifstream &L2DbTime::read( std::ifstream &in )
51 Char_t buf1[128], buf2[128], buf3[128];
53 if ( in.eof() )
return in;
55 in >> buf1; mTag=buf1;
56 if ( !TString(mTag).Contains(
":") )
goto READ;
61 in >> buf2; mPedFile=buf2;
62 in >> buf3; mMaskFile=buf3;
67 void L2DbTime::print()
69 std::cout << Form(
" L2DbTime::=%s=\t%7i.%i\t%7i.%i\t%s\t%s",mTag.Data(),mDateStart,mTimeStart,mDateFinish,mTimeFinish,mPedFile.Data(),mMaskFile.Data()) << std::endl;