1 #ifndef _ots_DQMHistosBase_h_
2 #define _ots_DQMHistosBase_h_
13 class VisualDataManager;
20 virtual void book(
void) { ; }
21 virtual void fill(std::string& ,
22 std::map<std::string, std::string> )
26 virtual void load(std::string ) { ; }
28 void setDataManager(
VisualDataManager* dataManager) { theDataManager_ = dataManager; }
30 TObject* get(std::string name);
31 TFile* getFile(
void) {
return theFile_; }
35 bool isFileOpen(
void);
36 virtual void save(
void);
37 virtual void openFile(std::string fileName);
38 virtual void closeFile(
void);
42 virtual void setAutoSaveInterval(
unsigned int interval)
44 autoSaveInterval_ = interval;
47 TFile* theFile_ =
nullptr;
48 TDirectory* myDirectory_ =
nullptr;
49 bool autoSave_ =
true;
50 bool autoSaveInterval_ = 300;
51 time_t beginTime_ = 0;
54 VisualDataManager* theDataManager_;
void setAutoSave(bool autoSave)
Default is true.
virtual void autoSave(bool force=false)
The file will be saved if force == true or currentTime - beginTimeTime_ is >= autoSaveInterval_.