ATLAS Offline Software
NumJetVarTool.h
Go to the documentation of this file.
1 /* this file is -*- C++ -*-
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef JETMONITORING_NUMJETVARTOOL_H
6 #define JETMONITORING_NUMJETVARTOOL_H
7 
9 #include "GaudiKernel/IAlgTool.h"
11 
18 
19 class NumJetVarTool : public AthAlgTool, virtual public IEventHistoVarTool {
20 public:
21  NumJetVarTool(const std::string & type, const std::string & name, const IInterface* parent);
22  virtual ~NumJetVarTool(){}
23 
24  virtual StatusCode initialize() ;
25 
26  virtual float value(const xAOD::JetContainer&) const;
27  virtual std::string varName() const {return m_varName;}
28 
29 private:
30 
31  Gaudi::Property<float> m_ptCut = {this,"PtCut", 0.};
32  Gaudi::Property<float> m_etCut = {this,"EtCut", 0.};
33  Gaudi::Property<float> m_etaMin = {this,"EtaMin", -10.};
34  Gaudi::Property<float> m_etaMax = {this,"EtaMax", 10.};
35  Gaudi::Property<std::string> m_varName {this,"VarName", ""};
37 
38 };
39 
40 
41 #endif
NumJetVarTool::value
virtual float value(const xAOD::JetContainer &) const
the value of the variable for a given Event
Definition: NumJetVarTool.cxx:26
NumJetVarTool::initialize
virtual StatusCode initialize()
Definition: NumJetVarTool.cxx:18
NumJetVarTool::m_etaMin
Gaudi::Property< float > m_etaMin
Definition: NumJetVarTool.h:33
EventHistoVarTool.h
NumJetVarTool::m_etaMax
Gaudi::Property< float > m_etaMax
Definition: NumJetVarTool.h:34
NumJetVarTool::m_etCut
Gaudi::Property< float > m_etCut
Definition: NumJetVarTool.h:32
NumJetVarTool
Definition: NumJetVarTool.h:19
IEventHistoVarTool
Definition: EventHistoVarTool.h:25
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
NumJetVarTool::NumJetVarTool
NumJetVarTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: NumJetVarTool.cxx:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
NumJetVarTool::m_ptCut
Gaudi::Property< float > m_ptCut
Definition: NumJetVarTool.h:31
NumJetVarTool::m_failureOnMissingContainer
bool m_failureOnMissingContainer
Definition: NumJetVarTool.h:36
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
NumJetVarTool::m_varName
Gaudi::Property< std::string > m_varName
Definition: NumJetVarTool.h:35
AthAlgTool
Definition: AthAlgTool.h:26
NumJetVarTool::varName
virtual std::string varName() const
a compact description of the variable.
Definition: NumJetVarTool.h:27
NumJetVarTool::~NumJetVarTool
virtual ~NumJetVarTool()
Definition: NumJetVarTool.h:22