KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVINDRADSTReader.h
Go to the documentation of this file.
1 #ifndef __KVINDRADSTReader_H
2 #define __KVINDRADSTReader_H
3 
4 #include "KVDataSetAnalyser.h"
5 #include "KVDataSet.h"
6 
13 
14 protected:
15 
17 
21 
23 
25 
27  {
28  fCampNumber = -1;
29  KVString snom = gDataSet->GetName();
30  KVNumberList nl = "1 2 4";
31  nl.Begin();
32  while (!nl.End()) {
33  Int_t cc = nl.Next();
34  if (snom.EndsWith(Form("%d", cc))) {
35  fCampNumber = cc;
36  break;
37  }
38  }
39  Info("SetCampagneNumber", "%s -> Campagne numero %d", gDataSet->GetName(), fCampNumber);
40  }
41 
42  void DefineSHELLVariables();
43 
44 public:
45 
47  virtual ~KVINDRADSTReader() {}
48 
49  virtual void InitRun();
50  virtual void ProcessRun();
51  virtual void EndRun();
52 
53  virtual void SubmitTask();
54 
55 
56  ClassDef(KVINDRADSTReader, 1) //Read INDRA DST files and fill ROOT TTree
57 };
58 
59 #endif
int Int_t
KVDataSet * gDataSet
Definition: KVDataSet.cpp:29
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:83
Bool_t End(void) const
Definition: KVNumberList.h:197
void Begin(void) const
Int_t Next(void) const
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:72
virtual const char * GetName() const
virtual void Info(const char *method, const char *msgfmt,...) const
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
const long double cc
volumes
Definition: KVUnits.h:83