40 std::string s=
"_name__status_usedChannels__sumOfSigns__calib1_calib0/MeV";
41 s+=
"___ex/MeV_____ey/MeV_____ez/MeV___sumE/MeV__sumEt/MeV";
49 "%s %7d %12d %11d %7.3f %7.2f %10.2f %10.2f %10.2f %10.2f %10.2f\n",
53 return std::string(buff);
59 const double DELTA=1e-3;
61 if(
a.name() != b.name() )
63 if(
a.status() != b.status() )
65 if(
a.sumOfSigns() != b.sumOfSigns() )
67 if(
a.usedChannels() != b.usedChannels() )
70 if( fabsf(
a.ex() - b.ex()) >
DELTA )
72 if( fabsf(
a.ey() - b.ey()) >
DELTA )
74 if( fabsf(
a.ez() - b.ez()) >
DELTA )
76 if( fabsf(
a.sumEt() - b.sumEt()) >
DELTA )
78 if( fabsf(
a.sumE() - b.sumE()) >
DELTA )
80 if( fabsf(
a.calib0() - b.calib0()) >
DELTA )
82 if( fabsf(
a.calib1() - b.calib1()) >
DELTA )
static const double DELTA
bool operator==(const TrigMissingEtComponent &a, const TrigMissingEtComponent &b)
Operator comparing two objects for equality.
MET trigger slice components (auxiliary information for TrigMissingET)
std::string getFormattedHeader()
use this to print the header of the table printed by the following method
short m_status
status flag
float m_calib0
constant term, for calibration (default 0)
float m_calib1
scale, for calibration (default 1)
std::string getFormattedValues()
print the (1-line) table of all attributes
TrigMissingEtComponent()
constructor
unsigned short m_usedChannels
number of used channels
void reset()
clean values and calibration constants
short m_sumOfSigns
calibration: sum of energy signs (-1, +1)
~TrigMissingEtComponent()
destructor