KaliVeda
Toolkit for HIC analysis
KVINDRADSTReader.h
1 #ifndef __KVINDRADSTReader_H
2 #define __KVINDRADSTReader_H
3 
4 #include "KVDataSetAnalyser.h"
5 #include "KVDataSet.h"
6 
14 
15 protected:
16 
18 
22 
24 
26 
28  {
29  fCampNumber = -1;
30  KVString snom = gDataSet->GetName();
31  KVNumberList nl = "1 2 4";
32  nl.Begin();
33  while (!nl.End()) {
34  Int_t cc = nl.Next();
35  if (snom.EndsWith(Form("%d", cc))) {
36  fCampNumber = cc;
37  break;
38  }
39  }
40  Info("SetCampagneNumber", "%s -> Campagne numero %d", gDataSet->GetName(), fCampNumber);
41  }
42 
43  void DefineSHELLVariables();
44 
45 public:
46 
48  virtual ~KVINDRADSTReader() {}
49 
50  virtual void InitRun();
51  virtual void ProcessRun();
52  virtual void EndRun();
53 
54  virtual void SubmitTask();
55 
56 
57  ClassDef(KVINDRADSTReader, 1) //Read INDRA DST files and fill ROOT TTree
58 };
59 
60 #endif
int Int_t
bool Bool_t
#define ClassDef(name, id)
char * Form(const char *fmt,...)
Pilots user analysis of experimental data.
Read INDRA DST file and fill a TTree.
virtual void SubmitTask()
virtual void InitRun()
TTree * data_tree
tree for writing events
virtual ~KVINDRADSTReader()
virtual void EndRun()
Int_t fRunNumber
run number of current file
Bool_t camp4
set to kTRUE when reading 4th campaign: => ring1 is Si-CsI
virtual void ProcessRun()
Bool_t camp2
set to kTRUE when reading 2nd campaign: => phoswich code is 4, not 2
Strings used to represent a set of ranges of values.
Definition: KVNumberList.h:85
Bool_t End(void) const
Definition: KVNumberList.h:199
void Begin(void) const
Int_t Next(void) const
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:73
const char * GetName() const override
virtual void Info(const char *method, const char *msgfmt,...) const
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const