00001 00014 #ifndef LARUTILBASE_HH 00015 #define LARUTILBASE_HH 00016 00017 #include <map> 00018 #include <sstream> 00019 #include <TChain.h> 00020 #include <Base-TypeDef.hh> 00021 00022 #include "LArUtilException.hh" 00023 #include "LArUtilConstants.hh" 00024 #include "LArUtilConfig.hh" 00025 00026 namespace larutil { 00033 class LArUtilBase : public larlight::larlight_base{ 00034 00035 public: 00036 00038 LArUtilBase(); 00039 00041 virtual ~LArUtilBase(){}; 00042 00044 void SetFileName(const std::string filename) 00045 { _file_name = filename; } 00046 00048 void SetTreeName(const std::string treename) 00049 { _tree_name = treename; } 00050 00052 virtual bool LoadData(bool force_reload=false); 00053 00054 protected: 00055 00056 virtual bool ReadTree()=0; 00057 00058 virtual void ClearData()=0; 00059 00060 std::string _file_name; 00061 std::string _tree_name; 00062 bool _loaded; 00063 }; 00064 } 00065 00066 #endif 00067 // end of doxygen group 00068