ATLAS Offline Software
Loading...
Searching...
No Matches
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{
19public:
20
21 DiTauWPDecorator( const std::string& type, const std::string& name, const IInterface * parent);
22
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
32private:
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
DiTauToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Gaudi::Property< std::vector< float > > m_decorWPCuts
Gaudi::Property< std::vector< std::string > > m_decorWPs
bool passOmniWP(float score, float wp_thrshold) const
Gaudi::Property< std::string > m_scoreName
virtual ~DiTauWPDecorator()
DiTauWPDecorator(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode executeObj(xAOD::DiTauJet &xDiTau, const EventContext &ctx) const override
Execute - called for each Ditau jet.
virtual StatusCode initialize() override
Tool initializer.
Gaudi::Property< std::string > m_ditauContainerName
std::vector< SG::AuxElement::Accessor< char > > m_charDecors
DiTauJet_v1 DiTauJet
Definition of the current version.
Definition DiTauJet.h:17