ATLAS Offline Software
InvariantMassTool.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 // InvariantMassTool.h, (c) ATLAS Detector software
8 
9 #ifndef DERIVATIONFRAMEWORK_INVARIANTMASSTOOL_H
10 #define DERIVATIONFRAMEWORK_INVARIANTMASSTOOL_H
11 
12 #include <string>
13 
16 
20 
21 namespace DerivationFramework {
22 
24  class InvariantMassTool : public ExpressionParserUser<AthAlgTool,kInvariantMassToolParserNum>, public IAugmentationTool {
25  public:
26  InvariantMassTool(const std::string& t, const std::string& n, const IInterface* p);
27 
30  virtual StatusCode addBranches() const;
31 
32  private:
33  std::string m_expression;
34  std::string m_expression2;
35  SG::WriteHandleKey<std::vector<float> > m_sgName {this,"StoreGateEntryName","","SG key of output object"};
37  SG::ReadHandleKey<xAOD::IParticleContainer> m_containerName {this,"ContainerName","","SG key of first container"};
38  SG::ReadHandleKey<xAOD::IParticleContainer> m_containerName2 {this,"SecondContainerName","","SG key of first container"};
39  StatusCode getInvariantMasses(std::vector<float>*) const;
40  static float calculateInvariantMass(const TVector3& v1, const TVector3&v2,float M1,float M2) ;
41  };
42 }
43 
44 #endif // DERIVATIONFRAMEWORK_INVARIANTMASSTOOL_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DerivationFramework::kInvariantMassToolParserNum
@ kInvariantMassToolParserNum
Definition: InvariantMassTool.h:23
DerivationFramework::EInvariantMassToolParser
EInvariantMassToolParser
Definition: InvariantMassTool.h:23
DerivationFramework::InvariantMassTool::InvariantMassTool
InvariantMassTool(const std::string &t, const std::string &n, const IInterface *p)
Definition: InvariantMassTool.cxx:18
DerivationFramework::InvariantMassTool::m_containerName
SG::ReadHandleKey< xAOD::IParticleContainer > m_containerName
Definition: InvariantMassTool.h:37
IAugmentationTool.h
ExpressionParserUser.h
DerivationFramework::InvariantMassTool::getInvariantMasses
StatusCode getInvariantMasses(std::vector< float > *) const
Definition: InvariantMassTool.cxx:76
DerivationFramework::InvariantMassTool::finalize
StatusCode finalize()
Definition: InvariantMassTool.cxx:55
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::InvariantMassTool::calculateInvariantMass
static float calculateInvariantMass(const TVector3 &v1, const TVector3 &v2, float M1, float M2)
Definition: InvariantMassTool.cxx:173
DerivationFramework::InvariantMassTool::initialize
StatusCode initialize()
Definition: InvariantMassTool.cxx:34
DerivationFramework::InvariantMassTool::m_expression2
std::string m_expression2
Definition: InvariantMassTool.h:34
DerivationFramework::InvariantMassTool::addBranches
virtual StatusCode addBranches() const
Pass the thinning service
Definition: InvariantMassTool.cxx:61
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
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::kInvariantMassToolParser2
@ kInvariantMassToolParser2
Definition: InvariantMassTool.h:23
DerivationFramework::InvariantMassTool::m_expression
std::string m_expression
Definition: InvariantMassTool.h:33
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::InvariantMassTool::m_containerName2
SG::ReadHandleKey< xAOD::IParticleContainer > m_containerName2
Definition: InvariantMassTool.h:38
ExpressionParserUser
Definition: ExpressionParserUser.h:107
ReadCellNoiseFromCoolCompare.v2
v2
Definition: ReadCellNoiseFromCoolCompare.py:364
DerivationFramework::InvariantMassTool
Definition: InvariantMassTool.h:24
DerivationFramework::InvariantMassTool::m_massHypothesis2
float m_massHypothesis2
Definition: InvariantMassTool.h:36
DerivationFramework::InvariantMassTool::m_massHypothesis
float m_massHypothesis
Definition: InvariantMassTool.h:36
DerivationFramework::InvariantMassTool::m_sgName
SG::WriteHandleKey< std::vector< float > > m_sgName
Definition: InvariantMassTool.h:35
DerivationFramework::kInvariantMassToolParser1
@ kInvariantMassToolParser1
Definition: InvariantMassTool.h:23