Go to the documentation of this file.00001 #ifndef FORIA_GOODRUNSLISTSWRAPPER_HH
00002 #define FORIA_GOODRUNSLISTSWRAPPER_HH
00003
00004 #include "ForIA/Event.hh"
00005
00006 #include <stdexcept>
00007 #include <iostream>
00008 #include <string>
00009
00010 namespace Root{
00011
00012 class TGoodRunsListReader;
00013 class TGoodRunsList;
00014 }
00015
00016 namespace ForIA{
00017
00018 class Event;
00019
00020 using std::string;
00021
00023
00030 class GoodRunsListsWrapper{
00031
00032 public:
00033
00039 GoodRunsListsWrapper(const string &xmlFile);
00040
00044 GoodRunsListsWrapper(): m_isEnabled(false){};
00045
00051 bool isEnabled() const{ return m_isEnabled; };
00052
00060 bool checkRun(const Event &evt)const;
00061
00071 bool checkLBN(const Event &evt)const;
00072
00073 private:
00074
00075 bool m_isEnabled;
00076
00077 Root::TGoodRunsListReader *m_reader;
00078 Root::TGoodRunsList *m_goodRunsList;
00079
00080 };
00081 }
00082
00083 #endif