111 if(summary.compare(
"FCal")==0){
124 std::list<const xAOD::Jet*> listJets(cont.
begin(), cont.
end());
126 for (
const xAOD::Jet* refjet : *refContainer ){
127 double dr2min = 500000;
129 if (listJets.empty() )
break;
131 std::list<const xAOD::Jet*>::iterator it=listJets.begin();
132 std::list<const xAOD::Jet*>::iterator itmin=listJets.end();
133 for( ; it != listJets.end(); ++it) {
135 if(dr2 < dr2min) { dr2min = dr2; itmin = it ;}
137 if (itmin == listJets.end())
break;
140 listJets.erase(itmin);
142 double dr = sqrt(dr2min);
143 double refPt = refjet->pt() *
toGeV;
145 if (fabs(refjet->eta()) > 2.1 )
continue;
147 m_eff1->Fill(refPt, dr<0.1 ? weight : 0 );
148 m_eff2->Fill(refPt, dr<0.2 ? weight : 0 );
149 m_eff3->Fill(refPt, dr<0.3 ? weight : 0 );
172 float Acos = std::acos(std::cos(2*(matched->
getAttribute<
float>(
"JetEtaJESScaleMomentum_phi") -
m_psiN_FCal)));
177 double relDiff = -999.;
178 if (refPt > 0.) relDiff = ( matched->
pt()*
toGeV - refPt )/refPt;
179 m_etres->Fill( relDiff, weight );
181 if (matched->
pt()*
toGeV > 100) {