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);
48 std::shared_ptr<const TH2F> pixelHits(
dynamic_cast<TH2F*
>(
m_input_file->Get(
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);
62 for(TH2F& out : output)