KaliVeda
Toolkit for HIC analysis
KVDataSetAnalyser.h
1 
4 #ifndef __KVDATASETANALYSER_H
5 #define __KVDATASETANALYSER_H
6 
7 #include "KVDataAnalyser.h"
8 #include "KVDataSet.h"
9 
18 private:
24 
29 
30 protected:
32  {
33  fRun = r;
34  fSystem = r->GetSystem();
35  }
36  virtual KVNumberList PrintAvailableRuns(KVString& datatype);
37  virtual void set_dataset_pointer(KVDataSet* ds);
38  virtual void set_dataset_name(const Char_t* name);
40  {
41  fDataSet = ds;
42  }
43  virtual Bool_t PreSubmitCheck();
44  virtual void PostRunReset();
45 
47  {
48  return fChoozDataSet || IsChooseTask();
49  }
51  {
52  return fChoozSystem || fChoozRuns;
53  }
54  void ChooseWhatToAnalyse();
55  void ChooseWhatToDo();
57  virtual void set_up_analyser_for_task(KVDataAnalyser* the_analyser);
58 
59 public:
60  TString SystemBatchName() const;
62  virtual ~KVDataSetAnalyser();
63 
64  void ChooseDataSet();
65  void ChooseDataType();
66  virtual void ChooseAnalysisTask();
67  void ChooseSystem(const Char_t* data_type = "");
68  void ChooseRuns(KVDBSystem* system = nullptr, const Char_t* data_type = "");
69  void Reset();
70 
71  const KVDBSystem* GetSystem() const
72  {
73  return fSystem;
74  }
75  const KVNumberList& GetRunList() const
76  {
77  return fRunList;
78  }
80  {
81  return fRunList.GetNValues();
82  }
84  {
85  return fFullRunList;
86  }
87  const KVDataSet* GetDataSet() const
88  {
89  return fDataSet;
90  }
92  {
94  }
95  void SetDataSet(const Char_t* name)
96  {
98  }
99  void SetSystem(KVDBSystem* syst);
100  void SetRuns(const KVNumberList& nl, Bool_t check = kTRUE);
101  void SetFullRunList(const KVNumberList& nl)
102  {
103  fFullRunList = nl;
104  }
105 
107  {
108  fRunList.Clear();
109  }
111  void SetChooseDataSet(Bool_t yes = kTRUE)
112  {
113  fChoozDataSet = yes;
114  }
116  {
117  return fChoozDataSet;
118  }
119  void SetChooseTask(Bool_t yes = kTRUE)
120  {
121  fChoozTask = yes;
122  }
124  {
125  return fChoozTask;
126  }
127  void SetChooseSystem(Bool_t yes = kTRUE)
128  {
129  fChoozSystem = yes;
130  }
132  {
133  return fChoozSystem;
134  }
135  void SetChooseRuns(Bool_t yes = kTRUE)
136  {
137  fChoozRuns = yes;
138  }
140  {
141  return fChoozRuns;
142  }
143  void WriteBatchEnvFile(const TString& jobname, Bool_t save = kTRUE);
144  Bool_t ReadBatchEnvFile(const TString& filename);
145  TString ExpandAutoBatchName(const Char_t* format) const;
146  virtual void AddJobDescriptionList(TList*);
149 
150  const KV2Body* GetKinematics() const;
152  {
153  return fSystem;
154  }
156  {
157  return fRun;
158  }
159 
160  ClassDef(KVDataSetAnalyser, 1) //Analysis of data in datasets
161 };
162 
163 #endif
int Int_t
ROOT::R::TRInterface & r
bool Bool_t
char Char_t
#define ClassDef(name, id)
char name[80]
Relativistic binary kinematics calculator.
Definition: KV2Body.h:166
Description of an experimental run in database ,,.
Definition: KVDBRun.h:36
Database class used to store information on different colliding systems studied during an experiment....
Definition: KVDBSystem.h:52
Manager class which sets up and runs data analysis tasks.
Pilots user analysis of experimental data.
void SetFullRunList(const KVNumberList &nl)
void SetCurrentRun(KVDBRun *r)
Bool_t fChoozDataSet
set to kTRUE when user wants to choose a dataset
Bool_t IsChooseTask() const
Bool_t fChoozRuns
set to kTRUE when user wants to choose runs
Bool_t IsChooseRuns() const
virtual Bool_t PreSubmitCheck()
void SetDataSet(KVDataSet *ds)
KVDBRun * GetAnalysedRun() const
virtual void ChooseAnalysisTask()
Int_t GetNumberOfFilesToAnalyse() const
virtual KVNumberList PrintAvailableRuns(KVString &datatype)
virtual void set_up_analyser_for_task(KVDataAnalyser *the_analyser)
void ChooseRuns(KVDBSystem *system=nullptr, const Char_t *data_type="")
Bool_t ReadBatchEnvFile(const TString &filename)
Bool_t fChoozTask
set to kTRUE when user wants to choose analysis task
void SetRuns(const KVNumberList &nl, Bool_t check=kTRUE)
void SetDataSet(const Char_t *name)
void WriteBatchEnvFile(const TString &jobname, Bool_t save=kTRUE)
void ChooseSystem(const Char_t *data_type="")
Bool_t NeedToChooseWhatToAnalyse() const
KVString GetRootDirectoryOfDataToAnalyse() const
Returns path to data to be analysed.
void SetChooseSystem(Bool_t yes=kTRUE)
const KVDataSet * GetDataSet() const
virtual ~KVDataSetAnalyser()
Destructor.
void SetChooseRuns(Bool_t yes=kTRUE)
Bool_t NeedToChooseWhatToDo() const
KVDBRun * fRun
currently analysed run
const KV2Body * GetKinematics() const
Int_t GetRunNumberFromFileName(const Char_t *)
Get the run number from the filename.
void SetSystem(KVDBSystem *syst)
Set the System used in the analysis.
KVNumberList fRunList
list of runs to analyse
KVDataSetAnalyser()
Default constructor.
const Char_t * GetRecognisedAutoBatchNameKeywords() const
virtual void AddJobDescriptionList(TList *)
KVDBSystem * GetAnalysedSystem() const
virtual void set_dataset_name(const Char_t *name)
Bool_t IsChooseDataSet() const
virtual void set_dataset_pointer(KVDataSet *ds)
KVDataSet * fDataSet
dataset chosen by user
const KVNumberList & GetFullRunList() const
KVNumberList fFullRunList
list of all runs for the analysis task
virtual void PostRunReset()
Called at end of Run() after execution of analysis task.
KVDBSystem * fSystem
system chosen by user
const KVNumberList & GetRunList() const
Bool_t IsChooseSystem() const
void SetChooseDataSet(Bool_t yes=kTRUE)
void SetChooseTask(Bool_t yes=kTRUE)
TString ExpandAutoBatchName(const Char_t *format) const
const KVDBSystem * GetSystem() const
void _set_dataset_pointer(KVDataSet *ds)
Bool_t fChoozSystem
set to kTRUE when user wants to choose a system
TString SystemBatchName() const
Manage an experimental dataset corresponding to a given experiment or campaign.
Definition: KVDataSet.h:35
Strings used to represent a set of ranges of values.
Definition: KVNumberList.h:85
Int_t GetNValues() const
void Clear(Option_t *="")
Empty number list, reset it to initial state.
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:73