ATLAS Offline Software
FJvtSelectionTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef JETJVTEFFICIENCY_FJVTSELECTIONTOOL_H
6 #define JETJVTEFFICIENCY_FJVTSELECTIONTOOL_H
7 
10 
11 namespace CP {
14  public:
15  FJvtSelectionTool(const std::string &name);
16  virtual ~FJvtSelectionTool() override = default;
17 
18  virtual StatusCode initialize() override;
19 
20  private:
21  // Used to correctly initialize the ReadDecorHandle
22  Gaudi::Property<std::string> m_jetContainer{
23  this, "JetContainer", "",
24  "The name of the jet container, used to correctly initialize the read handles"};
25  Gaudi::Property<std::string> m_wp{
26  this, "WorkingPoint", "Loose",
27  "The working point to use. Set to 'Custom' to manually set the values"};
28  Gaudi::Property<float> m_jvtCut{this, "JvtCut", 999, "The JVT selection to make"};
30  this, "JvtMomentName", "DFCommonJets_fJvt", "The name of the Jvt moment to use"};
32  this, "TimingMomentName", "Timing", "The name of the timing moment to use"};
33  Gaudi::Property<float> m_timingCut{
34  this, "TimingCut", -1, "Only accept jets with time less than this; negative values deactivate timing requirement"};
35 
36  virtual bool select(const xAOD::IParticle *jet) const override;
37 
38  // TODO: TEMPORARY
39  // Backup accessors to allow using these tools in the JetJvtEfficiency object which does not
40  // know its parent jet container name
43  };
44 } // namespace CP
45 
46 #endif //> !JETJVTEFFICIENCY_JVTSELECTIONTOOL_H
PropertyWrapper.h
CP::FJvtSelectionTool::m_timingMoment
SG::ReadDecorHandleKey< xAOD::JetContainer > m_timingMoment
Definition: FJvtSelectionTool.h:31
JvtSelectionToolBase.h
CP::FJvtSelectionTool::~FJvtSelectionTool
virtual ~FJvtSelectionTool() override=default
CP::FJvtSelectionTool
Definition: FJvtSelectionTool.h:12
CP::FJvtSelectionTool::m_jvtMoment
SG::ReadDecorHandleKey< xAOD::JetContainer > m_jvtMoment
Definition: FJvtSelectionTool.h:29
CP::FJvtSelectionTool::select
virtual bool select(const xAOD::IParticle *jet) const override
Definition: FJvtSelectionTool.cxx:45
SG::ConstAccessor< float >
IAsgSelectionTool
Definition: IAsgSelectionTool.h:28
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:41
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
CP::FJvtSelectionTool::m_timingAcc
SG::ConstAccessor< float > m_timingAcc
Definition: FJvtSelectionTool.h:42
CP::FJvtSelectionTool::m_jetContainer
Gaudi::Property< std::string > m_jetContainer
Definition: FJvtSelectionTool.h:22
CP::FJvtSelectionTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: FJvtSelectionTool.cxx:15
CP::JvtSelectionToolBase
Definition: JvtSelectionToolBase.h:15
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
CP::FJvtSelectionTool::m_jvtCut
Gaudi::Property< float > m_jvtCut
Definition: FJvtSelectionTool.h:28
CP::FJvtSelectionTool::m_jvtAcc
SG::ConstAccessor< float > m_jvtAcc
Definition: FJvtSelectionTool.h:41
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::FJvtSelectionTool::FJvtSelectionTool
FJvtSelectionTool(const std::string &name)
Definition: FJvtSelectionTool.cxx:10
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
CP::FJvtSelectionTool::m_wp
Gaudi::Property< std::string > m_wp
Definition: FJvtSelectionTool.h:25
CP::FJvtSelectionTool::m_timingCut
Gaudi::Property< float > m_timingCut
Definition: FJvtSelectionTool.h:33
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85