ATLAS Offline Software
AFP_PixelIdentifier.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef AFP_CALIBRATION_AFP_PIXELIDENTIFIER_H
5 #define AFP_CALIBRATION_AFP_PIXELIDENTIFIER_H
6 
10 
11 // STL includes
12 #include <string>
13 #include <vector>
14 #include <memory>
15 #include <utility>
16 
17 // ROOT includes
18 #include "TFile.h"
19 #include "TH2F.h"
20 
21 
23 public:
24  AFP_PixelIdentifier(const std::string& input_name="AFP_PixelHistoFiller.root",
25  const std::string& output_name="AFP_PixelIdentifier.root",
26  const std::vector<std::string>& pixelTools={"AFP_DeadPixel", "AFP_NoisyPixel"});
27  ~AFP_PixelIdentifier() = default;
28 
29  int execute();
30 
31 private:
32  std::unique_ptr<TFile> m_input_file;
33  std::unique_ptr<TFile> m_output_file;
34 
35  static const int m_nStations=4;
36  static const int m_nLayers=4;
39 
40  std::vector<TH2F> m_pixelHits[m_nStations][m_nLayers];
41 
42  std::vector<std::string> m_pixelTools_names;
43  std::vector<std::unique_ptr<IAFP_GenericPixelTool>> m_pixelTools;
44 };
45 
46 
47 #endif // AFP_CALIBRATION_AFP_PIXELIDENTIFIER_H
AFP_PixelIdentifier::m_nPixelsY
int m_nPixelsY
Definition: AFP_PixelIdentifier.h:38
AFP_PixelIdentifier::m_pixelHits
std::vector< TH2F > m_pixelHits[m_nStations][m_nLayers]
Definition: AFP_PixelIdentifier.h:40
AFP_PixelIdentifier::m_pixelTools
std::vector< std::unique_ptr< IAFP_GenericPixelTool > > m_pixelTools
Definition: AFP_PixelIdentifier.h:43
AFP_constants.h
AFP_NoisyPixelTool.h
AFP_PixelIdentifier::m_output_file
std::unique_ptr< TFile > m_output_file
Definition: AFP_PixelIdentifier.h:33
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: AFP_PixelIdentifier.cxx:8
AFP_PixelIdentifier::m_nStations
static const int m_nStations
Definition: AFP_PixelIdentifier.h:35
AFP_PixelIdentifier::m_input_file
std::unique_ptr< TFile > m_input_file
Definition: AFP_PixelIdentifier.h:32
AFP_PixelIdentifier::m_nPixelsX
int m_nPixelsX
Definition: AFP_PixelIdentifier.h:37
AFP_PixelIdentifier::~AFP_PixelIdentifier
~AFP_PixelIdentifier()=default
AFP_PixelIdentifier::m_nLayers
static const int m_nLayers
Definition: AFP_PixelIdentifier.h:36
AFP_PixelIdentifier::m_pixelTools_names
std::vector< std::string > m_pixelTools_names
Definition: AFP_PixelIdentifier.h:42
AFP_PixelIdentifier
Definition: AFP_PixelIdentifier.h:22
AFP_PixelIdentifier::execute
int execute()
Definition: AFP_PixelIdentifier.cxx:31
AFP_DeadPixelTool.h