9 m_input_file (std::
make_unique<TFile>(input_name.c_str(),
"read")),
10 m_output_file (std::
make_unique<TFile>(output_name.c_str(),
"recreate")),
11 m_pixelTools_names(pixelTools)
15 if(pixel_name==
"AFP_DeadPixel")
17 m_pixelTools.push_back(std::make_unique<AFP_DeadPixelTool>());
19 else if(pixel_name==
"AFP_NoisyPixel")
21 m_pixelTools.push_back(std::make_unique<AFP_NoisyPixelTool>());
38 std::unique_ptr<TH1I> hist_lb(
static_cast<TH1I*
>(
m_input_file->Get(
"LBRangeLength")));
39 int LBRangeLength=hist_lb->GetBinContent(2)/hist_lb->GetBinContent(1);
49 Form(
"pixel_hits_lb_%d_%d_station_%d_layer_%d", lbIdx*LBRangeLength, (lbIdx+1)*LBRangeLength-1, st,la)
52 if(!pixelHits.get())
break;
56 std::vector<TH2F>
output{
TH2F(Form(
"lb_%d_%d_station_%d_layer_%d",lbIdx*LBRangeLength,(lbIdx+1)*LBRangeLength-1,st,la),
57 Form(
"lb %d-%d, station %d, layer %d", lbIdx*LBRangeLength,(lbIdx+1)*LBRangeLength-1,st,la),
60 pixelTool->Identify(pixelHits,
output);