KaliVeda
Toolkit for HIC analysis
KVDataQualityAuditReporting_INDRA.h
1 #pragma once
2 
3 #include "KVBase.h"
4 #include <KVDataQualityAuditReportMaker.h>
5 #include <TCanvas.h>
6 
31 
33  enum class canvas_t {
34  kLandscape,
35  kPortrait
36  };
37 
39 
41 
42  std::vector<int> markers {20, 24, 21, 25, 34, 28, 47, 46, 45, 44, 29, 30, 43, 42, 22, 26, 23, 32};
43 
44  std::pair<int, int> get_layout(size_t ntels)
45  {
46  assert(ntels <= 16);
47  if (ntels <= 8) return {4, 2};
48  else if (ntels <= 12) return {4, 3};
49  return {4, 4};
50  }
51  void draw_sidebar_legend();
52 
54  void fill_list_of_telescopes(const TString& idtype, TList& tels, int ring);
55  int get_mod_set(int nmods);
56 public:
57  KVDataQualityAuditReporting_INDRA(const TString& audit_name, const TString& ds_name)
58  : fReport{audit_name}, fAudit{fReport.GetAudit()}, dataset_name{ds_name}
59  {
62  }
63 
64  void do_report();
65  void INDRA_ring_reporting_Z(int ring, const TString& idtype);
66  void INDRA_ring_mean_A_vs_Z(int ring, const TString& idtype, int& pad, int nx, int ny);
67  void INDRA_ring_Z_threshold_vs_Z(int ring, const TString& idtype, int& pad, int nx, int ny);
68 
70 };
#define ClassDef(name, id)
Base class for KaliVeda framework.
Definition: KVBase.h:139
Produce graphs and histograms from KVDataQualityAudit.
Prepare PDF report on data quality audits for INDRA experiments.
void INDRA_ring_Z_threshold_vs_Z(int ring, const TString &idtype, int &pad, int nx, int ny)
void INDRA_ring_mean_A_vs_Z(int ring, const TString &idtype, int &pad, int nx, int ny)
void make_canvas(canvas_t style=canvas_t::kLandscape)
Make an A4-size canvas.
std::pair< int, int > get_layout(size_t ntels)
void INDRA_ring_reporting_Z(int ring, const TString &idtype)
int get_mod_set(int nmods)
24 => 4 sets of 6, 16 => 2 sets of 8, 12 => 4 sets of 3, 8 => 1 set of 8
KVDataQualityAuditReporting_INDRA(const TString &audit_name, const TString &ds_name)
void fill_list_of_telescopes(const TString &idtype, TList &tels, int ring)
Audit of experimental data identification and calibrations.