ATLAS Offline Software
Loading...
Searching...
No Matches
TCPufitFex.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4
5/******************************************************************************
6 * @package Trigger/TrigAlgorithms/TrigEFMissingET
7 * @class TCPufitFex
8 *
9 * @brief Fex class for the (tc) pufit algorithm
10 * @author Jon Burr
11 *****************************************************************************/
12
13#ifndef TRIGEFMISSINGET_TCPUFITFEX_H
14#define TRIGEFMISSINGET_TCPUFITFEX_H
15
16#include "FexBase.h"
18
19namespace HLT { namespace MET {
20 /****************************************************************************
21 * @class TCPufitFex
22 *
23 * Class to calculate MET using the pufit algorithm
24 *
25 * pufit calculates the MET with a sum over trigger-level topoclusters,
26 * applying a fitting procedure to estimate the contribution from pileup.
27 ***************************************************************************/
28 class TCPufitFex : public FexBase
29 {
30 public:
32 TCPufitFex(const std::string& name, ISvcLocator* pSvcLocator);
33
35 virtual StatusCode initialize() override;
36
37 private:
38 /************************************************************************
39 * Properties
40 ***********************************************************************/
43 this, "ClusterName", "clusters", "Input cluster collection"};
44
45 Gaudi::Property<float> m_nSigma{
46 this, "NSigma", 5, "Set the threshold at mean + NSigma*variance"};
47
48 Gaudi::Property<float> m_maxEta{
49 this, "MaxEta", 5, "The maximum eta range"};
50
51 Gaudi::Property<std::size_t> m_nEtaBins{
52 this, "NEtaBins", 14, "The number of eta bins"};
53
54 Gaudi::Property<std::size_t> m_nPhiBins{
55 this, "NPhiBins", 8, "The number of phi bins"};
56
57 Gaudi::Property<float> m_trimFraction{
58 this, "TrimFraction", 0.9,
59 "The fraction of bins to use when calculating the mean and variance"};
60
61 Gaudi::Property<float> m_caloNoise{
62 this, "CaloNoise", 50, "The coefficient of the noise term in the "
63 "calorimeter resolution estimate [MeV]"};
64
65 Gaudi::Property<float> m_caloStoch{
66 this, "CaloStochastic", 15.81, "The coefficient of the stochastic "
67 "term in the calorimeter resolution estimate [MeV^1/2]"};
68
69 Gaudi::Property<float> m_constraintImportance{
70 this, "ConstraintImportance", 1,
71 "The relative importance of the two constraints to the fit"};
72
73 /************************************************************************
74 * Internal functions
75 ***********************************************************************/
82 virtual StatusCode fillMET(
84 const EventContext& context,
85 MonGroupBuilder& monitors) const override;
86 }; //> end class TCPufitFex
87} } //> end namespace HLT::MET
88#endif //> !TRIGEFMISSINGET_TCPUFITFEX_H
FexBase(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition FexBase.cxx:43
Gaudi::Property< float > m_nSigma
The sigma threshold.
Definition TCPufitFex.h:45
virtual StatusCode fillMET(xAOD::TrigMissingET &met, const EventContext &context, MonGroupBuilder &monitors) const override
Calculate and fill the output MET value.
TCPufitFex(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Gaudi::Property< float > m_caloNoise
The coefficient of the noise term in the calo resolution estimate.
Definition TCPufitFex.h:61
Gaudi::Property< float > m_constraintImportance
The relative constraint importance.
Definition TCPufitFex.h:69
Gaudi::Property< std::size_t > m_nEtaBins
The number of bins in eta.
Definition TCPufitFex.h:51
Gaudi::Property< float > m_maxEta
The eta range of the grid.
Definition TCPufitFex.h:48
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterKey
Input clusters.
Definition TCPufitFex.h:42
Gaudi::Property< float > m_caloStoch
The coefficient of the stochastic term in the calo resolution estimate.
Definition TCPufitFex.h:65
Gaudi::Property< float > m_trimFraction
The trimming fraction.
Definition TCPufitFex.h:57
Gaudi::Property< std::size_t > m_nPhiBins
The number of bins in phi.
Definition TCPufitFex.h:54
virtual StatusCode initialize() override
Initialize the fex.
Property holding a SG store/key/clid from which a ReadHandle is made.
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
TrigMissingET_v1 TrigMissingET
Define the most recent version of the TrigMissingET class.