KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVDataQualityAuditSelector.cpp
1#include "KVDataQualityAuditSelector.h"
2#include "KVDataSet.h"
3
5
6
7
9
10void KVDataQualityAuditSelector::InitRun(void)
11{
12 // Create audit objects if not already done
13 auto sys = gDataAnalyser->GetAnalysedSystem();
14 if (!audit_reac) audit_reac = ::new KVDataQualityAudit(sys->GetBatchName(), sys->GetName());
15 if (!audit_sys) audit_sys = ::new KVDataQualityAudit(sys->GetBatchNameWithoutEnergy(), sys->GetReactionNameWithoutEnergy());
16 if (!audit_ds) audit_ds = ::new KVDataQualityAudit(gDataSet->GetName(), gDataSet->GetTitle());
17}
18
19
20
22
33
34
35
37
39{
41 if (gDataAnalyser->GetBatchSystem())
42 filename.Form("%s.root", gDataAnalyser->GetBatchSystem()->GetJobName());
43 else
44 filename = "DataQualityAudit.root";
45 TFile output(filename, "recreate");
48 audit_ds->Write();
49 output.Write();
50 output.Close();
51}
52
53
54
bool Bool_t
constexpr Bool_t kTRUE
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
virtual const Char_t * GetJobName() const
virtual const KVBatchSystem * GetBatchSystem()
virtual KVDBSystem * GetAnalysedSystem() const
Dedicated analysis class for preparing data quality audits.
Audit of experimental data identification and calibrations.
void Add(const KVReconstructedNucleus &N)
Add this reconstructed nucleus to the audit.
void AddHisto(TH1 *histo)
KVReconstructedEvent * GetEvent() const
Wrapper class for iterating over "OK" nuclei in KVReconstructedEvent accessed through base pointer or...
Int_t Write(const char *name=nullptr, Int_t opt=0, Int_t bufsiz=0) const override
void Close(Option_t *option="") override
const char * GetName() const override
const char * GetTitle() const override
virtual Int_t Write(const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
ClassImp(TPyArg)