55 {
56
57 bool pass = false;
58
67 etaBin, monEta,monPhi,PassedCuts );
68
69 PassedCuts = PassedCuts + 1;
70
71 auto roiDescriptor = input.roi;
72
73
74 if ( std::abs( roiDescriptor->eta() ) > 2.6 ) {
75 ATH_MSG_DEBUG(
"REJECT The cluster had eta coordinates beyond the EM fiducial volume : " << roiDescriptor->eta() <<
"; stop the chain now" );
76 pass=false;
77 return pass;
78 }
79
81 << ": Eta = " << roiDescriptor->eta()
82 << ", Phi = " << roiDescriptor->phi() );
83
84
85 double etaRef = roiDescriptor->eta();
86 double phiRef = roiDescriptor->phi();
87
88 if ( std::abs( phiRef ) >
M_PI ) phiRef -= 2*
M_PI;
89
90
91 auto pClus = input.cluster;
92
93 float absEta = std::abs( pClus->eta() );
94 const int cutIndex = findCutIndex( absEta );
95
96
97
98 dEta = pClus->eta() - etaRef;
99
100 dPhi = std::abs( pClus->phi() - phiRef );
101 dPhi = ( dPhi <
M_PI ? dPhi : 2*
M_PI - dPhi );
102 eT_Cluster = pClus->et();
103
105 << " roi eta=" << etaRef << " DeltaEta=" << dEta
106 << " cut: <" << m_detacluster );
107
108 if ( std::abs( pClus->eta() - etaRef ) > m_detacluster ) {
110 return pass;
111 }
112 PassedCuts = PassedCuts + 1;
113
114
116 << " roi phi="<< phiRef << " DeltaPhi="<< dPhi
117 << " cut: <" << m_dphicluster );
118
119 if( dPhi > m_dphicluster ) {
121 return pass;
122 }
123 PassedCuts = PassedCuts + 1;
124
125
126 if ( cutIndex == -1 ) {
128 return pass;
129 } else {
131 }
132 PassedCuts = PassedCuts + 1;
133
134
135 ATH_MSG_DEBUG(
"CaloCluster: ET_em=" << eT_Cluster <<
" cut: >" << m_eTthr[cutIndex] );
136 if ( eT_Cluster < m_eTthr[cutIndex] ) {
138 return pass;
139 }
140 PassedCuts = PassedCuts + 1;
141
142
143 pass = true;
144
145
147
148 return pass;
149
150}
Group of local monitoring quantities and retain correlation when filling histograms
Declare a monitored scalar variable.