ATLAS Offline Software
EGTransverseMassTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // EGTransverseMassTool.h, (c) ATLAS Detector software
7 // author: giovanni.marchiori@cern.ch
9 
10 #ifndef DERIVATIONFRAMEWORK_EGTRANSVERSEMASSTOOL_H
11 #define DERIVATIONFRAMEWORK_EGTRANSVERSEMASSTOOL_H
12 
15 //
17 #include "GaudiKernel/EventContext.h"
21 //
22 #include <string>
23 #include <vector>
24 
25 namespace DerivationFramework {
26 
27 class EGTransverseMassTool : public extends<ExpressionParserUser<AthAlgTool>, IAugmentationTool>
28 {
29 public:
31  const std::string& t,
32  const std::string& n,
33  const IInterface* p);
34 
35  virtual StatusCode initialize() override final;
36  virtual StatusCode addBranches() const override final;
37 
38 private:
39  StatusCode getTransverseMasses(const EventContext& ctx, std::vector<float>&)
40  const;
41 
42  std::string m_expression1;
43  float m_METmin;
45 
47  "StoreGateEntryName",
48  "",
49  "SG key of output object" };
50 
52  this,
53  "ObjectContainerName",
54  "",
55  "SG key of first container"
56  };
58  this,
59  "METContainerName",
60  "MET_LocHadTopo",
61  "SG key of second container"
62  };
63 
65  this,
66  "ObjectPtBranchName",
67  "",
68  "Pt1 if different than default"
69  };
70 
72  this,
73  "ObjectPhiBranchName",
74  "",
75  "Phi1 if different than default"
76  };
77 
79  this,
80  "METPtBranchName",
81  "",
82  "Pt2 if different than default"
83  };
84 
86  this,
87  "METPhiBranchName",
88  "",
89  "Phi2 if different than default"
90  };
91 };
92 }
93 
94 #endif // DERIVATIONFRAMEWORK_EGTRANSVERSEMASSTOOL_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DerivationFramework::EGTransverseMassTool::m_METmin
float m_METmin
Definition: EGTransverseMassTool.h:43
DerivationFramework::EGTransverseMassTool::m_container1Name
SG::ReadHandleKey< xAOD::IParticleContainer > m_container1Name
Definition: EGTransverseMassTool.h:51
IAugmentationTool.h
ExpressionParserUser.h
DerivationFramework::EGTransverseMassTool
Definition: EGTransverseMassTool.h:28
DerivationFramework::EGTransverseMassTool::m_pt1BranchName
SG::ReadHandleKey< std::vector< float > > m_pt1BranchName
Definition: EGTransverseMassTool.h:64
DerivationFramework::EGTransverseMassTool::m_mass1Hypothesis
float m_mass1Hypothesis
Definition: EGTransverseMassTool.h:44
DerivationFramework::EGTransverseMassTool::m_phi2BranchName
SG::ReadHandleKey< std::vector< float > > m_phi2BranchName
Definition: EGTransverseMassTool.h:85
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
DerivationFramework::EGTransverseMassTool::getTransverseMasses
StatusCode getTransverseMasses(const EventContext &ctx, std::vector< float > &) const
Definition: EGTransverseMassTool.cxx:99
DerivationFramework::EGTransverseMassTool::m_container2Name
SG::ReadHandleKey< xAOD::MissingETContainer > m_container2Name
Definition: EGTransverseMassTool.h:57
DerivationFramework::EGTransverseMassTool::m_expression1
std::string m_expression1
Definition: EGTransverseMassTool.h:42
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
beamspotman.n
n
Definition: beamspotman.py:729
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IParticleContainer.h
DerivationFramework::EGTransverseMassTool::addBranches
virtual StatusCode addBranches() const override final
Definition: EGTransverseMassTool.cxx:83
AthAlgTool.h
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::EGTransverseMassTool::EGTransverseMassTool
EGTransverseMassTool(const std::string &t, const std::string &n, const IInterface *p)
Definition: EGTransverseMassTool.cxx:35
DerivationFramework::EGTransverseMassTool::m_sgName
SG::WriteHandleKey< std::vector< float > > m_sgName
Definition: EGTransverseMassTool.h:46
DerivationFramework::EGTransverseMassTool::initialize
virtual StatusCode initialize() override final
Definition: EGTransverseMassTool.cxx:49
DerivationFramework::EGTransverseMassTool::m_phi1BranchName
SG::ReadHandleKey< std::vector< float > > m_phi1BranchName
Definition: EGTransverseMassTool.h:71
MissingETContainer.h
DerivationFramework::EGTransverseMassTool::m_pt2BranchName
SG::ReadHandleKey< std::vector< float > > m_pt2BranchName
Definition: EGTransverseMassTool.h:78