ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
JetBadChanCorrTool::ProfileData Class Reference
Collaboration diagram for JetBadChanCorrTool::ProfileData:

Public Member Functions

 ProfileData (TH1D *th, int sample, double ptMin=0, double ptMax=9999, double etaMin=0, double etaMax=5.0, double phiMin=-M_PI, double phiMax=M_PI)
 
virtual ~ProfileData ()
 
bool match (double pt, int sample, double eta, double phi) const
 
double frac (double dr) const
 

Private Attributes

TH1D * m_th
 
int m_sample
 
double m_ptMin
 
double m_ptMax
 
double m_etaMin
 
double m_etaMax
 
double m_phiMin
 
double m_phiMax
 

Detailed Description

Definition at line 96 of file JetBadChanCorrTool.h.

Constructor & Destructor Documentation

◆ ProfileData()

JetBadChanCorrTool::ProfileData::ProfileData ( TH1D *  th,
int  sample,
double  ptMin = 0,
double  ptMax = 9999,
double  etaMin = 0,
double  etaMax = 5.0,
double  phiMin = -M_PI,
double  phiMax = M_PI 
)
inline

Definition at line 98 of file JetBadChanCorrTool.h.

101  :
102  m_th(th), m_sample(sample),
103  m_ptMin(ptMin), m_ptMax(ptMax),
105  m_phiMin(phiMin), m_phiMax(phiMax) {}

◆ ~ProfileData()

virtual JetBadChanCorrTool::ProfileData::~ProfileData ( )
inlinevirtual

Definition at line 107 of file JetBadChanCorrTool.h.

107 {}

Member Function Documentation

◆ frac()

double JetBadChanCorrTool::ProfileData::frac ( double  dr) const
inline

Definition at line 116 of file JetBadChanCorrTool.h.

116  {
117  int idr = std::as_const(m_th)->FindBin(dr);
118  return m_th->GetBinContent(idr);
119  }

◆ match()

bool JetBadChanCorrTool::ProfileData::match ( double  pt,
int  sample,
double  eta,
double  phi 
) const
inline

Definition at line 109 of file JetBadChanCorrTool.h.

109  {
110  return ( pt>=m_ptMin && pt<m_ptMax
111  && sample==m_sample
112  && fabs(eta)>=m_etaMin && fabs(eta)<m_etaMax
113  && phi>=m_phiMin && phi<m_phiMax);
114  }

Member Data Documentation

◆ m_etaMax

double JetBadChanCorrTool::ProfileData::m_etaMax
private

Definition at line 126 of file JetBadChanCorrTool.h.

◆ m_etaMin

double JetBadChanCorrTool::ProfileData::m_etaMin
private

Definition at line 125 of file JetBadChanCorrTool.h.

◆ m_phiMax

double JetBadChanCorrTool::ProfileData::m_phiMax
private

Definition at line 128 of file JetBadChanCorrTool.h.

◆ m_phiMin

double JetBadChanCorrTool::ProfileData::m_phiMin
private

Definition at line 127 of file JetBadChanCorrTool.h.

◆ m_ptMax

double JetBadChanCorrTool::ProfileData::m_ptMax
private

Definition at line 124 of file JetBadChanCorrTool.h.

◆ m_ptMin

double JetBadChanCorrTool::ProfileData::m_ptMin
private

Definition at line 123 of file JetBadChanCorrTool.h.

◆ m_sample

int JetBadChanCorrTool::ProfileData::m_sample
private

Definition at line 122 of file JetBadChanCorrTool.h.

◆ m_th

TH1D* JetBadChanCorrTool::ProfileData::m_th
private

Definition at line 121 of file JetBadChanCorrTool.h.


The documentation for this class was generated from the following file:
JetBadChanCorrTool::ProfileData::m_th
TH1D * m_th
Definition: JetBadChanCorrTool.h:121
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
test_pyathena.pt
pt
Definition: test_pyathena.py:11
xAOD::etaMax
etaMax
Definition: HIEventShape_v2.cxx:46
JetBadChanCorrTool::ProfileData::m_ptMin
double m_ptMin
Definition: JetBadChanCorrTool.h:123
JetBadChanCorrTool::ProfileData::m_sample
int m_sample
Definition: JetBadChanCorrTool.h:122
python.TurnDataReader.dr
dr
Definition: TurnDataReader.py:112
python.TriggerHandler.th
th
Definition: TriggerHandler.py:296
FullCPAlgorithmsTest_eljob.sample
sample
Definition: FullCPAlgorithmsTest_eljob.py:116
JetBadChanCorrTool::ProfileData::m_ptMax
double m_ptMax
Definition: JetBadChanCorrTool.h:124
JetBadChanCorrTool::ProfileData::m_etaMin
double m_etaMin
Definition: JetBadChanCorrTool.h:125
JetBadChanCorrTool::ProfileData::m_phiMax
double m_phiMax
Definition: JetBadChanCorrTool.h:128
JetBadChanCorrTool::ProfileData::m_etaMax
double m_etaMax
Definition: JetBadChanCorrTool.h:126
LArCellBinning.etaMin
etaMin
Definition: LArCellBinning.py:84
JetBadChanCorrTool::ProfileData::m_phiMin
double m_phiMin
Definition: JetBadChanCorrTool.h:127