ATLAS Offline Software
Loading...
Searching...
No Matches
PhysValTau.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2//
3// Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
4//
5#ifndef TAUDQA_PHYSVALTAU_H
6#define TAUDQA_PHYSVALTAU_H
7
8#include <memory>
9#include <string>
10
11#include "GaudiKernel/ToolHandle.h"
14
15// FrameWork includes
17
18// Local includes
22
23// Local includes
26
29{
30
31public:
33 PhysValTau( const std::string& type,
34 const std::string& name,
35 const IInterface* parent );
36
37 // Athena algtool's Hooks
38 virtual StatusCode initialize();
39 virtual StatusCode bookHistograms();
40 virtual StatusCode fillHistograms(const EventContext& ctx);
41 virtual StatusCode procHistograms();
42
43
44private:
45 // properties
46 Gaudi::Property<bool> m_isMC{this, "isMC", false};
47
48 // Tool used for truth-matching
49 ToolHandle<TauAnalysisTools::ITauTruthMatchingTool> m_truthTool{this, "TauTruthMatchingTool", "TauAnalysisTools::TauTruthMatchingTool/TauTruthMatchingTool"};
50 // Tool used to select "primitive" and "nominal" taus
51 ToolHandle<TauAnalysisTools::ITauSelectionTool> m_primTauSel{this, "PrimitiveTauSelectionTool", "TauAnalysisTools::TauSelectionTool/PrimitiveTauSelectionTool"};
52 ToolHandle<TauAnalysisTools::ITauSelectionTool> m_nomiTauSel{this, "NominalTauSelectionTool", "TauAnalysisTools::TauSelectionTool/NominalTauSelectionTool"};
53
54 //container name
55 SG::ReadHandleKey<xAOD::TauJetContainer> m_tauContainerKey { this, "TauContainerName", "TauJets", "Input tau container key" };
56 SG::ReadHandleKey<xAOD::TruthParticleContainer> m_truthTauContainerKey { this, "TruthTauContainerName", "TruthTaus", "Input truth tau container key" };
57
58 // decoration name
59 SG::ReadDecorHandleKey<xAOD::TauJetContainer> m_IsTruthMatchedKey{this, "IsTruthMatchedDecorKey", "IsTruthMatched", "IsTruthMatched decoration key"};
60 SG::ReadDecorHandleKey<xAOD::TruthParticleContainer> m_IsHadronicTauKey{this, "IsHadronicTauDecorKey", "IsHadronicTau", "IsHadronicTau decoration key"};
61
62 //Histograms
63 // general tau all prongs plots
64 std::unique_ptr<TauValidationPlotsNominal> m_oTauValidationPlotsNominal;
65 std::unique_ptr<TauValidationPlotsNoCuts> m_oTauValidationPlotsNoCuts;
66
67};
68
69#endif //> !TAUDQA_PHYSVALTAU_H
Handle class for reading a decoration on an object.
Property holding a SG store/key/clid from which a ReadHandle is made.
ManagedMonitorToolBase(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode procHistograms()
An inheriting class should either override this function or finalHists().
ToolHandle< TauAnalysisTools::ITauTruthMatchingTool > m_truthTool
Definition PhysValTau.h:49
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_IsHadronicTauKey
Definition PhysValTau.h:60
ToolHandle< TauAnalysisTools::ITauSelectionTool > m_primTauSel
Definition PhysValTau.h:51
virtual StatusCode fillHistograms(const EventContext &ctx)
An inheriting class should either override this function or fillHists().
std::unique_ptr< TauValidationPlotsNominal > m_oTauValidationPlotsNominal
Definition PhysValTau.h:64
SG::ReadDecorHandleKey< xAOD::TauJetContainer > m_IsTruthMatchedKey
Definition PhysValTau.h:59
virtual StatusCode bookHistograms()
An inheriting class should either override this function or bookHists().
ToolHandle< TauAnalysisTools::ITauSelectionTool > m_nomiTauSel
Definition PhysValTau.h:52
SG::ReadHandleKey< xAOD::TauJetContainer > m_tauContainerKey
Definition PhysValTau.h:55
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthTauContainerKey
Definition PhysValTau.h:56
std::unique_ptr< TauValidationPlotsNoCuts > m_oTauValidationPlotsNoCuts
Definition PhysValTau.h:65
PhysValTau(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
virtual StatusCode initialize()
Gaudi::Property< bool > m_isMC
Definition PhysValTau.h:46
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.