#include <AFP_PixelIdentifier.h>
|
| AFP_PixelIdentifier (const std::string &input_name="AFP_PixelHistoFiller.root", const std::string &output_name="AFP_PixelIdentifier.root", const std::vector< std::string > &pixelTools={"AFP_DeadPixel", "AFP_NoisyPixel"}) |
|
| ~AFP_PixelIdentifier ()=default |
|
int | execute () |
|
Definition at line 22 of file AFP_PixelIdentifier.h.
◆ AFP_PixelIdentifier()
AFP_PixelIdentifier::AFP_PixelIdentifier |
( |
const std::string & |
input_name = "AFP_PixelHistoFiller.root" , |
|
|
const std::string & |
output_name = "AFP_PixelIdentifier.root" , |
|
|
const std::vector< std::string > & |
pixelTools = {"AFP_DeadPixel", "AFP_NoisyPixel"} |
|
) |
| |
Definition at line 8 of file AFP_PixelIdentifier.cxx.
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")),
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>());
◆ ~AFP_PixelIdentifier()
AFP_PixelIdentifier::~AFP_PixelIdentifier |
( |
| ) |
|
|
default |
◆ execute()
int AFP_PixelIdentifier::execute |
( |
| ) |
|
Definition at line 31 of file AFP_PixelIdentifier.cxx.
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);
◆ m_input_file
std::unique_ptr<TFile> AFP_PixelIdentifier::m_input_file |
|
private |
◆ m_nLayers
const int AFP_PixelIdentifier::m_nLayers =4 |
|
staticprivate |
◆ m_nPixelsX
int AFP_PixelIdentifier::m_nPixelsX |
|
private |
◆ m_nPixelsY
int AFP_PixelIdentifier::m_nPixelsY |
|
private |
◆ m_nStations
const int AFP_PixelIdentifier::m_nStations =4 |
|
staticprivate |
◆ m_output_file
std::unique_ptr<TFile> AFP_PixelIdentifier::m_output_file |
|
private |
◆ m_pixelHits
◆ m_pixelTools
◆ m_pixelTools_names
std::vector<std::string> AFP_PixelIdentifier::m_pixelTools_names |
|
private |
The documentation for this class was generated from the following files:
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)