KaliVeda
Toolkit for HIC analysis
KVEventReconstructor.h
1 #ifndef __KVEVENTRECONSTRUCTOR_H
2 #define __KVEVENTRECONSTRUCTOR_H
3 
4 #include <vector>
5 #include "KVBase.h"
6 #include "KVDetectorEvent.h"
7 #include "KVMultiDetArray.h"
8 #include "KVReconstructedEvent.h"
9 
33 class KVEventReconstructor : public KVBase {
34 
35 private:
40  std::vector<int> fHitGroups;
42 
43 protected:
45  {
46  return fArray;
47  }
50  {
51  return &fGroupReconstructor;
52  }
54  {
55  return fNGrpRecon;
56  }
58  {
59  return fHitGroups[i];
60  }
61 
62 public:
64 
65  void Copy(TObject& obj) const override;
66 
67  virtual void ReconstructEvent(const TSeqCollection* = nullptr);
68 
70  {
71  return fEvent;
72  }
74  {
76  GetEvent()->SetNumber(en);
79  while((gr=(KVGroupReconstructor*)it()))
80  gr->SetEventNumber(en);
81  }
83  {
85  return &fEvent;
86  }
88  {
89  return (KVGroupReconstructor*)fGroupReconstructor[group_number];
90  }
92  {
96  }
97 
98  ClassDefOverride(KVEventReconstructor, 0) //Base class for handling event reconstruction
99 };
100 
101 #endif
int Int_t
unsigned int UInt_t
bool Bool_t
#define ClassDefOverride(name, id)
Base class for KaliVeda framework.
Definition: KVBase.h:139
virtual void SetNumber(UInt_t num)
Definition: KVBase.h:215
List of hit groups in a multidetector array.
Base class for event reconstruction from array data.
KVDetectorEvent detev
list of hit groups in event
KVEventReconstructor(KVMultiDetArray *, KVReconstructedEvent *, Bool_t=kFALSE)
KVMultiDetArray * GetArray()
KVReconstructedEvent * fEvent
The reconstructed event.
void Copy(TObject &obj) const override
TObjArray fGroupReconstructor
array of group reconstructors
KVMultiDetArray * fArray
Array for which events are to be reconstructed.
Int_t get_group_index_for_current_event_reconstructor(Int_t i) const
Int_t fNGrpRecon
number of group reconstructors for current event
KVReconstructedEvent * GetEvent()
Int_t get_number_reconstructors_current_event() const
TObjArray * GetReconstructors()
virtual void ReconstructEvent(const TSeqCollection *=nullptr)
std::vector< int > fHitGroups
group indices in current event
KVGroupReconstructor * GetReconstructor(int group_number)
void SetEventNumber(UInt_t en)
KVGroupReconstructor * GetGroupReconstructor(int i) const
Base class for particle reconstruction in one group of a detector array.
Base class for describing the geometry of a detector array.
Event containing KVReconstructedNucleus nuclei reconstructed from hits in detectors.
TGraphErrors * gr