26 float phi,
long roi_word) :
52{
for (
int i = 0 ; i <
MAXSIZE ; i++ )
66{
for (
int i = 0 ; i <
MAXSIZE ; i++ )
76 std::cout <<
"m_Energy : " <<
m_Energy <<
"; ";
77 std::cout <<
"m_Et : " <<
m_Et <<
"; ";
78 std::cout <<
"m_Eta : " <<
m_Eta <<
"; ";
79 std::cout <<
"m_Phi : " <<
m_Phi <<
"; ";
80 std::cout <<
"m_e237 : " <<
m_e237 <<
"; ";
81 std::cout <<
"m_e277 : " <<
m_e277 <<
"; ";
82 std::cout <<
"m_fracs1 : " <<
m_fracs1 <<
"; ";
83 std::cout <<
"m_weta2 : " <<
m_weta2 <<
"; ";
84 std::cout <<
"m_ehad1 : " <<
m_ehad1 <<
"; ";
85 std::cout <<
"m_Eta1 : " <<
m_Eta1 <<
"; ";
86 std::cout <<
"m_emaxs1 : " <<
m_emaxs1 <<
"; ";
87 std::cout <<
"m_e2tsts1 : " <<
m_e2tsts1 <<
"; ";
88 std::cout <<
"m_e233 : " <<
m_e233 <<
"; ";
89 std::cout <<
"m_wstot : " <<
m_wstot <<
"; ";
90 std::cout <<
"m_EnergyS : ";
91 for (
int i = 0 ; i <
MAXSIZE ; i++ )
93 std::cout << std::endl;
100 log <<MSG::DEBUG<<
"m_Energy : " <<
m_Energy <<
"; ";
101 log <<MSG::DEBUG<<
"m_Et : " <<
m_Et <<
"; ";
102 log <<MSG::DEBUG<<
"m_Eta : " <<
m_Eta <<
"; ";
103 log <<MSG::DEBUG<<
"m_Phi : " <<
m_Phi <<
"; ";
104 log <<MSG::DEBUG<<
"m_e237 : " <<
m_e237 <<
"; ";
105 log <<MSG::DEBUG<<
"m_e277 : " <<
m_e277 <<
"; ";
106 log <<MSG::DEBUG<<
"m_fracs1 : " <<
m_fracs1 <<
"; ";
107 log <<MSG::DEBUG<<
"m_weta2 : " <<
m_weta2 <<
"; ";
108 log <<MSG::DEBUG<<
"m_ehad1 : " <<
m_ehad1 <<
"; ";
109 log <<MSG::DEBUG<<
"m_Eta1 : " <<
m_Eta1 <<
"; ";
110 log <<MSG::DEBUG<<
"m_emaxs1 : " <<
m_emaxs1 <<
"; ";
111 log <<MSG::DEBUG<<
"m_e2tsts1 : " <<
m_e2tsts1 <<
"; ";
112 log <<MSG::DEBUG<<
"m_e233 : " <<
m_e233 <<
"; ";
113 log <<MSG::DEBUG<<
"m_wstot : " <<
m_wstot <<
"; ";
114 log <<MSG::DEBUG<<
"m_EnergyS : ";
115 for (
int i = 0 ; i <
MAXSIZE ; i++ )
125 if (ring_idx < ring_con.
size()) {
126 m_rings.toIndexedElement(ring_con, ring_idx);
154 std::stringstream log;
155 log << str( static_cast<const TrigCaloCluster&>( d )) ;
156 log <<
"m_Energy : " << d.energy() <<
"; ";
157 log <<
"m_Et : " << d.et() <<
"; ";
158 log <<
"m_Eta : " << d.eta() <<
"; ";
159 log <<
"m_Phi : " << d.phi() <<
"; ";
160 log <<
"m_e237 : " << d.e237() <<
"; ";
161 log <<
"m_e277 : " << d.e277() <<
"; ";
162 log <<
"m_fracs1 : " << d.fracs1() <<
"; ";
163 log <<
"m_weta2 : " << d.weta2() <<
"; ";
164 log <<
"m_ehad1 : " << d.ehad1() <<
"; ";
165 log <<
"m_Eta1 : " << d.Eta1() <<
"; ";
166 log <<
"m_emaxs1 : " << d.emaxs1() <<
"; ";
167 log <<
"m_e2tsts1 : " << d.e2tsts1() <<
"; ";
168 log <<
"m_e233 : " << d.e233() <<
"; ";
169 log <<
"m_wstot : " << d.wstot() <<
"; ";
170 log <<
"m_EnergyS : ";
171 for (
int i = 0 ; i <
MAXSIZE ; i++ )
186 if ( std::fabs(
a.eta() - b.eta() )>ep )
return false;
187 if ( std::fabs(
a.phi() - b.phi() )>ep )
return false;
188 if ( std::fabs(
a.energy() - b.energy() )>ep )
return false;
bool operator==(const TrigEMCluster &a, const TrigEMCluster &b)
MsgStream & operator<<(MsgStream &m, const TrigEMCluster &d)
size_type size() const noexcept
Returns the number of elements in the collection.
ElementLink implementation for ROOT usage.
This class carries the generated Rings.
TrigCaloCluster(float energy=0.0, float eta=-10.0, float phi=-10.0, long roi_word=0)
Constructor, please note the default values.
void setRoIword(long roiword)
set RoI Word
void print(void) const
Prints out cluster variables to std::cout.
Class with calibrated variables for egamma clustering.
float wstot() const
get width in first layer
float ehad1() const
get hadronic Energy (first hadronic layer)
float m_Eta
Eta (calibrated)
float m_e237
Energy in a 3x7 cluster (no calibration) around hottest cell.
float m_e233
Energy in a 3x3 cluster (no calibration) around hottest cell.
float emaxs1() const
get maximum energy in sampling 1 (strip layer)
float m_wstot
width in first layer
float eta() const
get Eta (calibrated)
ElementLink< RingerRingsContainer > m_rings
const ElementLink< RingerRingsContainer > & ringsLink() const
float e2tsts1() const
get second maximum energy in sampling 1 (strip layer)
float m_Phi
Phi (calibrated)
float m_Et
Energy (calibrated)
float e233() const
get Energy in a 3x3 cluster (no calibration) around hottest cell
const RingerRings * rings() const
float m_e277
Energy in a 7x7 cluster (no calibration) around hottest cell.
TrigEMCluster(float energy=0.0, float eta=-10.0, float phi=-10.0, long roi_word=0)
Constructor, please note the default values.
float energy() const
get Energy (calibrated)
float m_emaxs1
maximum energy in sampling 1 (strip layer)
float weta2() const
get cluster width (based on a 3x5 cluster - 2nd layer)
float phi() const
get Phi (calibrated)
float m_e2tsts1
get second maximum energy in sampling 1 (strip layer)
void print(void) const
Prints out cluster variables to std::cout.
float e277() const
get Energy in a 7x7 cluster (no calibration) around hottest cell
float m_ehad1
hadronic Energy (first hadronic layer)
void setRings(const RingerRingsContainer &ring_con, unsigned int ring_idx)
float m_weta2
cluster width (based on a 3x5 cluster - 2nd layer)
~TrigEMCluster()
Destructor.
float et() const
get Et (calibrated)
void setEnergy(float energy)
set Energy (calibrated)
float fracs1() const
get Energy in a 7 strips (around hottest strip) minus energy in 3 strips divided by energy in 3 strip...
float m_fracs1
Energy in a 7 strips (around hottest strip) minus energy in 3 strips divided by energy in 3 strips.
float m_Eta1
Eta sampling 1 (strip layer)
float Eta1() const
get Eta sampling 1 (strip layer)
float m_Energy
Energy (calibrated)
float e237() const
get Energy in a 3x7 cluster (no calibration) around hottest cell