|
ATLAS Offline Software
|
Go to the documentation of this file.
13 m_refContainerKey(
"REFCONTAINER")
15 declareInterface<IJetHistoFiller>(
this);
23 return StatusCode::SUCCESS;
28 if(
jets.empty())
return StatusCode::SUCCESS;
34 return StatusCode::FAILURE;
49 std::list<const xAOD::Jet*> listJets(
jets.begin(),
jets.end());
51 for (
const xAOD::Jet* refjet : *refJets ){
52 double dr2min = 500000;
54 if (listJets.empty() )
break;
58 for( ;
it != listJets.end(); ++
it) {
60 if(dr2 < dr2min) { dr2min = dr2; itmin =
it ;}
65 listJets.erase(itmin);
67 double dr = sqrt(dr2min);
76 parentAlg.
fill(
m_group, refPt , passDr1, passDr2, passDr3 , closestDr);
81 refEta = refjet->eta();
87 return StatusCode::SUCCESS;
JetConstituentVector::iterator iterator
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
double deltaR2(double rapidity1, double phi1, double rapidity2, double phi2)
from bare rapidity,phi
Gaudi::Property< float > m_energyScale
SG::ReadHandleKey< xAOD::JetContainer > m_refContainerKey
::StatusCode StatusCode
StatusCode definition for legacy code.
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.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual StatusCode initialize()
JetHistoResponseAndEff(const std::string &type, const std::string &name, const IInterface *parent)
Gaudi::Property< std::string > m_group
virtual StatusCode processJetContainer(const JetMonitoringAlg &parentAlg, const xAOD::JetContainer &jets, const EventContext &ctx) const
Declare a monitored scalar variable.