ATLAS Offline Software
CaloAffectedRegionInfo.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 #include <iostream>
8 
10 {
14 }
15 
16 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)
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 }
27 
29  return m_eta_min;
30 }
31 
33  return m_eta_max;
34 }
35 
37  return m_phi_min;
38 }
39 
41  return m_phi_max;
42 }
43 
45  return m_problem;
46 }
47 
49  return m_layer_min;
50 }
51 
53  return m_layer_max;
54 }
55 
57  return m_rate;
58 }
59 
60 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)
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 }
71 
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 }
76 
CaloAffectedRegionInfo::get_phi_min
float get_phi_min() const
get phi min of region
Definition: CaloAffectedRegionInfo.cxx:36
CaloAffectedRegionInfo::get_eta_max
float get_eta_max() const
get eta max of region
Definition: CaloAffectedRegionInfo.cxx:32
CaloAffectedRegionInfo::Unknown
@ Unknown
Definition: CaloAffectedRegionInfo.h:27
CaloAffectedRegionInfo::PrintInfo
void PrintInfo(void) const
print info
Definition: CaloAffectedRegionInfo.cxx:72
CaloAffectedRegionInfo::m_eta_max
float m_eta_max
Definition: CaloAffectedRegionInfo.h:80
CaloAffectedRegionInfo::get_eta_min
float get_eta_min() const
get eta min of region
Definition: CaloAffectedRegionInfo.cxx:28
CaloAffectedRegionInfo::get_rate
float get_rate() const
get rate of problem
Definition: CaloAffectedRegionInfo.cxx:56
CaloAffectedRegionInfo::get_layer_max
int get_layer_max() const
get layer max of region
Definition: CaloAffectedRegionInfo.cxx:52
CaloAffectedRegionInfo::get_problem
int get_problem() const
get problem type
Definition: CaloAffectedRegionInfo.cxx:44
CaloAffectedRegionInfo::type_problem
type_problem
enum to classify different problems
Definition: CaloAffectedRegionInfo.h:20
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::get_phi_max
float get_phi_max() const
get phi max of region
Definition: CaloAffectedRegionInfo.cxx:40
CaloAffectedRegionInfo::m_phi_max
float m_phi_max
Definition: CaloAffectedRegionInfo.h:81
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::CaloAffectedRegionInfo
CaloAffectedRegionInfo(void)
default constructor Creates empty list
Definition: CaloAffectedRegionInfo.cxx:9
CaloAffectedRegionInfo::m_rate
float m_rate
Definition: CaloAffectedRegionInfo.h:82
CaloAffectedRegionInfo::get_layer_min
int get_layer_min() const
get layer min of region
Definition: CaloAffectedRegionInfo.cxx:48
CaloAffectedRegionInfo.h
object to store information about affected regions in calorimeter
CaloAffectedRegionInfo::m_layer_min
int m_layer_min
Definition: CaloAffectedRegionInfo.h:83
CaloAffectedRegionInfo::FillCaloAffectedRegionInfo
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
Definition: CaloAffectedRegionInfo.cxx:60