ATLAS Offline Software
Loading...
Searching...
No Matches
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
21public:
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
29private:
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
float getRange() const
std::vector< std::pair< int, int > > getLegitPixels(std::shared_ptr< const TH2F > input, const int col_ID, const int row_ID) const
void setRange(float r)
int Identify(std::shared_ptr< const TH2F > input, std::vector< TH2F > &output) const override
double getNeighbours(std::shared_ptr< const TH2F > input, int row_ID, int col_ID) const
Base class for all pixel identifier tool.
int r
Definition globals.cxx:22