ATLAS Offline Software
ForwardDetectors
AFP
AFP_Calibration
AFP_Calibration
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
7
#include "
AFP_Geometry/AFP_constants.h
"
8
#include "
AFP_Calibration/AFP_DeadPixelTool.h
"
9
#include "
AFP_Calibration/AFP_NoisyPixelTool.h
"
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
22
class
AFP_PixelIdentifier
{
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;
37
int
m_nPixelsX
;
38
int
m_nPixelsY
;
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
Generated on Thu Nov 7 2024 21:09:37 for ATLAS Offline Software by
1.8.18