Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
31 return StatusCode::SUCCESS;
67 std::list<const xAOD::Jet*> listJets(cont.
begin(), cont.
end());
69 for (
const xAOD::Jet* refjet : *refContainer ){
70 double dr2min = 500000;
72 if (listJets.empty() )
break;
76 for( ;
it != listJets.end(); ++
it) {
78 if(dr2 < dr2min) { dr2min = dr2; itmin =
it ;}
80 if (itmin == listJets.end())
break;
83 listJets.erase(itmin);
85 double dr = std::sqrt(dr2min);
86 double refPt = refjet->pt() /
GeV;
95 double relDiff = -999;
98 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.
double deltaR2(double rapidity1, double phi1, double rapidity2, double phi2)
from bare rapidity,phi
TProfile * m_etres_noShift_eta
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
def TProfile(*args, **kwargs)
::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...
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
EfficiencyResponseHistos(const std::string &t)
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.