5#include "BmnNdetDigi.h"
9#include "TClonesArray.h"
15#include "THttpServer.h"
30 void SetDir(TFile* outFile, TTree* recoTree);
39 static constexpr int kTOTAL_CELLS = 9;
40 static constexpr int kTOTAL_COLS = 3;
41 static constexpr int kTOTAL_ROWS = 3;
42 static constexpr int kTOTAL_LAYRS = 16;
43 static constexpr int kEM_LAYRS = 6;
44 static constexpr int kHAD_LAYRS = 9;
45 static constexpr int kTQDC_MAX_CHAN = 16;
46 static constexpr int kTQDC_MAX_MODULES = 9;
47 std::vector<unsigned int> MapCell2Ch = {0, 3, 6, 9, 2, 5, 8, 1, 4, 7};
49 long int fEventCounter = 1;
55 Int_t fSelectedTrigger;
59 TH1F* h1d_ProfileSlice;
73 TCanvas* canv_hProfCell;
79 TCanvas* canv_hAmplCell;
80 TCanvas* canv_hCellAmpEM;
81 TCanvas* canv_hCellAmpH;
82 TCanvas* canv_hCellTimeEM;
83 TCanvas* canv_hCellTimeH;
85 vector<PadInfo*> canAmpsPads;
86 vector<PadInfo*> canv_hProfCellPads;
87 vector<PadInfo*> canv_SlicePads;
88 vector<PadInfo*> canv_CellsPads;
89 vector<PadInfo*> canv_hitsPads;
90 vector<PadInfo*> canSelectPads;
91 vector<PadInfo*> canv_AmplPads;
92 vector<PadInfo*> canv_TimePads;
93 vector<PadInfo*> canv_hAmplCellPads;
94 vector<PadInfo*> canv_hCellAmpEMPads;
95 vector<PadInfo*> canv_hCellAmpHPads;
96 vector<PadInfo*> canv_hCellTimeEMPads;
97 vector<PadInfo*> canv_hCellTimeHPads;
98 vector<TString> NamesAmps;
99 vector<TString> NamesProfs;
100 vector<TString> NamesSlice;
101 vector<TString> NamesCells;
102 vector<TString> NamesSelect;
103 vector<TString> NamesAmpl;
104 vector<TString> NamesTime;
105 vector<TString> NamesAmplCell;
106 vector<TString> NamesCellAmpEM;
107 vector<TString> NamesCellAmpH;
108 vector<TString> NamesCellTimeEM;
109 vector<TString> NamesCellTimeH;
110 vector<TString> NamesHits;
112 std::vector<TH1*> hProfCell =
113 std::vector<TH1*>(kTOTAL_CELLS + 1,
nullptr);
114 std::vector<TH1*> hCellAmpEM =
115 std::vector<TH1*>(kEM_LAYRS * kTOTAL_CELLS + 1,
nullptr);
116 std::vector<TH1*> hCellAmpH =
117 std::vector<TH1*>(kHAD_LAYRS * kTOTAL_CELLS + 1,
nullptr);
118 std::vector<TH1*> hCellTimeEM = std::vector<TH1*>(kEM_LAYRS * kTOTAL_CELLS + 1,
nullptr);
119 std::vector<TH1*> hCellTimeH = std::vector<TH1*>(kHAD_LAYRS * kTOTAL_CELLS + 1,
nullptr);
120 std::array<float, kTOTAL_CELLS * kTOTAL_LAYRS + 1> meanamp;
121 std::array<std::array<float, kTQDC_MAX_CHAN + 1>, kTQDC_MAX_MODULES + 1>
123 std::array<float, kTOTAL_CELLS * kTOTAL_LAYRS + 1> meantime;
124 std::array<float, kTOTAL_CELLS * kTOTAL_LAYRS + 1> ch_entries;
125 std::array<std::array<int, kTQDC_MAX_CHAN + 1>, kTQDC_MAX_MODULES + 1> ch_entries_test;
void SetGeometry(const std::string &path)
BmnHistNdet(TString title="Ndet", TString path="", Int_t periodID=8, BmnSetup setup=kBMNSETUP)
void SetDir(TFile *outFile, TTree *recoTree)
void FillFromDigi(DigiArrays *fDigiArrays)
void Register(THttpServer *serv)
BmnStatus SetRefRun(Int_t id)
void SetSelection(Int_t Cell, Int_t Layer, Int_t Trigger)