19 const std::string&
name,
36 ATH_MSG_ERROR(
" There are no cuts set (EtaBins property is an empty list)" );
37 return StatusCode::FAILURE;
47 unsigned int nEtaBin =
m_etabin.size();
49 #define CHECK_SIZE( __n) if ( m_##__n.size() != (nEtaBin - 1) ) \
50 { ATH_MSG_DEBUG(" __n size is " << m_##__n.size() << " but needs to be " << (nEtaBin - 1) ); return StatusCode::FAILURE; }
60 return StatusCode::SUCCESS;
79 mon_etaBin, mon_Eta, mon_Phi, mon_mu,
83 PassedCuts = PassedCuts + 1;
87 auto roiDescriptor =
input.roi;
89 if ( fabs( roiDescriptor->eta() ) > 2.6 ) {
90 ATH_MSG_DEBUG(
"REJECT The photon had eta coordinates beyond the EM fiducial volume : "
91 << roiDescriptor->eta() <<
"; stop the chain now" );
97 <<
": Eta = " << roiDescriptor->eta()
98 <<
", Phi = " << roiDescriptor->phi() );
101 double etaRef = roiDescriptor->eta();
102 double phiRef = roiDescriptor->phi();
104 if ( fabs( phiRef ) >
M_PI ) phiRef -= 2*
M_PI;
106 auto pClus =
input.photon->caloCluster();
108 float absEta = fabs( pClus->eta() );
111 dEta = pClus->eta() - etaRef;
113 dPhi = fabs( pClus->phi() - phiRef );
120 <<
" roi eta=" << etaRef <<
" DeltaEta=" <<
dEta
129 PassedCuts = PassedCuts + 1;
133 <<
" roi phi="<< phiRef <<
" DeltaPhi="<<
dPhi
142 PassedCuts = PassedCuts + 1;
145 if ( cutIndex == -1 ) {
152 PassedCuts = PassedCuts + 1;
156 if ( ET <
m_eTthr[cutIndex] ) {
161 PassedCuts = PassedCuts + 1;
175 avg_mu = eventInfoDecor(0);
245 auto binIterator = std::adjacent_find(
m_etabin.begin(),
m_etabin.end(), [=](
float left,
float right){ return left < absEta and absEta < right; } );
246 if ( binIterator ==
m_etabin.end() ) {
249 return binIterator -
m_etabin.begin();
261 return StatusCode::SUCCESS;