ATLAS Offline Software
JetCaloQualityTool.h
Go to the documentation of this file.
1 // this file is -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5 */
6 
25 #ifndef JETREC_JETCALOQUALITYTOOL_H
26 #define JETREC_JETCALOQUALITYTOOL_H
27 
28 #include "AsgTools/AsgTool.h"
33 
34 #include <vector>
35 #include <string>
36 
37 
39  virtual public IJetDecorator {
41 
42 public:
43  JetCaloQualityTool(const std::string & name);
44 
45  virtual StatusCode decorate(const xAOD::JetContainer& jets) const override;
46 
47  virtual StatusCode initialize() override;
48 
49  protected:
50 
51  Gaudi::Property<std::vector<std::string> > m_calculationNames{this, "Calculations", {},
52  "Name of calo quantities to compute and add as decorations"};
53  Gaudi::Property<std::vector<double> > m_timingTimeCuts{this, "TimingCuts", {},
54  "Time cuts for out-of-time calo quantities"};
55  Gaudi::Property<std::string> m_jetContainerName{this, "JetContainer", "",
56  "SG key of input jet container"};
57 
59  "SG keys for output decorations (not to be configured manually!)"};
60 
63 
64  // internal pointer to m_jetCalculations (this pointer is also used in the cell-based derived tool)
66 
67  bool m_doFracSamplingMax = false; // internal
68 };
69 #endif
70 
WriteDecorHandleKeyArray.h
JetCaloQualityTool::m_timingTimeCuts
Gaudi::Property< std::vector< double > > m_timingTimeCuts
Definition: JetCaloQualityTool.h:53
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
PropertyWrapper.h
JetCaloQualityTool::JetCaloQualityTool
JetCaloQualityTool(const std::string &name)
Definition: JetCaloQualityTool.cxx:19
JetCaloQualityTool
Definition: JetCaloQualityTool.h:39
JetCaloQualityTool::m_calculationNames
Gaudi::Property< std::vector< std::string > > m_calculationNames
Definition: JetCaloQualityTool.h:51
IJetDecorator
Interface for adding a decoration to a jet container.
Definition: IJetDecorator.h:21
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
JetCaloQualityTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: JetCaloQualityTool.cxx:70
JetCaloQualityTool::m_doFracSamplingMax
bool m_doFracSamplingMax
Definition: JetCaloQualityTool.h:67
IJetDecorator.h
JetCaloQualityTool::m_jetCalculations
jet::JetCaloCalculations m_jetCalculations
This objects holds a list of cluster-based calculators
Definition: JetCaloQualityTool.h:62
JetCaloQualityTool::m_writeDecorKeys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_writeDecorKeys
Definition: JetCaloQualityTool.h:58
JetCaloCalculations.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
jet::JetCaloCalculations
Holds a list of JetCalculators.
Definition: JetCaloCalculations.h:145
JetCaloQualityTool::m_calcProcessor
jet::JetCaloCalculations * m_calcProcessor
Definition: JetCaloQualityTool.h:65
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
JetCaloQualityTool::decorate
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Definition: JetCaloQualityTool.cxx:25
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ASG_TOOL_CLASS1
#define ASG_TOOL_CLASS1
Definition: AsgToolMacros.h:75
JetCaloQualityTool::m_jetContainerName
Gaudi::Property< std::string > m_jetContainerName
Definition: JetCaloQualityTool.h:55
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24
AsgTool.h