18 const std::string&
name,
35 ATH_MSG_ERROR(
" There are no cuts set (EtaBins property is an empty list)" );
36 return StatusCode::FAILURE;
46 unsigned int nEtaBin =
m_etabin.size();
48 #define CHECK_SIZE( __n) if ( m_##__n.size() != (nEtaBin - 1) ) \
49 { ATH_MSG_DEBUG(" __n size is " << m_##__n.size() << " but needs to be " << (nEtaBin - 1) ); return StatusCode::FAILURE; }
59 return StatusCode::SUCCESS;
78 mon_etaBin, mon_Eta, mon_Phi, mon_mu,
82 PassedCuts = PassedCuts + 1;
86 auto roiDescriptor =
input.roi;
88 if ( fabs( roiDescriptor->eta() ) > 2.6 ) {
89 ATH_MSG_DEBUG(
"REJECT The photon had eta coordinates beyond the EM fiducial volume : "
90 << roiDescriptor->eta() <<
"; stop the chain now" );
96 <<
": Eta = " << roiDescriptor->eta()
97 <<
", Phi = " << roiDescriptor->phi() );
100 double etaRef = roiDescriptor->eta();
101 double phiRef = roiDescriptor->phi();
103 if ( fabs( phiRef ) >
M_PI ) phiRef -= 2*
M_PI;
105 auto pClus =
input.photon->caloCluster();
107 float absEta = fabs( pClus->eta() );
110 dEta = pClus->eta() - etaRef;
112 dPhi = fabs( pClus->phi() - phiRef );
119 <<
" roi eta=" << etaRef <<
" DeltaEta=" <<
dEta
128 PassedCuts = PassedCuts + 1;
132 <<
" roi phi="<< phiRef <<
" DeltaPhi="<<
dPhi
141 PassedCuts = PassedCuts + 1;
144 if ( cutIndex == -1 ) {
151 PassedCuts = PassedCuts + 1;
155 if ( ET <
m_eTthr[cutIndex] ) {
160 PassedCuts = PassedCuts + 1;
174 avg_mu = eventInfoDecor(0);
244 auto binIterator = std::adjacent_find(
m_etabin.begin(),
m_etabin.end(), [=](
float left,
float right){ return left < absEta and absEta < right; } );
245 if ( binIterator ==
m_etabin.end() ) {
248 return binIterator -
m_etabin.begin();
260 return StatusCode::SUCCESS;