ATLAS Offline Software
Loading...
Searching...
No Matches
HIJetSignificanceTool.h
Go to the documentation of this file.
1// this file is -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5*/
6
11
12#ifndef HIJETREC_HIJETSIGNIFICANCETOOL_H
13#define HIJETREC_HIJETSIGNIFICANCETOOL_H
14
15#include <string>
16
19#include "AsgTools/AsgTool.h"
20
21#include "AsgTools/ToolHandle.h"
22
23
25 virtual public IJetDecorator
26{
28
29 public:
30 HIJetSignificanceTool(const std::string & name);
31
32 virtual StatusCode initialize() override;
33
34 //The modifyJet function has to be replaced by decorate
35 //virtual int modifyJet(xAOD::Jet& ) const ;
36 virtual StatusCode decorate(const xAOD::JetContainer& jets) const override;
37
38 private:
39
40 //New set of keys for decorations now needed + jet container name to initialize them automatically
41
42 SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetSignificanceKey { this, "SignificanceKey", "SIGNIFICANCE", "Key for significance Jet attribute"};
43 SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetCellSignificanceKey { this, "CellSignificanceKey", "CELL_SIGNIFICANCE", "Key for cell significance Jet attribute"};
44 SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetCellSigSamplingKey { this, "CellSigSamplingKey", "CELL_SIG_SAMPLING", "Key for cell significance sampling Jet attribute"};
45 SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetNMaxSigTileKey { this, "NMaxSigTileKey", "N_MAX_SIG_TILE", "Key for N max sig tile Jet attribute"};
46 SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetSignificanceTileKey { this, "SignificanceTileKey", "SIGNIFICANCE_TILE", "Key for significance tile Jet attribute"};
47
48 Gaudi::Property<std::string> m_jetContainerName{this, "JetContainer", "", "SG key for the input jet container"};
49
50};
51
52#endif
#define ASG_TOOL_CLASS0(CLASSNAME)
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetSignificanceKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetCellSigSamplingKey
HIJetSignificanceTool(const std::string &name)
SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetCellSignificanceKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetNMaxSigTileKey
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Gaudi::Property< std::string > m_jetContainerName
SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetSignificanceTileKey
Interface for adding a decoration to a jet container.
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
JetContainer_v1 JetContainer
Definition of the current "jet container version".