KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVDataSetAnalyser.h
Go to the documentation of this file.
1 
4 #ifndef __KVDATASETANALYSER_H
5 #define __KVDATASETANALYSER_H
6 
7 #include "KVDataAnalyser.h"
8 #include "KVDataSet.h"
9 
17 private:
23 
28 
29 protected:
31  {
32  fRun = r;
33  fSystem = r->GetSystem();
34  }
35  virtual KVNumberList PrintAvailableRuns(KVString& datatype);
36  virtual void set_dataset_pointer(KVDataSet* ds);
37  virtual void set_dataset_name(const Char_t* name);
39  {
40  fDataSet = ds;
41  }
42  virtual Bool_t PreSubmitCheck();
43  virtual void PostRunReset();
44 
46  {
47  return fChoozDataSet || IsChooseTask();
48  }
50  {
51  return fChoozSystem || fChoozRuns;
52  }
53  void ChooseWhatToAnalyse();
54  void ChooseWhatToDo();
56  virtual void set_up_analyser_for_task(KVDataAnalyser* the_analyser);
57 
58 public:
59  TString SystemBatchName() const;
61  virtual ~KVDataSetAnalyser();
62 
63  void ChooseDataSet();
64  void ChooseDataType();
65  virtual void ChooseAnalysisTask();
66  void ChooseSystem(const Char_t* data_type = "");
67  void ChooseRuns(KVDBSystem* system = nullptr, const Char_t* data_type = "");
68  void Reset();
69 
70  const KVDBSystem* GetSystem() const
71  {
72  return fSystem;
73  }
74  const KVNumberList& GetRunList() const
75  {
76  return fRunList;
77  }
79  {
80  return fRunList.GetNValues();
81  }
83  {
84  return fFullRunList;
85  }
86  const KVDataSet* GetDataSet() const
87  {
88  return fDataSet;
89  }
91  {
93  }
94  void SetDataSet(const Char_t* name)
95  {
96  set_dataset_name(name);
97  }
98  void SetSystem(KVDBSystem* syst);
99  void SetRuns(const KVNumberList& nl, Bool_t check = kTRUE);
100  void SetFullRunList(const KVNumberList& nl)
101  {
102  fFullRunList = nl;
103  }
104 
106  {
107  fRunList.Clear();
108  }
110  void SetChooseDataSet(Bool_t yes = kTRUE)
111  {
112  fChoozDataSet = yes;
113  }
115  {
116  return fChoozDataSet;
117  }
118  void SetChooseTask(Bool_t yes = kTRUE)
119  {
120  fChoozTask = yes;
121  }
123  {
124  return fChoozTask;
125  }
126  void SetChooseSystem(Bool_t yes = kTRUE)
127  {
128  fChoozSystem = yes;
129  }
131  {
132  return fChoozSystem;
133  }
134  void SetChooseRuns(Bool_t yes = kTRUE)
135  {
136  fChoozRuns = yes;
137  }
139  {
140  return fChoozRuns;
141  }
142  void WriteBatchEnvFile(const Char_t* jobname, Bool_t save = kTRUE);
143  Bool_t ReadBatchEnvFile(const Char_t* filename);
144  TString ExpandAutoBatchName(const Char_t* format) const;
145  virtual void AddJobDescriptionList(TList*);
148 
149  const KV2Body* GetKinematics() const;
151  {
152  return fSystem;
153  }
155  {
156  return fRun;
157  }
158 
159  ClassDef(KVDataSetAnalyser, 1) //Analysis of data in datasets
160 };
161 
162 #endif
int Int_t
ROOT::R::TRInterface & r
char Char_t
bool Bool_t
#define ClassDef(name, id)
Relativistic binary kinematics calculator.
Definition: KV2Body.h:165
Description of an experimental run in database ,.
Definition: KVDBRun.h:35
Database class used to store information on different colliding systems studied during an experiment.
Definition: KVDBSystem.h:51
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
void WriteBatchEnvFile(const Char_t *jobname, Bool_t save=kTRUE)
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 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 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
Return pointer to kinematics of analysed system if defined.
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.
void ChooseWhatToAnalyse()
TO IMPLEMENT ?
KVDBSystem * fSystem
system chosen by user
const KVNumberList & GetRunList() const
Bool_t ReadBatchEnvFile(const Char_t *filename)
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
void ChooseWhatToDo()
TO IMPLEMENT ?
Manage an experimental dataset corresponding to a given experiment or campaign.
Definition: KVDataSet.h:207
Strings used to represent a set of ranges of values.
Definition: KVNumberList.h:83
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:72