Class Reference for E1039 Core & Analysis Software
RunList.h
Go to the documentation of this file.
1 #ifndef _RUN_LIST__H_
2 #define _RUN_LIST__H_
3 #include <string>
4 #include <vector>
5 class TFile;
6 
8 class RunList {
9  std::string m_env;
10  std::string m_ds;
11  int m_verb;
12  TFile* m_file;
13  std::vector<int> m_list_run;
14 
15  public:
16  RunList(const std::string ds);
17  virtual ~RunList();
18 
20  void SelectEnv(const std::string env) { m_env = env; }
21 
23  int GetN() const { return m_list_run.size(); }
24 
26  int GetRun(const int idx) { return m_list_run[idx]; }
27 
29  int OpenRunFile(const std::string dir_base, const int index, int& run_id, TFile*& file);
30 
31  void Verbosity(const int verb) { m_verb = verb; }
32  int Verbosity() const { return m_verb; }
33 };
34 
35 #endif // _RUN_LIST__H_
Helper class to handle the run list in ROOT macro.
Definition: RunList.h:8
int GetRun(const int idx)
Get the run ID at idx.
Definition: RunList.h:26
int OpenRunFile(const std::string dir_base, const int index, int &run_id, TFile *&file)
Open the input file for the run at index under dir_base.
Definition: RunList.cc:29
int Verbosity() const
Get the verbosity.
Definition: RunList.h:32
int GetN() const
Get the number of runs contained.
Definition: RunList.h:23
void SelectEnv(const std::string env)
Select the environment.
Definition: RunList.h:20
RunList(const std::string ds)
Definition: RunList.cc:8
void Verbosity(const int verb)
Set the verbosity.
Definition: RunList.h:31
virtual ~RunList()
Definition: RunList.cc:24