ATLAS Offline Software
AFP_DeadPixelTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef AFP_CALIBRATION_AFP_DEADPIXELTOOL_H
6 #define AFP_CALIBRATION_AFP_DEADPIXELTOOL_H
7 
8 // Package includes
10 
11 // ROOT includes
12 #include "TH2F.h"
13 
14 // STL includes
15 #include <string>
16 #include <vector>
17 #include <memory>
18 #include <utility>
19 
21 public:
23 
24  int Identify(std::shared_ptr<const TH2F> input, std::vector<TH2F>& output) const override;
25 
26  void setRange(float r) {m_range=r;}
27  float getRange() const {return m_range;}
28 
29 private:
30 
31  float m_range; // To prevent pixels be identified as dead when there is low statistics
32 
33  double getNeighbours(std::shared_ptr<const TH2F> input, int row_ID, int col_ID) const;
34  std::vector<std::pair<int,int>> getLegitPixels(std::shared_ptr<const TH2F> input, const int col_ID, const int row_ID) const;
35 };
36 
37 #endif // AFP_CALIBRATION_AFP_DEADPIXELTOOL_H
beamspotman.r
def r
Definition: beamspotman.py:676
AFP_DeadPixelTool::getRange
float getRange() const
Definition: AFP_DeadPixelTool.h:27
AFP_DeadPixelTool::m_range
float m_range
Definition: AFP_DeadPixelTool.h:31
AFP_DeadPixelTool::AFP_DeadPixelTool
AFP_DeadPixelTool()
Definition: AFP_DeadPixelTool.h:22
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
AFP_DeadPixelTool::getLegitPixels
std::vector< std::pair< int, int > > getLegitPixels(std::shared_ptr< const TH2F > input, const int col_ID, const int row_ID) const
Definition: AFP_DeadPixelTool.cxx:94
merge.output
output
Definition: merge.py:17
AFP_DeadPixelTool::setRange
void setRange(float r)
Definition: AFP_DeadPixelTool.h:26
AFP_DeadPixelTool::getNeighbours
double getNeighbours(std::shared_ptr< const TH2F > input, int row_ID, int col_ID) const
Definition: AFP_DeadPixelTool.cxx:113
AFP_DeadPixelTool
Definition: AFP_DeadPixelTool.h:20
IAFP_GenericPixelTool.h
AFP_DeadPixelTool::Identify
int Identify(std::shared_ptr< const TH2F > input, std::vector< TH2F > &output) const override
Definition: AFP_DeadPixelTool.cxx:7
IAFP_GenericPixelTool
Base class for all pixel identifier tool.
Definition: IAFP_GenericPixelTool.h:17