ATLAS Offline Software
Loading...
Searching...
No Matches
JetCaloQualityToolFE.h
Go to the documentation of this file.
1// this file is -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef JETMOMENTTOOLS_JETCALOQUALITYTOOLFE_H
8#define JETMOMENTTOOLS_JETCALOQUALITYTOOLFE_H
9
10#include "AsgTools/AsgTool.h"
14
16
17#include <vector>
18#include <string>
19
20
22 virtual public IJetDecorator {
24
25public:
26 JetCaloQualityToolFE(const std::string & name);
27
28 virtual StatusCode decorate(const xAOD::JetContainer& jets) const override;
29
30 virtual StatusCode initialize() override;
31
32 protected:
33
34 Gaudi::Property<std::vector<std::string> > m_calculationNames{this, "Calculations", {},
35 "Name of calo quantities to compute and add as decorations"};
36 Gaudi::Property<std::vector<double> > m_timingTimeCuts{this, "TimingCuts", {},
37 "Time cuts for out-of-time calo quantities"};
38 Gaudi::Property<std::vector<int> > m_thresholdCuts{this, "ThresholdCuts", {},
39 "Thresholds cuts (NxConstituents)"};
40 Gaudi::Property<std::string> m_jetContainerName{this, "JetContainer", "",
41 "SG key of input jet container"};
42
44 "SG keys for output decorations (not to be configured manually!)"};
45
47 "SG keys for output OOT decorations (not to be configured manually!)"};
48
50 "SG keys for output NfracConstituents decorations (not to be configured manually!)"};
51
52 void fillQualityVariables(const xAOD::Jet &jet) const ;
53
54 std::vector<const xAOD::CaloCluster*> extractConstituents(const xAOD::Jet& jet) const ;
55
56 bool m_doLArQ = false;
57 bool m_doHECQ = false;
58 bool m_doNegE = false;
59 bool m_doAvgLAr = false;
60 bool m_doCentroid = false;
61 bool m_doBchCorrCell = false;
62 bool m_doTime = false;
63
64};
65#endif
66
#define ASG_TOOL_CLASS1
Interface for adding a decoration to a jet container.
JetCaloQualityToolFE(const std::string &name)
void fillQualityVariables(const xAOD::Jet &jet) const
Gaudi::Property< std::vector< double > > m_timingTimeCuts
std::vector< const xAOD::CaloCluster * > extractConstituents(const xAOD::Jet &jet) const
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_writeDecorKeys
Gaudi::Property< std::string > m_jetContainerName
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_writeDecorKeys_OOT
Gaudi::Property< std::vector< int > > m_thresholdCuts
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_writeDecorKeys_Nfrac
Gaudi::Property< std::vector< std::string > > m_calculationNames
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
DecorHandleKeyArray< WriteDecorHandle< T, S >, WriteDecorHandleKey< T >, Gaudi::DataHandle::Writer > WriteDecorHandleKeyArray
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".