4 #ifndef __KVRAWDATAANALYSER_H
5 #define __KVRAWDATAANALYSER_H
7 #include "KVDataSetAnalyser.h"
8 #include "KVDataAnalysisTreeHistoHandler.h"
9 #include "KVTreeVectorBranchHandler.h"
10 #include "KVHashList.h"
11 #include "KVRawDataReader.h"
13 #include "KVRawDataPatchList.h"
14 #include <KVUserAnalysisOptionList.h>
47 TFile* fTreeFile =
nullptr;
57 void AbortDuringRunProcessing();
59 void add_histo(
TH1* histo)
67 tree->SetDirectory(fTreeFile);
87 return TotalEntriesToRead;
134 return fRunNumber.
run();
161 static void Make(
const Char_t* kvsname =
"MyOwnRawDataAnalyser");
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
char * Form(const char *fmt,...)
A single raw data file associated with an experimental run ,,.
Description of an experimental run in database ,,.
virtual const KVBatchSystem * GetBatchSystem()
static Bool_t IsRunningBatchAnalysis()
Methods to facilitate creation and use of histograms and TTrees in user analysis.
const KVHashList * GetTreeList() const
GetTreeList.
const KVHashList * GetHistoList() const
Pilots user analysis of experimental data.
List of hit groups in a multidetector array.
const KVDBRunFile & GetDBRunFile(const run_index_t &r) const
Abstract base class for user analysis of raw data.
virtual Bool_t Analysis()=0
void SubmitTask() override
virtual void SaveHistos(const Char_t *filename="", Option_t *option="recreate", Bool_t onlyfilled=kFALSE)
KVRawDataAnalyser()
Default constructor.
Bool_t IsOptGiven(const Char_t *option)
virtual void EndAnalysis()=0
Long64_t GetEventNumber() const
Int_t GetRunNumber() const
KVDBRun * GetCurrentRun() const
void SetJobOutputFileName(const TString &filename)
void UnsetOpt(const Char_t *opt)
virtual ~KVRawDataAnalyser()
Destructor.
static void Make(const Char_t *kvsname="MyOwnRawDataAnalyser")
Automatic generation of derived class for raw data analysis.
virtual void InitAnalysis()=0
void CalculateTotalEventsToRead()
loop over runs and calculate total events
const KVRawDataReader & GetRunFileReader() const
TString GetOpt(const Char_t *option) const
Long64_t GetTotalEntriesToRead() const override
const run_index_t & GetRunIndexNumber() const
KVDBRunFile * GetCurrentRunFile() const
void SetOpt(const Char_t *option, const Char_t *value)
List of corrections to be applied to raw data.
Abstract base class for reading raw (DAQ) data.
void Add(TObject *obj) override
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Facilitate use of std::vector branches in data analysis.
Handle list of options and input parameters for user analyis .
void SetOpt(const Char_t *option, const Char_t *value)
TString GetOpt(const Char_t *opt) const
Bool_t IsOptGiven(const Char_t *opt)
void UnsetOpt(const Char_t *opt)
Specifies a runfile according to run number and file index ,.