ATLAS Offline Software
EGInvariantMassTool.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 // EGInvariantMassTool.h, (c) ATLAS Detector software
7 // author: giovanni.marchiori@cern.ch
9 
10 #ifndef DERIVATIONFRAMEWORK_EGINVARIANTMASSTOOL_H
11 #define DERIVATIONFRAMEWORK_EGINVARIANTMASSTOOL_H
12 
15 //
17 #include "GaudiKernel/EventContext.h"
20 //
21 #include <string>
22 #include <vector>
23 namespace DerivationFramework {
24 
26 {
30 };
32  : public ExpressionParserUser<AthAlgTool, kNumEGInvariantMassToolParser>
33  , public IAugmentationTool
34 {
35 public:
36  EGInvariantMassTool(const std::string& t,
37  const std::string& n,
38  const IInterface* p);
39 
40  virtual StatusCode initialize() override final;
41  virtual StatusCode addBranches() const override final;
42 
43 private:
44  StatusCode getInvariantMasses(const EventContext& ctx,
45  std::vector<float>&) const;
46 
49  "StoreGateEntryName",
50  "",
51  "SG key of output object" };
52 
54  this,
55  "Container1Name",
56  "",
57  "SG key of first container"
58  };
60  this,
61  "Container2Name",
62  "",
63  "SG key of second container"
64  };
65 
67  this,
68  "Pt1BranchName",
69  "",
70  "Pt1 if different than default"
71  };
72 
74  this,
75  "Eta1BranchName",
76  "",
77  "Eta1 if different than default"
78  };
79 
81  this,
82  "Phi1BranchName",
83  "",
84  "Phi1 if different than default"
85  };
86 
88  this,
89  "Pt2BranchName",
90  "",
91  "Pt2 if different than default"
92  };
93 
95  this,
96  "Eta2BranchName",
97  "",
98  "Eta2 if different than default"
99  };
100 
102  this,
103  "Phi2BranchName",
104  "",
105  "Phi2 if different than default"
106  };
107 
109  float m_mindR;
112 };
113 }
114 
115 #endif // DERIVATIONFRAMEWORK_EGINVARIANTMASSTOOL_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DerivationFramework::EGInvariantMassTool::m_phi1BranchName
SG::ReadHandleKey< std::vector< float > > m_phi1BranchName
Definition: EGInvariantMassTool.h:80
DerivationFramework::EGInvariantMassTool::m_mass1Hypothesis
float m_mass1Hypothesis
Definition: EGInvariantMassTool.h:108
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
DerivationFramework::EGInvariantMassTool::m_container2Name
SG::ReadHandleKey< xAOD::IParticleContainer > m_container2Name
Definition: EGInvariantMassTool.h:59
DerivationFramework::EGInvariantMassTool::addBranches
virtual StatusCode addBranches() const override final
Pass the thinning service
Definition: EGInvariantMassTool.cxx:83
IAugmentationTool.h
ExpressionParserUser.h
DerivationFramework::kParser2
@ kParser2
Definition: EGInvariantMassTool.h:28
DerivationFramework::EGInvariantMassTool::m_doTransverseMass
bool m_doTransverseMass
Definition: EGInvariantMassTool.h:111
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::IAugmentationTool
Definition: IAugmentationTool.h:24
DerivationFramework::EGInvariantMassTool::m_expression2
std::string m_expression2
Definition: EGInvariantMassTool.h:47
DerivationFramework::kParser1
@ kParser1
Definition: EGInvariantMassTool.h:27
DerivationFramework::EGInvariantMassTool::m_expression1
std::string m_expression1
Definition: EGInvariantMassTool.h:47
DerivationFramework::EGInvariantMassTool::getInvariantMasses
StatusCode getInvariantMasses(const EventContext &ctx, std::vector< float > &) const
Definition: EGInvariantMassTool.cxx:100
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
AthAlgTool.h
DerivationFramework::EGInvariantMassTool::initialize
virtual StatusCode initialize() override final
Definition: EGInvariantMassTool.cxx:44
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::EGInvariantMassTool::m_mindR
float m_mindR
Definition: EGInvariantMassTool.h:109
DerivationFramework::EGInvariantMassTool::m_mass2Hypothesis
float m_mass2Hypothesis
Definition: EGInvariantMassTool.h:108
DerivationFramework::EGInvariantMassTool::m_pt2BranchName
SG::ReadHandleKey< std::vector< float > > m_pt2BranchName
Definition: EGInvariantMassTool.h:87
ExpressionParserUser
Definition: ExpressionParserUser.h:107
DerivationFramework::EGInvariantMassTool::m_phi2BranchName
SG::ReadHandleKey< std::vector< float > > m_phi2BranchName
Definition: EGInvariantMassTool.h:101
DerivationFramework::EEGInvariantMassToolParser
EEGInvariantMassToolParser
Definition: EGInvariantMassTool.h:26
DerivationFramework::kNumEGInvariantMassToolParser
@ kNumEGInvariantMassToolParser
Definition: EGInvariantMassTool.h:29
DerivationFramework::EGInvariantMassTool::m_checkCharge
bool m_checkCharge
Definition: EGInvariantMassTool.h:110
DerivationFramework::EGInvariantMassTool::m_pt1BranchName
SG::ReadHandleKey< std::vector< float > > m_pt1BranchName
Definition: EGInvariantMassTool.h:66
DerivationFramework::EGInvariantMassTool::m_container1Name
SG::ReadHandleKey< xAOD::IParticleContainer > m_container1Name
Definition: EGInvariantMassTool.h:53
DerivationFramework::EGInvariantMassTool::m_eta1BranchName
SG::ReadHandleKey< std::vector< float > > m_eta1BranchName
Definition: EGInvariantMassTool.h:73
DerivationFramework::EGInvariantMassTool::m_eta2BranchName
SG::ReadHandleKey< std::vector< float > > m_eta2BranchName
Definition: EGInvariantMassTool.h:94
DerivationFramework::EGInvariantMassTool::m_sgName
SG::WriteHandleKey< std::vector< float > > m_sgName
Definition: EGInvariantMassTool.h:48
DerivationFramework::EGInvariantMassTool
Definition: EGInvariantMassTool.h:34
DerivationFramework::EGInvariantMassTool::EGInvariantMassTool
EGInvariantMassTool(const std::string &t, const std::string &n, const IInterface *p)
Definition: EGInvariantMassTool.cxx:21