14 LOG(debug) <<
"INIT OF SiBTHist";
16 fName = title +
"_cl";
20 const vector<Color_t> ChipColors{
kRed + 2,
kCyan + 2};
24 vector<vector<Double_t>> signalsInModule;
25 vector<vector<TH1F*>> rowSiBT;
26 vector<vector<vector<TH1F*>>> rowChipSignal;
27 vector<TH2F*> rowSiBT2D;
28 vector<vector<TH2F*>> firstStrip_Signal;
29 vector<vector<TH1F*>> firstStrip_Noise;
37 vector<TH1F*> colSiBT;
38 vector<vector<TH1F*>> colChipSignal;
39 vector<Double_t> signalsInLayers;
40 vector<TH2F*> secondStripSignal;
41 vector<TH1F*> secondStripNoise;
48 vector<TH1F*> layerChipSignal;
50 signalsInLayers.push_back(0);
51 name =
Form(
fTitle +
"_Station_%d_module_%d_layer_%d", iStation, iModule, iLayer);
56 StripLayerType layer_type = lay.
GetType();
65 name =
Form(
fTitle +
"StripVsSignal" +
"_Station_%d_module_%d_layer_%d", iStation, iModule, iLayer);
69 secondStripSignal.push_back(hist);
71 name =
Form(
fTitle +
"StripVsNoise" +
"_Station_%d_module_%d_layer_%d", iStation, iModule, iLayer);
82 secondStripNoise.push_back(stripNoise);
84 name =
Form(
fTitle +
"ChipSignal" +
"_Station_%d_module_%d_layer_%d_chip_%d", iStation, iModule,
86 TH1F* chipSignal =
new TH1F(name, name, 500, 0, 2500);
91 layerChipSignal.push_back(chipSignal);
93 colChipSignal.push_back(layerChipSignal);
95 name =
Form(
"Signal_Layer0_Layer1_st%d_mod%d", iStation, iModule);
96 TH2F* h =
new TH2F(name, name, 250, 0, 2500, 250, 0, 2500);
99 rowSiBT2D.push_back(h);
100 signalsInModule.push_back(signalsInLayers);
101 rowSiBT.push_back(colSiBT);
102 rowChipSignal.push_back(colChipSignal);
103 firstStrip_Signal.push_back(secondStripSignal);
104 firstStrip_Noise.push_back(secondStripNoise);
117 name =
fTitle +
"SignalCanvas";
119 name =
fTitle +
"StripSignalCanvas";
121 name =
fTitle +
"StripNoiseCanvas";
123 name =
fTitle +
"ChipSignalCanvas";
126 const vector<TString> LayerNames{
"p+",
"n+"};
156 TLegend* legend =
new TLegend(l_x0, l_y0, l_x0 + l_w, l_y0 + l_h);
164 p->
name =
Form(
fTitle +
"Occupancy" +
"_Station_%d_module_%d", iStation, iModule);
221 TLegend* legend =
new TLegend(l_x0, l_y0, l_x0 + l_w, l_y0 + l_h);
229 p->
name =
Form(
fTitle +
"StripVsNoise" +
"_Station_%d_module_%d", iStation, iModule);
251 TLegend* legend =
new TLegend(l_x0, l_y0, l_x0 + l_w, l_y0 + l_h);
259 p->
name =
Form(
fTitle +
"ChipSignal" +
"_Station_%d_module_%d", iStation, iModule);
457 printf(
"BmnHistSiBT : Reset histos\n");
460 for (
auto colStripSignal : rowStripSignal)
461 for (
auto elStripSignal : colStripSignal)
462 elStripSignal->Reset();
469 for (
auto colStripSignal : rowStripSignal)
470 for (
auto elStripSignal : colStripSignal)
471 elStripSignal->Reset();
474 for (
auto colStripNoise : rowStripNoise)
475 for (
auto elStripNoise : colStripNoise)
476 elStripNoise->Reset();
479 for (
auto colChipSignal : rowChipSignal)
480 for (
auto arrayChipSignal : colChipSignal)
481 for (
auto elChipSignal : arrayChipSignal)
482 elChipSignal->Reset();
virtual void SetTextSize(Float_t tsize=1)