ATLAS Offline Software
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 
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
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
HIJetSignificanceTool::m_jetSignificanceTileKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetSignificanceTileKey
Definition: HIJetSignificanceTool.h:46
IJetDecorator
Interface for adding a decoration to a jet container.
Definition: IJetDecorator.h:21
IJetDecorator.h
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ASG_TOOL_CLASS0
#define ASG_TOOL_CLASS0(CLASSNAME)
Definition: AsgToolMacros.h:62
HIJetSignificanceTool::HIJetSignificanceTool
HIJetSignificanceTool(const std::string &name)
Definition: HIJetSignificanceTool.cxx:10
HIJetSignificanceTool::m_jetContainerName
Gaudi::Property< std::string > m_jetContainerName
Definition: HIJetSignificanceTool.h:48
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
HIJetSignificanceTool::m_jetCellSignificanceKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetCellSignificanceKey
Definition: HIJetSignificanceTool.h:43
HIJetSignificanceTool
Modified by R.Longo on May 2020 to include new treatment for JetDecorations.
Definition: HIJetSignificanceTool.h:26
HIJetSignificanceTool::m_jetSignificanceKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetSignificanceKey
Definition: HIJetSignificanceTool.h:42
HIJetSignificanceTool::m_jetNMaxSigTileKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetNMaxSigTileKey
Definition: HIJetSignificanceTool.h:45
HIJetSignificanceTool::decorate
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Definition: HIJetSignificanceTool.cxx:42
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
HIJetSignificanceTool::m_jetCellSigSamplingKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetCellSigSamplingKey
Definition: HIJetSignificanceTool.h:44
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24
ToolHandle.h
AsgTool.h
HIJetSignificanceTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: HIJetSignificanceTool.cxx:17