10 #include "KVFAZIAReconDataAnalyser.h"
11 #include "KVDataSet.h"
12 #include "KVMultiDetArray.h"
37 KVFAZIAReconDataAnalyser::~KVFAZIAReconDataAnalyser()
51 if (gDataSet != GetDataSet()) GetDataSet()->cd();
59 while (!GetRunList().
End()) {
60 fRunNumber = GetRunList().Next();
61 Info(
"SubmitTask",
"treatment of run# %d", fRunNumber);
88 if (!(
f && !
f->IsZombie())) {
89 Error(
"ProcessRun",
"file %s does not exist or is made zombie", fullPathToRunfile.
Data());
93 theTree = (
TTree*)
f->Get(
"ReconstructedEvents");
99 if (!(ffriend && !ffriend->
IsZombie())) {
100 Warning(
"ProcessRun",
"file %s does not exist or is made zombie\n Reading of raw data is not possible", fullPathToRunfile.
Data());
103 theTree->AddFriend(
"FAZIA", ffriend);
109 if (GetUserClassOptions() !=
"") {
112 option += GetUserClassOptions();
115 Info(
"SubmitTask",
"Beginning TTree::Process... Option=%s",
option.Data());
116 if (GetNbEventToRead()) {
117 theTree->Process(GetUserClass(),
option.Data(), GetNbEventToRead());
120 theTree->Process(GetUserClass(),
option.Data());
123 if (ffriend && ffriend->
IsOpen())
248 Info(
"preInitAnalysis",
"Appel");
249 if (gDataSet && !gMultiDetArray) {
250 Info(
"preInitAnalysis",
"Building of FAZIA array");
271 Info(
"preInitRun",
"Appel");
FileType * OpenRunfile(const Char_t *type, Int_t run)
TString GetFullPathToRunfile(const Char_t *type, Int_t run) const
Pilot analysis of reconstructed FAZIA data.
virtual void preInitRun()
void SubmitTask()
Run the interactive analysis.
virtual void preInitAnalysis()
virtual void SetParameters(UInt_t n, Bool_t physics_parameters_only=kFALSE)
static KVMultiDetArray * MakeMultiDetector(const Char_t *dataset_name, Int_t run=-1, TString classname="KVMultiDetArray")
Handle list of options and input parameters for user analyis .
void ParseOptions(const KVString &optlist)
Bool_t IsOptGiven(const Char_t *opt)
virtual Bool_t IsOpen() const
void Close(Option_t *option="") override
const char * GetName() const override
R__ALWAYS_INLINE Bool_t IsZombie() const
const char * Data() const
BinData::ErrorType GetDataType(const TGraph *gr, DataOptions &fitOpt)