28 const std::vector<TrigConf::TriggerThreshold *> *caloThresholds)
31 this->construct(RoIWord0, RoIWord1, RoIWord2, caloThresholds);
36 : m_roiWord0(RoIWord0),
45 : m_roiWord0(
obj.m_roiWord0),
46 m_roiWord1(
obj.m_roiWord1),
47 m_roiWord2(
obj.m_roiWord2),
48 m_etMissThresholdValue(
obj.m_etMissThresholdValue),
49 m_sumEtThresholdValue(
obj.m_sumEtThresholdValue),
50 m_mEtSigThresholdValue(
obj.m_mEtSigThresholdValue)
78 const std::vector<TriggerThreshold *> *caloThresholds)
80 m_roiWord0 = RoIWord0;
81 m_roiWord1 = RoIWord1;
82 m_roiWord2 = RoIWord2;
85 std::map< int, TriggerThreshold* > etMissMap;
86 std::map< int, TriggerThreshold* > sumEtMap;
87 std::map< int, TriggerThreshold* > mEtSigMap;
88 for( std::vector< TriggerThreshold* >::const_iterator
it = caloThresholds->begin();
89 it != caloThresholds->end(); ++
it ) {
90 if( ( *it )->type() == L1DataDef::xeType() ) {
91 int num = ( *it )->thresholdNumber();
92 etMissMap.insert( std::map< int, TriggerThreshold* >::value_type(
num, *
it ) );
94 else if( ( *it )->type() == L1DataDef::teType() ) {
95 int num = ( *it )->thresholdNumber();
96 sumEtMap.insert( std::map< int, TriggerThreshold* >::value_type(
num, *
it ) );
98 else if( ( *it )->type() == L1DataDef::xsType() ) {
99 int num = ( *it )->thresholdNumber();
100 mEtSigMap.insert( std::map< int, TriggerThreshold* >::value_type(
num, *
it ) );
105 for (
unsigned int xeMapping : etMissThresholdsPassed())
107 std::map<int, TriggerThreshold *>::const_iterator thr = etMissMap.find(xeMapping - 1);
108 if (thr != etMissMap.end()) {
110 m_etMissThresholdValue.insert(std::map<int, unsigned int>::value_type(xeMapping, ttv->
thresholdValueCount()));
114 for (
unsigned int teMapping : sumEtThresholdsPassed())
116 std::map<int, TriggerThreshold *>::const_iterator thr = sumEtMap.find(teMapping - 1);
117 if (thr != sumEtMap.end()) {
119 m_sumEtThresholdValue.insert(std::map<int, unsigned int>::value_type(teMapping, ttv->
thresholdValueCount()));
123 for (
unsigned int xsMapping : mEtSigThresholdsPassed())
125 std::map<int, TriggerThreshold *>::const_iterator thr = mEtSigMap.find(xsMapping - 1);
126 if (thr != mEtSigMap.end()) {
128 m_mEtSigThresholdValue.insert(std::map<int, unsigned int>::value_type(xsMapping, ttv->
thresholdValueCount()));
136 if ( !
l1menu->thresholds(
"XE").empty() ) {
137 for (
unsigned int xeMapping : etMissThresholdsPassed())
144 if ( !
l1menu->thresholds(
"TE").empty() ) {
145 for (
unsigned int teMapping : sumEtThresholdsPassed())
152 if ( !
l1menu->thresholds(
"XS").empty() ) {
153 for (
unsigned int xsMapping : mEtSigThresholdsPassed())
182 if ( this->isValidEtMissThreshold( thresholdNumber ) ) {
184 return (
get.etMissThresholdPassed( m_roiWord2, thresholdNumber ) );
194 if ( this->isValidSumEtThreshold( thresholdNumber ) ) {
196 return (
get.sumEtThresholdPassed( m_roiWord1, thresholdNumber ) );
206 if ( this->isValidSumEtThreshold( thresholdNumber ) ) {
208 return (
get.mEtSigThresholdPassed( m_roiWord0, thresholdNumber ) );
217 return get.etMissThresholdsPassed(m_roiWord2);
224 return get.etSumThresholdsPassed(m_roiWord1);
231 return get.mEtSigThresholdsPassed(m_roiWord0);
238 std::map< int, unsigned int >::const_iterator
it = m_etMissThresholdValue.find(
thresh );
239 if(
it != m_etMissThresholdValue.end() ) {
250 std::map< int, unsigned int >::const_iterator
it = m_sumEtThresholdValue.find(
thresh );
251 if(
it != m_sumEtThresholdValue.end() ) {
262 std::map< int, unsigned int >::const_iterator
it = m_mEtSigThresholdValue.find(
thresh );
263 if(
it != m_mEtSigThresholdValue.end() ) {
296 return get.energyX(m_roiWord0);
305 return get.energyY(m_roiWord1);
313 return get.energyT(m_roiWord2);
320 return get.energyOverflow(m_roiWord0);
327 return get.energyOverflow(m_roiWord1);
334 return get.energyOverflow(m_roiWord2);