24 return StatusCode::SUCCESS;
48 if( cont.
size()<2)
return 0;
53 double dEta = j1->eta() - j2->eta();
54 double dPhi = fabs(j1->phi() - j2->phi() );
55 if(dPhi > 2*3.14159) dPhi -= 2*3.14159;
56 double dR = sqrt( dPhi*dPhi + dEta*dEta);
58 if (j1->pt() > 0.) histFrac = j2->pt()/j1->pt();
#define CHECK(...)
Evaluate an expression and check for errors.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
size_type size() const noexcept
Returns the number of elements in the collection.
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...
JetHistoBase(const std::string &t)
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
virtual int buildHistos()
ToolHandleArray< HistoDefinitionTool > m_histoDef
virtual int fillHistosFromContainer(const xAOD::JetContainer &cont, float weight)
LeadingJetsRelations(const std::string &t)
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".