![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
30 return StatusCode::SUCCESS;
66 std::list<const xAOD::Jet*> listJets(cont.
begin(), cont.
end());
68 for (
const xAOD::Jet* refjet : *refContainer ){
69 double dr2min = 500000;
71 if (listJets.empty() )
break;
75 for( ;
it != listJets.end(); ++
it) {
76 double dr2 = jet::JetDistances::deltaR2(*(*
it),*refjet);
77 if(dr2 < dr2min) { dr2min = dr2; itmin =
it ;}
81 listJets.erase(itmin);
83 double dr = sqrt(dr2min);
84 double refPt = refjet->pt() /
GeV;
93 double relDiff = -999;
96 relDiff = (
matched->pt() /
GeV - refPt )/refPt;
def retrieve(aClass, aKey=None)
JetConstituentVector::iterator iterator
std::string m_refContainerName
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
ToolHandleArray< HistoDefinitionTool > m_histoDef
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
TProfile * m_etres_noShift_eta
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
TProfile * m_etres_noShift_pt
#define CHECK(...)
Evaluate an expression and check for errors.
virtual int buildHistos()
Wrapper to avoid constant divisions when using units.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
virtual int fillHistosFromContainer(const xAOD::JetContainer &cont, float weight)
T * bookHisto(T *h, Interval_t ityp=useToolInterval)
register the histo h in this group (if h!=NULL). The histo name is changed if m_prefixedHistoName==tr...
EfficiencyResponseHistos(const std::string &t)
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.