ATLAS Offline Software
Loading...
Searching...
No Matches
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
 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
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
void PrintInfo (void) const
 print info
float get_eta_min () const
 get eta min of region
float get_eta_max () const
 get eta max of region
float get_phi_min () const
 get phi min of region
float get_phi_max () const
 get phi max of region
int get_layer_min () const
 get layer min of region
int get_layer_max () const
 get layer max of region
int get_problem () const
 get problem type
float get_rate () const
 get rate of problem

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() [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 84 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: