ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
CaloAffectedRegionInfo Class Reference

#include <CaloAffectedRegionInfo.h>

Collaboration diagram for CaloAffectedRegionInfo:

Public Types

enum  type_problem {
  missingReadout =0, HVaffected =1, HVdead =2, CalibrationProblem =3,
  ReadoutErrors =4, ReadoutWarnings =5, Unknown =-1
}
 enum to classify different problems More...
 

Public Member Functions

 CaloAffectedRegionInfo (void)
 default constructor Creates empty list More...
 
 CaloAffectedRegionInfo (float parameter_eta_min, float parameter_eta_max, float parameter_phi_min, float parameter_phi_max, int parameter_layer_min, int parameter_layer_max, type_problem current_problem, float parameter_rate=1.)
 constructor with parameters More...
 
void FillCaloAffectedRegionInfo (float parameter_eta_min, float parameter_eta_max, float parameter_phi_min, float parameter_phi_max, int parameter_layer_min, int parameter_layer_max, type_problem current_problem, float parameter_rate=1.)
 modify settings of affected region More...
 
void PrintInfo (void) const
 print info More...
 
float get_eta_min () const
 get eta min of region More...
 
float get_eta_max () const
 get eta max of region More...
 
float get_phi_min () const
 get phi min of region More...
 
float get_phi_max () const
 get phi max of region More...
 
int get_layer_min () const
 get layer min of region More...
 
int get_layer_max () const
 get layer max of region More...
 
int get_problem () const
 get problem type
More...
 
float get_rate () const
 get rate of problem More...
 

Private Attributes

float m_eta_min
 
float m_eta_max
 
float m_phi_min
 
float m_phi_max
 
float m_rate
 
int m_layer_min
 
int m_layer_max
 
enum type_problem m_problem
 

Detailed Description

Definition at line 16 of file CaloAffectedRegionInfo.h.

Member Enumeration Documentation

◆ type_problem

enum to classify different problems

Enumerator
missingReadout 
HVaffected 
HVdead 
CalibrationProblem 
ReadoutErrors 
ReadoutWarnings 
Unknown 

Definition at line 20 of file CaloAffectedRegionInfo.h.

20  {
21  missingReadout=0, // missing readout
22  HVaffected=1, // HV not nominal
23  HVdead=2, // 0 HV on both sides of electrodes
24  CalibrationProblem=3, // region potentially badly calibrated
25  ReadoutErrors=4, // region with severe readout errors
26  ReadoutWarnings=5, // region with readout warnings
27  Unknown=-1
28  };

Constructor & Destructor Documentation

◆ CaloAffectedRegionInfo() [1/2]

CaloAffectedRegionInfo::CaloAffectedRegionInfo ( void  )

default constructor Creates empty list

Definition at line 9 of file CaloAffectedRegionInfo.cxx.

◆ CaloAffectedRegionInfo() [2/2]

CaloAffectedRegionInfo::CaloAffectedRegionInfo ( float  parameter_eta_min,
float  parameter_eta_max,
float  parameter_phi_min,
float  parameter_phi_max,
int  parameter_layer_min,
int  parameter_layer_max,
type_problem  current_problem,
float  parameter_rate = 1. 
)

constructor with parameters

Parameters
parameter_eta_min,parameter_eta_maxeta range of affected region
parameter_phi_min,parameter_phi_maxphi range of affected region
parameter_layer_min,parameter_layer_maxrange of layer affected (could be one or several)
current_problemtype of problem in the affected region, according to enum
raterate of problem (1 = all the events affected)

Definition at line 16 of file CaloAffectedRegionInfo.cxx.

17 {
18  m_eta_min=parameter_eta_min;
19  m_eta_max=parameter_eta_max;
20  m_phi_min=parameter_phi_min;
21  m_phi_max=parameter_phi_max;
22  m_layer_min=parameter_layer_min;
23  m_layer_max=parameter_layer_max;
24  m_problem=current_problem;
25  m_rate = parameter_rate;
26 }

Member Function Documentation

◆ FillCaloAffectedRegionInfo()

void CaloAffectedRegionInfo::FillCaloAffectedRegionInfo ( float  parameter_eta_min,
float  parameter_eta_max,
float  parameter_phi_min,
float  parameter_phi_max,
int  parameter_layer_min,
int  parameter_layer_max,
type_problem  current_problem,
float  parameter_rate = 1. 
)

modify settings of affected region

Parameters
parameter_eta_min,parameter_eta_maxeta range of affected region
parameter_phi_min,parameter_phi_maxphi range of affected region
parameter_layer_min,parameter_layer_maxrange of layer affected (could be one or several)
current_problemtype of problem in the affected region, according to enum
raterate of problem (1 = all the events affected)

Definition at line 60 of file CaloAffectedRegionInfo.cxx.

61 {
62  m_eta_min=parameter_eta_min;
63  m_eta_max=parameter_eta_max;
64  m_phi_min=parameter_phi_min;
65  m_phi_max=parameter_phi_max;
66  m_layer_min=parameter_layer_min;
67  m_layer_max=parameter_layer_max;
68  m_problem=current_problem;
69  m_rate = parameter_rate;
70 }

◆ get_eta_max()

float CaloAffectedRegionInfo::get_eta_max ( ) const

get eta max of region

Definition at line 32 of file CaloAffectedRegionInfo.cxx.

32  {
33  return m_eta_max;
34 }

◆ get_eta_min()

float CaloAffectedRegionInfo::get_eta_min ( ) const

get eta min of region

Definition at line 28 of file CaloAffectedRegionInfo.cxx.

28  {
29  return m_eta_min;
30 }

◆ get_layer_max()

int CaloAffectedRegionInfo::get_layer_max ( ) const

get layer max of region

Definition at line 52 of file CaloAffectedRegionInfo.cxx.

52  {
53  return m_layer_max;
54 }

◆ get_layer_min()

int CaloAffectedRegionInfo::get_layer_min ( ) const

get layer min of region

Definition at line 48 of file CaloAffectedRegionInfo.cxx.

48  {
49  return m_layer_min;
50 }

◆ get_phi_max()

float CaloAffectedRegionInfo::get_phi_max ( ) const

get phi max of region

Definition at line 40 of file CaloAffectedRegionInfo.cxx.

40  {
41  return m_phi_max;
42 }

◆ get_phi_min()

float CaloAffectedRegionInfo::get_phi_min ( ) const

get phi min of region

Definition at line 36 of file CaloAffectedRegionInfo.cxx.

36  {
37  return m_phi_min;
38 }

◆ get_problem()

int CaloAffectedRegionInfo::get_problem ( ) const

get problem type

Definition at line 44 of file CaloAffectedRegionInfo.cxx.

44  {
45  return m_problem;
46 }

◆ get_rate()

float CaloAffectedRegionInfo::get_rate ( ) const

get rate of problem

Definition at line 56 of file CaloAffectedRegionInfo.cxx.

56  {
57  return m_rate;
58 }

◆ PrintInfo()

void CaloAffectedRegionInfo::PrintInfo ( void  ) const

print info

Definition at line 72 of file CaloAffectedRegionInfo.cxx.

73 {
74  std::cout << "eta range : [" << m_eta_min << " ; " << m_eta_max << " ], phi range : [" << m_phi_min << " ; " << m_phi_max << " ], layer range : [" << m_layer_min << " ; " << m_layer_max << " ]" <<", problem=" << m_problem << ", rate " << m_rate << std::endl;
75 }

Member Data Documentation

◆ m_eta_max

float CaloAffectedRegionInfo::m_eta_max
private

Definition at line 80 of file CaloAffectedRegionInfo.h.

◆ m_eta_min

float CaloAffectedRegionInfo::m_eta_min
private

Definition at line 80 of file CaloAffectedRegionInfo.h.

◆ m_layer_max

int CaloAffectedRegionInfo::m_layer_max
private

Definition at line 83 of file CaloAffectedRegionInfo.h.

◆ m_layer_min

int CaloAffectedRegionInfo::m_layer_min
private

Definition at line 83 of file CaloAffectedRegionInfo.h.

◆ m_phi_max

float CaloAffectedRegionInfo::m_phi_max
private

Definition at line 81 of file CaloAffectedRegionInfo.h.

◆ m_phi_min

float CaloAffectedRegionInfo::m_phi_min
private

Definition at line 81 of file CaloAffectedRegionInfo.h.

◆ m_problem

enum type_problem CaloAffectedRegionInfo::m_problem
private

Definition at line 83 of file CaloAffectedRegionInfo.h.

◆ m_rate

float CaloAffectedRegionInfo::m_rate
private

Definition at line 82 of file CaloAffectedRegionInfo.h.


The documentation for this class was generated from the following files:
CaloAffectedRegionInfo::missingReadout
@ missingReadout
Definition: CaloAffectedRegionInfo.h:21
CaloAffectedRegionInfo::Unknown
@ Unknown
Definition: CaloAffectedRegionInfo.h:27
CaloAffectedRegionInfo::ReadoutWarnings
@ ReadoutWarnings
Definition: CaloAffectedRegionInfo.h:26
CaloAffectedRegionInfo::m_eta_max
float m_eta_max
Definition: CaloAffectedRegionInfo.h:80
CaloAffectedRegionInfo::HVdead
@ HVdead
Definition: CaloAffectedRegionInfo.h:23
CaloAffectedRegionInfo::HVaffected
@ HVaffected
Definition: CaloAffectedRegionInfo.h:22
CaloAffectedRegionInfo::m_eta_min
float m_eta_min
Definition: CaloAffectedRegionInfo.h:80
CaloAffectedRegionInfo::m_problem
enum type_problem m_problem
Definition: CaloAffectedRegionInfo.h:84
CaloAffectedRegionInfo::m_phi_max
float m_phi_max
Definition: CaloAffectedRegionInfo.h:81
CaloAffectedRegionInfo::ReadoutErrors
@ ReadoutErrors
Definition: CaloAffectedRegionInfo.h:25
CaloAffectedRegionInfo::m_layer_max
int m_layer_max
Definition: CaloAffectedRegionInfo.h:83
CaloAffectedRegionInfo::m_phi_min
float m_phi_min
Definition: CaloAffectedRegionInfo.h:81
CaloAffectedRegionInfo::m_rate
float m_rate
Definition: CaloAffectedRegionInfo.h:82
CaloAffectedRegionInfo::CalibrationProblem
@ CalibrationProblem
Definition: CaloAffectedRegionInfo.h:24
CaloAffectedRegionInfo::m_layer_min
int m_layer_min
Definition: CaloAffectedRegionInfo.h:83