KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVFAZIASelector.h
Go to the documentation of this file.
1 
4 #ifndef __KVFAZIASelector_H
5 #define __KVFAZIASelector_H
6 
7 #include "KVEventSelector.h"
8 #include "KVFAZIARawEvent.h"
9 
17 
18 protected:
19 
21 
25 
29 
30  void SetAutomaticManagementOfOutputs(Bool_t automatic = kTRUE);
33 
34 public:
36  {
37  rawdatabranchname = "rawevent";
38  SetBranchName("FAZIAReconEvent");
39  SetEventsReadInterval(10000);
41  };
42 
43  virtual ~KVFAZIASelector() {};
44 
45  virtual void SlaveBegin(TTree* tree);
46  virtual void Init(TTree* tree);
47  virtual Bool_t Notify();
48  virtual Int_t GetEntry(Long64_t entry, Int_t getall = 0)
49  {
50  if (RawEvent) RawEvent->Clear();
51  Int_t res = fChain ? fChain->GetTree()->GetEntry(entry, getall) : 0;
52  if (NeedToReadRawData() && RawEvent)
54  return res;
55  }
57  {
58  return fCurrentRun;
59  }
60 
62  {
63  return fRawData;
64  }
66  {
67  return fRawData = need;
68  }
69  void LinkRawData();
71 
72  virtual void ParseOptions();
73 
74  static void Make(const Char_t* kvsname = "MyOwnFAZIASelector");
75  static void CheckListOfWellEndedRuns(const Char_t* kvsname, const Char_t* dsname);
76  static void MergeListOfEndedRuns(const Char_t* kvsname, const Char_t* dsname);
77  static void GetMissingRunsListing(const Char_t* kvsname, const Char_t* dsname);
78  static void CheckBatchOutputFiles(const Char_t* kvsname, Bool_t eraseafter = kFALSE);
79 
80  virtual void CheckEndOfRun();
81 
82  ClassDef(KVFAZIASelector, 1) //selector to analyze FAZIA reconstructed data
83 };
84 
85 
86 #endif
int Int_t
char Char_t
const Bool_t kFALSE
bool Bool_t
#define ClassDef(name, id)
General purpose analysis class for TTree containing KVEvent objects.
TTree * fChain
pointer to the analyzed TTree or TChain
void SetEventsReadInterval(Long64_t N)
void SetBranchName(const Char_t *n)
Obsolete raw data class for FAZIA.
void Clear(Option_t *="")
Info("Clear","IsCalled");.
Analysis of FAZIA data.
virtual void ParseOptions()
void SetAutomaticManagementOfOutputs(Bool_t automatic=kTRUE)
TString rawdatabranchname
virtual Int_t GetEntry(Long64_t entry, Int_t getall=0)
Bool_t NeedToReadRawData() const
virtual Bool_t Notify()
virtual void CheckEndOfRun()
Testing whether EndRun() should be called.
KVFAZIARawEvent * RawEvent
static void MergeListOfEndedRuns(const Char_t *kvsname, const Char_t *dsname)
static void CheckListOfWellEndedRuns(const Char_t *kvsname, const Char_t *dsname)
virtual void Init(TTree *tree)
virtual void SlaveBegin(TTree *tree)
Bool_t SetReadingOfRawData(Bool_t need=kFALSE)
Bool_t SaveAndCloseOutputFile()
static void GetMissingRunsListing(const Char_t *kvsname, const Char_t *dsname)
Int_t GetCurrentRunNumber() const
void ConnectSignalsToDetectors()
static void CheckBatchOutputFiles(const Char_t *kvsname, Bool_t eraseafter=kFALSE)
static void Make(const Char_t *kvsname="MyOwnFAZIASelector")
Automatic generation of KVSelector-derived class for KaliVeda analysis.
virtual ~KVFAZIASelector()
virtual Int_t GetEntry(Long64_t entry, Int_t getall=0)
virtual TTree * GetTree() const
long long Long64_t