16 declareInterface<IJetHistoFiller>(
this);
24 return StatusCode::SUCCESS;
29 if(jets.empty())
return StatusCode::SUCCESS;
35 return StatusCode::FAILURE;
49 std::vector<const xAOD::Jet*> listJets(jets.begin(), jets.end());
51 for (
const xAOD::Jet* refjet : *refJets ){
52 if (listJets.empty() )
break;
61 auto itend = listJets.end()-1;
67 double dr = sqrt(dr2min);
76 parentAlg.
fill(
m_group, refPt , passDr1, passDr2, passDr3 , closestDr);
79 if (refPt > 0.) relDiff = ( matched->
pt()*
m_energyScale - refPt )/refPt;
81 refEta = refjet->eta();
87 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Gaudi::Property< float > m_energyScale
virtual StatusCode processJetContainer(const JetMonitoringAlg &parentAlg, const xAOD::JetContainer &jets, const EventContext &ctx) const
SG::ReadHandleKey< xAOD::JetContainer > m_refContainerKey
Gaudi::Property< std::string > m_group
virtual StatusCode initialize()
JetHistoResponseAndEff(const std::string &type, const std::string &name, const IInterface *parent)
A monitoring algorithm in charge of filling histogram for a JetContainer.
Declare a monitored scalar variable.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual double pt() const
The transverse momentum ( ) of the particle.
void fill(const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > &&variables) const
Fills a vector of variables to a group by reference.
auto min_transformed_element(RANGE &&r, FUNC &&f)
Find the minimum transformed element in a range.
void iter_swap(typename DataModel_detail::iterator< DV > a, typename DataModel_detail::iterator< DV > b)
Specialization of iter_swap for DataVector/DataList.
double deltaR2(double rapidity1, double phi1, double rapidity2, double phi2)
from bare rapidity,phi
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".