ATLAS Offline Software
Loading...
Searching...
No Matches
EGTransverseMassTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6// EGTransverseMassTool.h
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
25namespace DerivationFramework {
26
27class EGTransverseMassTool : public extends<ExpressionParserUser<AthAlgTool>, IAugmentationTool>
28{
29public:
30 using base_class::base_class;
31
32 virtual StatusCode initialize() override final;
33 virtual StatusCode addBranches(const EventContext& ctx) const override final;
34
35private:
36 StatusCode getTransverseMasses(const EventContext& ctx, std::vector<float>&)
37 const;
38
39 Gaudi::Property<std::string> m_expression1{this, "ObjectRequirements", "true"};
40 Gaudi::Property<float> m_METmin{this, "METmin", -999.f};
41 Gaudi::Property<float> m_mass1Hypothesis{this, "ObjectMassHypothesis", 0.f};
42
44 "StoreGateEntryName",
45 "",
46 "SG key of output object" };
47
49 this,
50 "ObjectContainerName",
51 "",
52 "SG key of first container"
53 };
55 this,
56 "METContainerName",
57 "MET_LocHadTopo",
58 "SG key of second container"
59 };
60
62 this,
63 "ObjectPtBranchName",
64 "",
65 "Pt1 if different than default"
66 };
67
69 this,
70 "ObjectPhiBranchName",
71 "",
72 "Phi1 if different than default"
73 };
74
76 this,
77 "METPtBranchName",
78 "",
79 "Pt2 if different than default"
80 };
81
83 this,
84 "METPhiBranchName",
85 "",
86 "Phi2 if different than default"
87 };
88};
89}
90
91#endif // DERIVATIONFRAMEWORK_EGTRANSVERSEMASSTOOL_H
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::ReadHandleKey< std::vector< float > > m_phi1BranchName
SG::ReadHandleKey< std::vector< float > > m_phi2BranchName
virtual StatusCode addBranches(const EventContext &ctx) const override final
SG::ReadHandleKey< std::vector< float > > m_pt1BranchName
SG::ReadHandleKey< std::vector< float > > m_pt2BranchName
SG::ReadHandleKey< xAOD::IParticleContainer > m_container1Name
Gaudi::Property< std::string > m_expression1
SG::WriteHandleKey< std::vector< float > > m_sgName
StatusCode getTransverseMasses(const EventContext &ctx, std::vector< float > &) const
SG::ReadHandleKey< xAOD::MissingETContainer > m_container2Name
virtual StatusCode initialize() override final
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
THE reconstruction tool.