4#include "GaudiKernel/SystemOfUnits.h"
29 if(!input.trig_photon){
46 float HadEmRatio = -99.0;
56 float absEta = std::abs( photon->eta() );
62 Eratio = photon->eratio();
63 Reta = photon->rcore();
65 HadET = photon->etHad();
69 HadEmRatio = (EmET!=0) ? HadET/EmET : -1.0;
73 ATH_MSG_DEBUG (
"Accept all property is set: TrigPhoton: ET_em=" << EmET <<
" cut in etaBin "
74 << etaBin <<
" is ET_em >= " <<
m_eTthr[0] );
88 <<
" cut in etaBin " << etaBin <<
" is Reta >= " <<
m_carcorethr[etaBin] );
92 bool inCrack = ( absEta > 2.37 || ( absEta > 1.37 && absEta < 1.52) );
93 if ( inCrack || f1<
m_F1thr[0] ) {
95 <<
" Eratio cut not being applied" );
99 if(inCrack) Eratio = -1;
104 <<
" not in etaBin " << etaBin <<
" is ET_em < " <<
m_eTthr[etaBin] );
120 if ( HadEmRatio < hadET_cut ){
122 <<
" not in etaBin " << etaBin );
135 const float absEta = std::abs(
eta);
136 auto binIterator = std::adjacent_find(
m_etabin.begin(),
m_etabin.end(), [=](
float left,
float right){ return left < absEta and absEta < right; } );
137 if ( binIterator ==
m_etabin.end() ) {
140 return binIterator -
m_etabin.begin();
Scalar eta() const
pseudorapidity method
#define ATH_MSG_VERBOSE(x)
The common trigger namespace for trigger analysis tools.
TrigPhoton_v1 TrigPhoton
Declare the latest version of TrigPhoton.