27 const std::vector<TrigConf::TriggerThreshold *> *caloThresholds)
30 this->construct(RoIWord0, RoIWord1, RoIWord2, caloThresholds);
35 : m_roiWord0(RoIWord0),
44 : m_roiWord0(
obj.m_roiWord0),
45 m_roiWord1(
obj.m_roiWord1),
46 m_roiWord2(
obj.m_roiWord2),
47 m_etMissThresholdValue(
obj.m_etMissThresholdValue),
48 m_sumEtThresholdValue(
obj.m_sumEtThresholdValue),
49 m_mEtSigThresholdValue(
obj.m_mEtSigThresholdValue)
77 const std::vector<TriggerThreshold *> *caloThresholds)
79 m_roiWord0 = RoIWord0;
80 m_roiWord1 = RoIWord1;
81 m_roiWord2 = RoIWord2;
84 std::map< int, TriggerThreshold* > etMissMap;
85 std::map< int, TriggerThreshold* > sumEtMap;
86 std::map< int, TriggerThreshold* > mEtSigMap;
87 for( std::vector< TriggerThreshold* >::const_iterator
it = caloThresholds->begin();
88 it != caloThresholds->end(); ++
it ) {
90 int num = ( *it )->thresholdNumber();
91 etMissMap.insert( std::map< int, TriggerThreshold* >::value_type(
num, *
it ) );
94 int num = ( *it )->thresholdNumber();
95 sumEtMap.insert( std::map< int, TriggerThreshold* >::value_type(
num, *
it ) );
98 int num = ( *it )->thresholdNumber();
99 mEtSigMap.insert( std::map< int, TriggerThreshold* >::value_type(
num, *
it ) );
104 for (
unsigned int xeMapping : etMissThresholdsPassed())
106 std::map<int, TriggerThreshold *>::const_iterator thr = etMissMap.find(xeMapping - 1);
107 if (thr != etMissMap.end()) {
109 m_etMissThresholdValue.insert(std::map<int, unsigned int>::value_type(xeMapping, ttv->
thresholdValueCount()));
113 for (
unsigned int teMapping : sumEtThresholdsPassed())
115 std::map<int, TriggerThreshold *>::const_iterator thr = sumEtMap.find(teMapping - 1);
116 if (thr != sumEtMap.end()) {
118 m_sumEtThresholdValue.insert(std::map<int, unsigned int>::value_type(teMapping, ttv->
thresholdValueCount()));
122 for (
unsigned int xsMapping : mEtSigThresholdsPassed())
124 std::map<int, TriggerThreshold *>::const_iterator thr = mEtSigMap.find(xsMapping - 1);
125 if (thr != mEtSigMap.end()) {
127 m_mEtSigThresholdValue.insert(std::map<int, unsigned int>::value_type(xsMapping, ttv->
thresholdValueCount()));
135 if ( !
l1menu->thresholds(
"XE").empty() ) {
136 for (
unsigned int xeMapping : etMissThresholdsPassed())
143 if ( !
l1menu->thresholds(
"TE").empty() ) {
144 for (
unsigned int teMapping : sumEtThresholdsPassed())
151 if ( !
l1menu->thresholds(
"XS").empty() ) {
152 for (
unsigned int xsMapping : mEtSigThresholdsPassed())
181 if ( this->isValidEtMissThreshold( thresholdNumber ) ) {
183 return (
get.etMissThresholdPassed( m_roiWord2, thresholdNumber ) );
193 if ( this->isValidSumEtThreshold( thresholdNumber ) ) {
195 return (
get.sumEtThresholdPassed( m_roiWord1, thresholdNumber ) );
205 if ( this->isValidSumEtThreshold( thresholdNumber ) ) {
207 return (
get.mEtSigThresholdPassed( m_roiWord0, thresholdNumber ) );
216 return get.etMissThresholdsPassed(m_roiWord2);
223 return get.etSumThresholdsPassed(m_roiWord1);
230 return get.mEtSigThresholdsPassed(m_roiWord0);
237 std::map< int, unsigned int >::const_iterator
it = m_etMissThresholdValue.find(
thresh );
238 if(
it != m_etMissThresholdValue.end() ) {
249 std::map< int, unsigned int >::const_iterator
it = m_sumEtThresholdValue.find(
thresh );
250 if(
it != m_sumEtThresholdValue.end() ) {
261 std::map< int, unsigned int >::const_iterator
it = m_mEtSigThresholdValue.find(
thresh );
262 if(
it != m_mEtSigThresholdValue.end() ) {
295 return get.energyX(m_roiWord0);
304 return get.energyY(m_roiWord1);
312 return get.energyT(m_roiWord2);
319 return get.energyOverflow(m_roiWord0);
326 return get.energyOverflow(m_roiWord1);
333 return get.energyOverflow(m_roiWord2);