KaliVeda
Toolkit for HIC analysis
KVSimFile.h
1 
4 #ifndef __KVSIMFILE_H
5 #define __KVSIMFILE_H
6 
7 #include "KVBase.h"
8 #include "TROOT.h"
9 
10 class KVSimDir;
11 
19 class KVSimFile : public KVBase {
20 protected:
26  Int_t fRunNumber = -1; //run number used to filter events
34 
35 public:
36  KVSimFile();
37  KVSimFile(KVSimDir* parent, const Char_t* filename, const Char_t* treeinfo, Long64_t treeEntries, const Char_t* treename, const Char_t* branchname);
38  KVSimFile(KVSimDir* parent, const Char_t* filename, const Char_t* treeinfo, Long64_t treeEntries, const Char_t* treename, const Char_t* branchname,
39  const Char_t* dataset, const Char_t* system, Int_t run_number, const Char_t* geo_type, const Char_t* orig_file, const Char_t* filt_type);
40  KVSimFile(const KVSimFile&) ;
41  ROOT_COPY_ASSIGN_OP(KVSimFile)
42  virtual ~KVSimFile();
43  void Copy(TObject&) const;
44 
46  {
47  return fFiltered;
48  }
49  Bool_t IsGemini() const
50  {
51  return fGemini;
52  }
53  void SetGemini(Bool_t yes = kTRUE)
54  {
55  fGemini = yes;
56  }
58  {
60  }
62  {
63  return fGemDecayPerEvent;
64  }
65 
67  {
69  return fSimDir;
70  };
72  {
74  return fEvents;
75  };
76  const Char_t* GetDataSet() const
77  {
79  return fDataSet;
80  };
81  const Char_t* GetSystem() const
82  {
84  return fSystem;
85  };
86  Bool_t HasSystem() const
87  {
89  return fSystem != "";
90  };
91  const Char_t* GetFilterType() const
92  {
94  return fFiltType;
95  };
96  Int_t GetRun() const
97  {
99  return fRunNumber;
100  }
101  Bool_t HasRun() const
102  {
104  return fRunNumber > 0;
105  }
106  const Char_t* GetGeometry() const
107  {
111  return fGeoType;
112  };
113  const Char_t* GetTreeName() const
114  {
116  return fTreeName;
117  };
118  const Char_t* GetBranchName() const
119  {
121  return fBranchName;
122  };
123  const Char_t* GetOriginalFile() const
124  {
126  return fOrigFile;
127  };
128 
129  void ls(Option_t* opt = "") const;
130 
131  ClassDef(KVSimFile, 1) //Handle file containing simulated or filtered simulated data
132 };
133 
134 #endif
int Int_t
bool Bool_t
char Char_t
const char Option_t
#define ClassDef(name, id)
Base class for KaliVeda framework.
Definition: KVBase.h:142
Handle directory containing simulated and/or filtered simulated data ,.
Definition: KVSimDir.h:44
Handle file containing simulated and/or filtered simulated data ,.
Definition: KVSimFile.h:19
const Char_t * GetSystem() const
Definition: KVSimFile.h:81
Int_t fRunNumber
Definition: KVSimFile.h:26
const Char_t * GetBranchName() const
Definition: KVSimFile.h:118
Bool_t fGemini
true if statistical decay calculated with Gemini++ before filter
Definition: KVSimFile.h:32
const Char_t * GetOriginalFile() const
Definition: KVSimFile.h:123
TString fSystem
name of system used to filter events
Definition: KVSimFile.h:25
Int_t fGemDecayPerEvent
number of Gemini decays performed per primary event
Definition: KVSimFile.h:33
TString fDataSet
name of dataset used to filter events
Definition: KVSimFile.h:24
TString fOrigFile
name of simulated events file filtered to generate this file
Definition: KVSimFile.h:30
Int_t GetRun() const
Definition: KVSimFile.h:96
void Copy(TObject &) const
Definition: KVSimFile.cpp:92
TString fGeoType
type of geometry used for filtering
Definition: KVSimFile.h:27
const Char_t * GetFilterType() const
Definition: KVSimFile.h:91
Bool_t fFiltered
=kTRUE for filtered (reconstructed) simulated events
Definition: KVSimFile.h:22
void ls(Option_t *opt="") const
Definition: KVSimFile.cpp:122
Bool_t IsGemini() const
Definition: KVSimFile.h:49
TString fFiltType
type of filtering used (Geo, Geo+Thresh, or Full)
Definition: KVSimFile.h:31
Bool_t HasRun() const
Definition: KVSimFile.h:101
const Char_t * GetGeometry() const
Definition: KVSimFile.h:106
virtual ~KVSimFile()
Destructor.
Definition: KVSimFile.cpp:76
void SetGemini(Bool_t yes=kTRUE)
Definition: KVSimFile.h:53
const Char_t * GetDataSet() const
Definition: KVSimFile.h:76
Long64_t fEvents
=number of events in TTree
Definition: KVSimFile.h:23
KVSimDir * fSimDir
parent directory
Definition: KVSimFile.h:21
TString fTreeName
name of TTree
Definition: KVSimFile.h:28
KVSimDir * GetSimDir() const
Definition: KVSimFile.h:66
Long64_t GetEvents() const
Definition: KVSimFile.h:71
Bool_t HasSystem() const
Definition: KVSimFile.h:86
TString fBranchName
name of branch containing events
Definition: KVSimFile.h:29
void SetGemDecayPerEvent(Int_t n)
Definition: KVSimFile.h:57
KVSimFile()
Default constructor.
Definition: KVSimFile.cpp:16
Bool_t IsFiltered() const
Definition: KVSimFile.h:45
const Char_t * GetTreeName() const
Definition: KVSimFile.h:113
Int_t GetGemDecayPerEvent() const
Definition: KVSimFile.h:61
long long Long64_t
const Int_t n