ATLAS Offline Software
DiTauWPDecorator.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #pragma once
8 
9 // EDM include(s):
10 #include "xAODTau/DiTauJet.h"
11 #include "DiTauToolBase.h"
12 
15 
17  : public DiTauToolBase
18 {
19 public:
20 
21  DiTauWPDecorator( const std::string& type, const std::string& name, const IInterface * parent);
22 
23  virtual ~DiTauWPDecorator();
24 
25  // initialize the tool
26  virtual StatusCode initialize() override;
27 
28  virtual StatusCode executeObj(xAOD::DiTauJet& xDiTau, const EventContext& ctx ) const override;
29 
30  bool passOmniWP(float score, float wp_thrshold ) const;
31 
32 private:
33 
34  Gaudi::Property<std::string> m_scoreName{this, "ScoreName", "", "Name of the original score"};
35  Gaudi::Property<std::vector<std::string>> m_decorWPs{this, "DecorWPNames", {}, "Name of WPs"};
36  Gaudi::Property<std::vector<float>> m_decorWPCuts{this, "DecorWPCuts", {}, "Cut on each WP to be docorated for ditaus"};
37 
38  std::vector<SG::AuxElement::Accessor<char>> m_charDecors;
39 
40  Gaudi::Property<std::string> m_ditauContainerName{this, "DiTauContainerName", "", "Name of DiTauJetContainer, must be set when using "};
41 
42 };
43 
44 
WriteDecorHandleKeyArray.h
DiTauWPDecorator::m_scoreName
Gaudi::Property< std::string > m_scoreName
Definition: DiTauWPDecorator.h:34
PropertyWrapper.h
DiTauToolBase.h
DiTauWPDecorator::initialize
virtual StatusCode initialize() override
Tool initializer.
Definition: DiTauWPDecorator.cxx:19
DiTauWPDecorator::DiTauWPDecorator
DiTauWPDecorator(const std::string &type, const std::string &name, const IInterface *parent)
Definition: DiTauWPDecorator.cxx:9
DiTauWPDecorator::passOmniWP
bool passOmniWP(float score, float wp_thrshold) const
Definition: DiTauWPDecorator.cxx:47
DiTauWPDecorator::~DiTauWPDecorator
virtual ~DiTauWPDecorator()
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
DiTauWPDecorator::m_ditauContainerName
Gaudi::Property< std::string > m_ditauContainerName
Definition: DiTauWPDecorator.h:40
DiTauJet.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
DiTauToolBase
The base class for all tau tools.
Definition: DiTauToolBase.h:21
xAOD::score
@ score
Definition: TrackingPrimitives.h:514
DiTauWPDecorator::m_decorWPCuts
Gaudi::Property< std::vector< float > > m_decorWPCuts
Definition: DiTauWPDecorator.h:36
DiTauWPDecorator
Definition: DiTauWPDecorator.h:18
DiTauWPDecorator::m_decorWPs
Gaudi::Property< std::vector< std::string > > m_decorWPs
Definition: DiTauWPDecorator.h:35
xAOD::DiTauJet_v1
Definition: DiTauJet_v1.h:31
DiTauWPDecorator::m_charDecors
std::vector< SG::AuxElement::Accessor< char > > m_charDecors
Definition: DiTauWPDecorator.h:38
DiTauWPDecorator::executeObj
virtual StatusCode executeObj(xAOD::DiTauJet &xDiTau, const EventContext &ctx) const override
Execute - called for each Ditau jet.
Definition: DiTauWPDecorator.cxx:33