110 mon_dEta, mon_dPhi, mon_eT_T2Calo, mon_hadET_T2Calo,
111 mon_rCore, mon_energyRatio, mon_etaBin, mon_Eta,
112 mon_Phi, mon_F1, mon_Weta2, mon_Wstot, mon_F3, PassedCuts );
114 PassedCuts = PassedCuts + 1;
116 float dEta(0), dPhi(0), eT_T2Calo(0), rCore(0), hadET_T2Calo(0), energyRatio(0),
eta(0),
phi(0), F1(0), Weta2(0), Wstot(0), F3(0);
120 ATH_MSG_DEBUG(
"AcceptAll property is set: taking all events" );
123 ATH_MSG_DEBUG(
"AcceptAll property not set: applying selection" );
126 auto roiDescriptor = input.roi;
128 if ( fabs( roiDescriptor->eta() ) > 2.6 ) {
129 ATH_MSG_DEBUG(
"REJECT The cluster had eta coordinates beyond the EM fiducial volume : " << roiDescriptor->eta() <<
"; stop the chain now" );
135 <<
": Eta = " << roiDescriptor->eta()
136 <<
", Phi = " << roiDescriptor->phi() );
139 double etaRef = roiDescriptor->eta();
140 double phiRef = roiDescriptor->phi();
142 if ( fabs( phiRef ) >
M_PI ) phiRef -= 2*
M_PI;
144 auto pClus = input.cluster;
145 float absEta = fabs( pClus->eta() );
152 bool inCrack = ( absEta > 2.37 || ( absEta > 1.37 && absEta < 1.52 ) );
153 dEta = pClus->eta() - etaRef;
156 dPhi = fabs( pClus->phi() - phiRef );
157 dPhi = ( dPhi <
M_PI ? dPhi : 2*
M_PI - dPhi );
160 if ( pClus->emaxs1() + pClus->e2tsts1() > 0 )
161 energyRatio = ( pClus->emaxs1() - pClus->e2tsts1() ) / ( pClus->emaxs1() + pClus->e2tsts1() );
164 if ( pClus->e277()!= 0. ) rCore = pClus->e237() / pClus->e277();
167 if ( fabs( pClus->energy() ) > 0.00001 ) F1 = ( pClus->energy( CaloSampling::EMB1 )+pClus->energy( CaloSampling::EME1 ) )/pClus->energy();
168 eT_T2Calo = pClus->et();
169 if ( eT_T2Calo!=0 && pClus->eta()!=0 ) hadET_T2Calo = pClus->ehad1()/cosh( fabs( pClus->eta() ) )/eT_T2Calo;
172 Weta2 = pClus->weta2();
175 Wstot = pClus->wstot();
178 float e0 = pClus->energy( CaloSampling::PreSamplerB ) + pClus->energy( CaloSampling::PreSamplerE );
179 float e1 = pClus->energy( CaloSampling::EMB1 ) + pClus->energy( CaloSampling::EME1 );
180 float e2 = pClus->energy( CaloSampling::EMB2 ) + pClus->energy( CaloSampling::EME2 );
181 float e3 = pClus->energy( CaloSampling::EMB3 ) + pClus->energy( CaloSampling::EME3 );
182 float eallsamples = e0+e1+e2+e3;
183 F3 = fabs( eallsamples )>0. ? e3/eallsamples : 0.;
187 <<
" roi eta=" << etaRef <<
" DeltaEta=" << dEta
196 PassedCuts = PassedCuts + 1;
200 <<
" roi phi="<< phiRef <<
" DeltaPhi="<< dPhi
209 PassedCuts = PassedCuts + 1;
212 if ( cutIndex == -1 ) {
220 PassedCuts = PassedCuts + 1;
230 PassedCuts = PassedCuts + 1;
234 if ( inCrack || F1 <
m_F1thr[0] ) {
235 ATH_MSG_DEBUG (
"TrigEMCluster: InCrack= " << inCrack <<
" F1=" << F1 );
243 PassedCuts = PassedCuts + 1;
244 if( inCrack ) energyRatio = -1;
245 mon_energyRatio = energyRatio;
249 if ( eT_T2Calo <
m_eTthr[cutIndex] ) {
253 mon_eT_T2Calo = eT_T2Calo;
254 PassedCuts = PassedCuts + 1;
256 float hadET_cut = 0.0;
258 if ( eT_T2Calo >
m_eT2thr[cutIndex] ) {
268 ATH_MSG_DEBUG (
"TrigEMCluster: ET_had=" << hadET_T2Calo <<
" cut: <" << hadET_cut );
269 if ( hadET_T2Calo > hadET_cut ) {
273 mon_hadET_T2Calo = hadET_T2Calo;
274 PassedCuts = PassedCuts + 1;
279 PassedCuts = PassedCuts + 1;
288 PassedCuts = PassedCuts + 1;
297 PassedCuts = PassedCuts + 1;
301 if ( F3 >
m_F3thr[cutIndex] ) {
306 PassedCuts = PassedCuts + 1;