ATLAS Offline Software
Loading...
Searching...
No Matches
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
42public:
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
#define ASG_TOOL_CLASS1
Interface for adding a decoration to a jet container.
Gaudi::Property< std::vector< std::string > > m_calculationNames
JetCaloQualityTool(const std::string &name)
jet::JetCaloCalculations * m_calcProcessor
Gaudi::Property< std::vector< double > > m_timingTimeCuts
Gaudi::Property< std::string > m_jetContainerName
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
jet::JetCaloCalculations m_jetCalculations
This objects holds a list of cluster-based calculators.
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_writeDecorKeys
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
Holds a list of JetCalculators.
DecorHandleKeyArray< WriteDecorHandle< T, S >, WriteDecorHandleKey< T >, Gaudi::DataHandle::Writer > WriteDecorHandleKeyArray
JetContainer_v1 JetContainer
Definition of the current "jet container version".