KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVReconRawDataAnalyser.cpp
Go to the documentation of this file.
2 #include "KVDataSet.h"
3 
4 #include <KVClassFactory.h>
5 
7 
8 
9 
11 void KVReconRawDataAnalyser::preInitAnalysis()
12 {
13  TClass* recev_cl = TClass::GetClass(GetDataSet()->GetReconstructedEventClassName());
14  fRecev = ((KVReconstructedEvent*)recev_cl->New());
15 
16  Info("preInitAnalysis", "Reconstructed event container class: %s", recev_cl->GetName());
17 }
18 
19 
20 
22 
24 {
26 }
27 
28 
29 
31 
33 {
35  fEvRecon->ReconstructEvent(gMultiDetArray->GetFiredDataParameters());
36  fEvRecon->GetEvent()->SetNumber(GetEventNumber());
37  gMultiDetArray->SetRawDataFromReconEvent(*(fEvRecon->GetEvent()->GetParameters()));
38  }
39 }
40 
41 
42 
44 
46 {
47  if (gMultiDetArray->HandledRawData()) fEvRecon->GetEvent()->Clear();
48 }
49 
50 
51 
56 
58 {
59  // the multidetector will be deleted and rebuilt at the beginning of the next run
60  // (if there is one). the reconstructed event will contain stale pointers to the old
61  // detectors etc. if we don't clear it now
62  fRecev->Clear();
63 }
64 
65 
66 
69 
71 {
72  //Automatic generation of derived class for raw data analysis
73 
74  KVClassFactory cf(kvsname, "Analysis of reconstructed raw data", "",
75  kTRUE, "ReconRawAnalysisTemplate");
76 
77  cf.GenerateCode();
78 }
79 
80 
81 
KVMultiDetArray * gMultiDetArray
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
char Char_t
const Bool_t kTRUE
Factory class for generating skeleton files for new classes.
void GenerateCode()
Generate header and implementation file for currently-defined class.
Base class for event reconstruction from array data.
virtual void Clear(Option_t *opt="")
Definition: KVEvent.cpp:200
Bool_t HandledRawData() const
virtual void SetRawDataFromReconEvent(KVNameValueList &)
const KVSeqCollection * GetFiredDataParameters() const
Long64_t GetEventNumber() const
Base class for user analysis of raw data with event reconstruction.
unique_ptr< KVEventReconstructor > fEvRecon
KVReconstructedEvent * fRecev
static void Make(const Char_t *kvsname)
Automatic generation of derived class for raw data analysis.
Physical event reconstructed from data measured with a detector array using implemented identificatio...
void * New(ENewType defConstructor=kClassNew, Bool_t quiet=kFALSE) const
static TClass * GetClass(Bool_t load=kTRUE, Bool_t silent=kFALSE)
virtual const char * GetName() const
void Info(const char *location, const char *va_(fmt),...)