KaliVeda
Toolkit for HIC analysis
KVDataQualityAuditSelector.cpp
1 #include "KVDataQualityAuditSelector.h"
2 #include "KVDataSet.h"
3 
5 
6 
7 
10 void 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 
24 {
25  for (auto& particle : ReconEventOKIterator(GetEvent())) {
26  audit_reac->Add(particle);
27  audit_sys->Add(particle);
28  audit_ds->Add(particle);
29  }
30 
31  return kTRUE;
32 }
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");
46  audit_reac->Write();
47  audit_sys->Write();
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.
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)