|
ATLAS Offline Software
|
Go to the documentation of this file.
28 float phi,
long roi_word) :
29 m_rawEnergy (
energy ), m_rawEt ( 0. ),
30 m_rawEta (
eta ), m_rawPhi (
phi ),
31 m_roiWord ( roi_word ), m_numberUsedCells ( 0 ),
44 m_rawEnergy ( tcc->rawEnergy() ), m_rawEt ( tcc->
rawEt() ),
45 m_rawEta ( tcc->rawEta() ) , m_rawPhi ( tcc->
rawPhi() ),
46 m_roiWord ( tcc->RoIword() ),
47 m_numberUsedCells ( tcc->
nCells() ) ,
48 m_quality ( tcc->quality() )
59 std::cout <<
"m_rawEnergy : " <<
m_rawEnergy <<
"; ";
60 std::cout <<
"m_rawEt : " <<
m_rawEt <<
"; ";
61 std::cout <<
"m_rawEta : " <<
m_rawEta <<
"; ";
62 std::cout <<
"m_rawPhi : " <<
m_rawPhi <<
"; ";
63 std::cout << std::hex;
64 std::cout <<
"m_roiWord : 0x" <<
m_roiWord <<
"; ";
65 std::cout << std::dec;
67 std::cout <<
"m_quality : " <<
m_quality <<
"; ";
68 std::cout <<
"m_rawEnergyS : ";
71 std::cout << std::endl;
95 std::stringstream
log;
96 log <<
"m_rawEnergy : " <<
d.rawEnergy() <<
"; ";
97 log <<
"m_rawEt : " <<
d.rawEt() <<
"; ";
98 log <<
"m_rawEta : " <<
d.rawEta() <<
"; ";
99 log <<
"m_rawPhi : " <<
d.rawPhi() <<
"; ";
101 log <<
"m_roiWord : " <<
d.RoIword() <<
"; ";
103 log <<
"m_numberUsedCells : " <<
d.nCells() <<
"; ";
104 log <<
"m_quality : " <<
d.quality() <<
"; ";
105 log <<
"m_rawEnergyS : ";
119 if ( std::fabs(
a.RoIword() -
b.RoIword() )>ep )
return false;
120 if ( std::fabs(
a.rawEta() -
b.rawEta() )>ep )
return false;
121 if ( std::fabs(
a.rawPhi() -
b.rawPhi() )>ep )
return false;
122 if ( std::fabs(
a.rawEt() -
b.rawEt() )>ep )
return false;
123 if ( std::fabs(
a.quality() -
b.quality() )>ep )
return false;
128 std::map< std::string, double >& varChange ) {
131 if ( std::fabs(
a.RoIword() -
b.RoIword() )>ep ) {
132 varChange[
"RoIword" ] =
a.RoIword() -
b.RoIword();
134 if ( std::fabs(
a.rawEta() -
b.rawEta() )>ep ) {
135 varChange[
"rawEta" ] =
a.rawEta() -
b.rawEta();
137 if ( std::fabs(
a.rawPhi() -
b.rawPhi() )>ep ) {
138 varChange[
"rawPhi" ] =
a.rawPhi() -
b.rawPhi();
140 if ( std::fabs(
a.rawEt() -
b.rawEt() )>ep ) {
141 varChange[
"rawEt" ] =
a.rawEt() -
b.rawEt();
143 if ( std::fabs(
a.quality() -
b.quality() )>ep ) {
144 varChange[
"quality" ] =
a.quality() -
b.quality();
void diff(const TrigCaloCluster &a, const TrigCaloCluster &b, std::map< std::string, double > &varChange)
int m_numberUsedCells
Number of cells used from RoI.
float m_rawEt
Raw Et (no calibration)
unsigned int m_quality
quality of cluster built (to be defined)
Scalar phi() const
phi method
float m_rawPhi
Raw Phi (no calibration)
Scalar eta() const
pseudorapidity method
std::string str(const TrigCaloCluster &d)
void setRawEnergy(float energy)
set Raw Energy (no calibration)
setRawEt setRawPhi nCells
TrigCaloCluster(float energy=0.0, float eta=-10.0, float phi=-10.0, long roi_word=0)
Constructor, please note the default values
~TrigCaloCluster()
Destructor
void print(void) const
Prints out cluster variables to std::cout
float m_rawEnergy
Raw Energy (no calibration)
MsgStream & operator<<(MsgStream &m, const TrigCaloCluster &d)
float m_rawEta
Raw Eta (no calibration)
bool operator==(const TrigCaloCluster &a, const TrigCaloCluster &b)
float rawEnergy() const
get Raw Energy (no calibration)