ATLAS Offline Software
Loading...
Searching...
No Matches
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
19class NumJetVarTool : public AthAlgTool, virtual public IEventHistoVarTool {
20public:
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
29private:
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
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
NumJetVarTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual std::string varName() const
a compact description of the variable.
virtual float value(const xAOD::JetContainer &) const
the value of the variable for a given Event
Gaudi::Property< float > m_etaMax
bool m_failureOnMissingContainer
virtual StatusCode initialize()
Gaudi::Property< float > m_etCut
Gaudi::Property< float > m_ptCut
virtual ~NumJetVarTool()
Gaudi::Property< float > m_etaMin
Gaudi::Property< std::string > m_varName
JetContainer_v1 JetContainer
Definition of the current "jet container version".