KaliVeda
Toolkit for HIC analysis
|
Abstract base class for user analysis of raw data.
Definition at line 27 of file KVRawDataAnalyser.h.
#include <KVRawDataAnalyser.h>
Static Public Member Functions | |
static void | Make (const Char_t *kvsname="MyOwnRawDataAnalyser") |
Automatic generation of derived class for raw data analysis. | |
Static Public Member Functions inherited from KVDataAnalyser | |
static Bool_t | AbortProcessingLoop () |
static KVDataAnalyser * | GetAnalyser (const Char_t *plugin) |
static Bool_t | IsRunningBatchAnalysis () |
static void | RunAnalyser (const Char_t *plugin="") |
static void | SetAbortProcessingLoop (Bool_t now=kTRUE) |
Static Public Member Functions inherited from TObject | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static Longptr_t | GetDtorOnly () |
static Bool_t | GetObjectStat () |
static void | SetDtorOnly (void *obj) |
static void | SetObjectStat (Bool_t stat) |
Private Member Functions | |
void | AbortDuringRunProcessing () |
Method called to abort analysis during processing of a run. | |
void | FillTH1 (TH1 *h1, Double_t one, Double_t two) |
void | FillTH2 (TH2 *h2, Double_t one, Double_t two, Double_t three) |
void | FillTH3 (TH3 *h3, Double_t one, Double_t two, Double_t three, Double_t four) |
void | FillTProfile (TProfile *h1, Double_t one, Double_t two, Double_t three) |
void | FillTProfile2D (TProfile2D *h2, Double_t one, Double_t two, Double_t three, Double_t four) |
void | ProcessRun () |
void | SetCombinedOutputFile (const KVString &filename) |
Private Attributes | |
KVString | fCombinedOutputFile |
optional name for single results file with trees and histos | |
KVDBRun * | fCurrentRun |
poiner to current run | |
Long64_t | fEventNumber |
event number in current run | |
KVHashList | fHistoList |
list of histograms of user analysis | |
KVUserAnalysisOptionList | fOptionList |
list of options set by user for analysis | |
KVRawDataReader * | fRunFile |
currently analysed run file | |
Int_t | fRunNumber |
run number of current file | |
TFile * | fTreeFile |
KVHashList | fTreeList |
list of trees of user analysis | |
Long64_t | TotalEntriesToRead |
Additional Inherited Members | |
Public Types inherited from KVDataAnalyser | |
enum | EProofMode { None , Lite , Proof } |
Public Types inherited from TObject | |
enum | EDeprecatedStatusBits |
enum | EStatusBits |
Public Attributes inherited from TObject | |
kBitMask | |
kCanDelete | |
kCannotPick | |
kHasUUID | |
kInconsistent | |
kInvalidObject | |
kIsOnHeap | |
kIsReferenced | |
kMustCleanup | |
kNoContextMenu | |
kNotDeleted | |
kObjInCanvas | |
kOverwrite | |
kSingleKey | |
kWriteDelete | |
kZombie | |
Protected Member Functions inherited from TObject | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
void | MakeZombie () |
Protected Attributes inherited from TObject | |
kOnlyPrepStep | |
KVRawDataAnalyser::KVRawDataAnalyser | ( | ) |
Default constructor.
Definition at line 21 of file KVRawDataAnalyser.cpp.
|
virtual |
Destructor.
Definition at line 34 of file KVRawDataAnalyser.cpp.
|
private |
Method called to abort analysis during processing of a run.
Definition at line 469 of file KVRawDataAnalyser.cpp.
Definition at line 127 of file KVRawDataAnalyser.h.
Add a user analysis results TTree to list which will be automatically written to disk at end of analysis. User must call CreateTreeFile(const Char_t*) before calling this method
Definition at line 256 of file KVRawDataAnalyser.cpp.
Implemented in KVRawDataReconstructor.
void KVRawDataAnalyser::CalculateTotalEventsToRead | ( | ) |
loop over runs and calculate total events
Definition at line 238 of file KVRawDataAnalyser.cpp.
This method must be called before creating any user TTree in InitAnalysis(). If no filename is given, default name="TreeFileFrom[name of analysis class].root"
Definition at line 429 of file KVRawDataAnalyser.cpp.
Implemented in KVRawDataReconstructor.
Implemented in KVRawDataReconstructor.
void KVRawDataAnalyser::FillHisto | ( | const Char_t * | sname, |
const Char_t * | label, | ||
Double_t | weight = 1 |
||
) |
Fill 1D histogram with named bins.
Definition at line 311 of file KVRawDataAnalyser.cpp.
void KVRawDataAnalyser::FillHisto | ( | const Char_t * | histo_name, |
Double_t | one, | ||
Double_t | two = 1 , |
||
Double_t | three = 1 , |
||
Double_t | four = 1 |
||
) |
Find in the list, if there is an histogram named "histo_name" If not print an error message If yes redirect to the right method according to its closest mother class to fill it
Definition at line 279 of file KVRawDataAnalyser.cpp.
Definition at line 47 of file KVRawDataAnalyser.h.
|
inlineprivate |
Definition at line 55 of file KVRawDataAnalyser.h.
|
inlineprivate |
Definition at line 63 of file KVRawDataAnalyser.h.
|
inlineprivate |
Definition at line 51 of file KVRawDataAnalyser.h.
|
inlineprivate |
Definition at line 59 of file KVRawDataAnalyser.h.
Filltree method, the tree named tree_name has to be declared with AddTTree(TTree*) method
if no sname="", all trees in the list is filled
Definition at line 332 of file KVRawDataAnalyser.cpp.
|
inline |
Definition at line 110 of file KVRawDataAnalyser.h.
|
inline |
Definition at line 90 of file KVRawDataAnalyser.h.
|
inline |
Definition at line 106 of file KVRawDataAnalyser.h.
Definition at line 146 of file KVRawDataAnalyser.h.
|
inline |
Definition at line 137 of file KVRawDataAnalyser.h.
Definition at line 185 of file KVRawDataAnalyser.h.
|
inline |
Definition at line 120 of file KVRawDataAnalyser.h.
|
inline |
Definition at line 102 of file KVRawDataAnalyser.h.
|
inlinevirtual |
Reimplemented from KVDataAnalyser.
Definition at line 82 of file KVRawDataAnalyser.h.
Definition at line 150 of file KVRawDataAnalyser.h.
|
inline |
Definition at line 141 of file KVRawDataAnalyser.h.
Implemented in KVRawDataReconstructor.
Implemented in KVRawDataReconstructor.
Definition at line 181 of file KVRawDataAnalyser.h.
Automatic generation of derived class for raw data analysis.
Definition at line 453 of file KVRawDataAnalyser.cpp.
|
private |
Perform treatment of a given run Before processing each run, after opening the associated file, user's InitRun() method is called. After each run, user's EndRun() is called. For each event of each run, user's Analysis() method is called just after calling gMultiDetArray->HandleRawDataEvent(fRunfile). In the Analysis() method the user can test gMultiDetArray->HandledRawData() to know if some pertinent data was found in the event or not.
For further customisation, the pre/post-methods are called just before and just after each of these methods (preInitRun(), postAnalysis(), etc. etc.) Open data file
Definition at line 54 of file KVRawDataAnalyser.cpp.
|
virtual |
Write in file all histograms declared with AddHisto(TH1*)
If no filename is specified, set default name : HistoFileFrom[name_of_class].root
If a filename is specified, search in gROOT->GetListOfFiles() if this file has been already opened
onlyfilled flag allow to write all (onlyfilled=kFALSE, default) or only histograms (onlyfilled=kTRUE) those have been filled
Definition at line 369 of file KVRawDataAnalyser.cpp.
Call in InitAnalysis() to set the name of the single output file containing all histograms and TTrees produced by analysis. This is equivalent to running the analysis with option CombinedOutputFile=[filename] but setting this option in InitAnalysis() will not work. Note that if this method is not called/the option is not given, histograms and TTrees will be written in separate files.
Definition at line 68 of file KVRawDataAnalyser.h.
Call in InitAnalysis() to set the name of the single output file containing all histograms and TTrees produced by analysis.
For interactive jobs or jos using PROOF, filename will be used for the ROOT file. For jobs using a batch system to execute many jobs in parallel, we use the job name with the '.root' extension.
Definition at line 156 of file KVRawDataAnalyser.h.
Definition at line 177 of file KVRawDataAnalyser.h.
|
virtual |
Perform analysis of chosen runs Before beginning the loop over the runs, the user's InitAnalysis() method is called. After completing the analysis of all runs, the user's EndAnalysis() method is called.
Further customisation of the event loop is possible by overriding the methods preInitAnalysis() postInitAnalysis() preEndAnalysis() postEndAnalysis() which are executed respectively just before and just after the methods.
Reimplemented from KVDataAnalyser.
Definition at line 157 of file KVRawDataAnalyser.cpp.
Definition at line 189 of file KVRawDataAnalyser.h.
|
private |
optional name for single results file with trees and histos
Definition at line 38 of file KVRawDataAnalyser.h.
|
private |
poiner to current run
Definition at line 36 of file KVRawDataAnalyser.h.
|
private |
event number in current run
Definition at line 32 of file KVRawDataAnalyser.h.
|
private |
list of histograms of user analysis
Definition at line 33 of file KVRawDataAnalyser.h.
|
private |
list of options set by user for analysis
Definition at line 39 of file KVRawDataAnalyser.h.
|
private |
currently analysed run file
Definition at line 30 of file KVRawDataAnalyser.h.
|
private |
run number of current file
Definition at line 31 of file KVRawDataAnalyser.h.
|
private |
Definition at line 35 of file KVRawDataAnalyser.h.
|
private |
list of trees of user analysis
Definition at line 34 of file KVRawDataAnalyser.h.
|
private |
Definition at line 37 of file KVRawDataAnalyser.h.