ATLAS Offline Software
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 
19 namespace 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"};
45  Gaudi::Property<float> m_nSigma{
46  this, "NSigma", 5, "Set the threshold at mean + NSigma*variance"};
48  Gaudi::Property<float> m_maxEta{
49  this, "MaxEta", 5, "The maximum eta range"};
51  Gaudi::Property<std::size_t> m_nEtaBins{
52  this, "NEtaBins", 14, "The number of eta bins"};
54  Gaudi::Property<std::size_t> m_nPhiBins{
55  this, "NPhiBins", 8, "The number of phi bins"};
57  Gaudi::Property<float> m_trimFraction{
58  this, "TrimFraction", 0.9,
59  "The fraction of bins to use when calculating the mean and variance"};
61  Gaudi::Property<float> m_caloNoise{
62  this, "CaloNoise", 50, "The coefficient of the noise term in the "
63  "calorimeter resolution estimate [MeV]"};
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]"};
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  ***********************************************************************/
84  const EventContext& context,
85  MonGroupBuilder& monitors) const override;
86  }; //> end class TCPufitFex
87 } } //> end namespace HLT::MET
88 #endif //> !TRIGEFMISSINGET_TCPUFITFEX_H
HLT::MET::TCPufitFex::m_clusterKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterKey
Input clusters.
Definition: TCPufitFex.h:67
HLT::MET::TCPufitFex::initialize
virtual StatusCode initialize() override
Initialize the fex.
Definition: TCPufitFex.cxx:38
HLT::MET::TCPufitFex::m_caloNoise
Gaudi::Property< float > m_caloNoise
The coefficient of the noise term in the calo resolution estimate.
Definition: TCPufitFex.h:86
SG::ReadHandleKey< xAOD::CaloClusterContainer >
HLT::MET::TCPufitFex::m_maxEta
Gaudi::Property< float > m_maxEta
The eta range of the grid.
Definition: TCPufitFex.h:73
met
Definition: IMETSignificance.h:24
FexBase.h
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition: HLTResultReader.h:26
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
HLT::MET::TCPufitFex::m_nPhiBins
Gaudi::Property< std::size_t > m_nPhiBins
The number of bins in phi.
Definition: TCPufitFex.h:79
HLT::MET::TCPufitFex::m_trimFraction
Gaudi::Property< float > m_trimFraction
The trimming fraction.
Definition: TCPufitFex.h:82
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
MET
Definition: MET.py:1
HLT::MET::TCPufitFex::m_constraintImportance
Gaudi::Property< float > m_constraintImportance
The relative constraint importance.
Definition: TCPufitFex.h:94
HLT::MET::TCPufitFex::fillMET
virtual StatusCode fillMET(xAOD::TrigMissingET &met, const EventContext &context, MonGroupBuilder &monitors) const override
Calculate and fill the output MET value.
Definition: TCPufitFex.cxx:44
HLT::MET::MonGroupBuilder
Definition: MonGroupBuilder.h:45
HLT::MET::TCPufitFex::m_caloStoch
Gaudi::Property< float > m_caloStoch
The coefficient of the stochastic term in the calo resolution estimate.
Definition: TCPufitFex.h:90
HLT::MET::TCPufitFex::m_nEtaBins
Gaudi::Property< std::size_t > m_nEtaBins
The number of bins in eta.
Definition: TCPufitFex.h:76
HLT::MET::TCPufitFex::TCPufitFex
TCPufitFex(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: TCPufitFex.cxx:34
xAOD::TrigMissingET_v1
Class holding the Missing ET trigger fex results.
Definition: TrigMissingET_v1.h:32
HLT::MET::TCPufitFex::m_nSigma
Gaudi::Property< float > m_nSigma
The sigma threshold.
Definition: TCPufitFex.h:70
CaloClusterContainer.h