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 
28  : public ExpressionParserUser<AthAlgTool>
29  , public IAugmentationTool
30 {
31 public:
33  const std::string& t,
34  const std::string& n,
35  const IInterface* p);
36 
37  virtual StatusCode initialize() override final;
38  virtual StatusCode addBranches() const override final;
39 
40 private:
41  StatusCode getTransverseMasses(const EventContext& ctx, std::vector<float>&)
42  const;
43 
44  std::string m_expression1;
45  float m_METmin;
47 
49  "StoreGateEntryName",
50  "",
51  "SG key of output object" };
52 
54  this,
55  "ObjectContainerName",
56  "",
57  "SG key of first container"
58  };
60  this,
61  "METContainerName",
62  "MET_LocHadTopo",
63  "SG key of second container"
64  };
65 
67  this,
68  "ObjectPtBranchName",
69  "",
70  "Pt1 if different than default"
71  };
72 
74  this,
75  "ObjectPhiBranchName",
76  "",
77  "Phi1 if different than default"
78  };
79 
81  this,
82  "METPtBranchName",
83  "",
84  "Pt2 if different than default"
85  };
86 
88  this,
89  "METPhiBranchName",
90  "",
91  "Phi2 if different than default"
92  };
93 };
94 }
95 
96 #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:45
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
DerivationFramework::EGTransverseMassTool::m_container1Name
SG::ReadHandleKey< xAOD::IParticleContainer > m_container1Name
Definition: EGTransverseMassTool.h:53
IAugmentationTool.h
ExpressionParserUser.h
DerivationFramework::EGTransverseMassTool
Definition: EGTransverseMassTool.h:30
DerivationFramework::EGTransverseMassTool::m_pt1BranchName
SG::ReadHandleKey< std::vector< float > > m_pt1BranchName
Definition: EGTransverseMassTool.h:66
DerivationFramework::EGTransverseMassTool::m_mass1Hypothesis
float m_mass1Hypothesis
Definition: EGTransverseMassTool.h:46
DerivationFramework::EGTransverseMassTool::m_phi2BranchName
SG::ReadHandleKey< std::vector< float > > m_phi2BranchName
Definition: EGTransverseMassTool.h:87
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:100
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
DerivationFramework::EGTransverseMassTool::m_container2Name
SG::ReadHandleKey< xAOD::MissingETContainer > m_container2Name
Definition: EGTransverseMassTool.h:59
DerivationFramework::EGTransverseMassTool::m_expression1
std::string m_expression1
Definition: EGTransverseMassTool.h:44
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:731
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
Pass the thinning service
Definition: EGTransverseMassTool.cxx:84
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:48
ExpressionParserUser
Definition: ExpressionParserUser.h:107
DerivationFramework::EGTransverseMassTool::initialize
virtual StatusCode initialize() override final
Definition: EGTransverseMassTool.cxx:50
DerivationFramework::EGTransverseMassTool::m_phi1BranchName
SG::ReadHandleKey< std::vector< float > > m_phi1BranchName
Definition: EGTransverseMassTool.h:73
MissingETContainer.h
DerivationFramework::EGTransverseMassTool::m_pt2BranchName
SG::ReadHandleKey< std::vector< float > > m_pt2BranchName
Definition: EGTransverseMassTool.h:80