ATLAS Offline Software
TruthClosureCheck.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRUTHCLOSURECHECK_H
6 #define TRUTHCLOSURECHECK_H
7 
8 // Base class include
10 
11 // Athena includes
14 
16 
17 public:
18  TruthClosureCheck(const std::string& name, ISvcLocator* pSvcLocator);
19  ~TruthClosureCheck() = default;
20  virtual StatusCode initialize() override final;
21  virtual StatusCode execute() override final;
22 
23  private:
25 #ifdef HEPMC3
27  const HepMC::ConstGenVertexPtr& resetVertex) const;
29  const HepMC::ConstGenParticlePtr& resetParticle) const;
30  void printGenVertex(const HepMC::ConstGenVertexPtr& origVertex,
31  const HepMC::ConstGenVertexPtr& resetVertex) const;
32 #else
33  StatusCode compareGenVertex(const HepMC::GenVertex& origVertex,
34  const HepMC::GenVertex& resetVertex) const;
36  const HepMC::GenParticle& resetParticle) const;
37  void printGenVertex(const HepMC::GenVertex& origVertex,
38  const HepMC::GenVertex& resetVertex) const;
39 #endif
40  StatusCode compareMomenta(const HepMC::FourVector& origMomenta,
41  const HepMC::FourVector& resetMomenta) const;
42 
45  bool m_compareMomenta{true};
46  double m_momentaLimit{0.000000000001};
47  bool m_postSimulation{false};
48 };
49 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TruthClosureCheck::initialize
virtual StatusCode initialize() override final
Definition: TruthClosureCheck.cxx:33
TruthClosureCheck::m_postSimulation
bool m_postSimulation
Definition: TruthClosureCheck.h:47
TruthClosureCheck::m_originalMcEventCollection
SG::ReadHandleKey< McEventCollection > m_originalMcEventCollection
Definition: TruthClosureCheck.h:43
TruthClosureCheck::m_compareMomenta
bool m_compareMomenta
Definition: TruthClosureCheck.h:45
TruthClosureCheck
Definition: TruthClosureCheck.h:15
TruthClosureCheck::sanityCheck
StatusCode sanityCheck(const HepMC::GenEvent &event) const
Definition: TruthClosureCheck.cxx:43
TruthClosureCheck::compareGenParticle
StatusCode compareGenParticle(const HepMC::GenParticle &origParticle, const HepMC::GenParticle &resetParticle) const
Definition: TruthClosureCheck.cxx:327
TruthClosureCheck::~TruthClosureCheck
~TruthClosureCheck()=default
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SG::ReadHandleKey< McEventCollection >
TruthClosureCheck::compareMomenta
StatusCode compareMomenta(const HepMC::FourVector &origMomenta, const HepMC::FourVector &resetMomenta) const
Definition: TruthClosureCheck.cxx:270
AthAlgorithm.h
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
McEventCollection.h
TruthClosureCheck::TruthClosureCheck
TruthClosureCheck(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TruthClosureCheck.cxx:22
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TruthClosureCheck::execute
virtual StatusCode execute() override final
Definition: TruthClosureCheck.cxx:435
AthAlgorithm
Definition: AthAlgorithm.h:47
HepMC::ConstGenParticlePtr
const GenParticle * ConstGenParticlePtr
Definition: GenParticle.h:38
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TruthClosureCheck::m_momentaLimit
double m_momentaLimit
Definition: TruthClosureCheck.h:46
TruthClosureCheck::printGenVertex
void printGenVertex(const HepMC::GenVertex &origVertex, const HepMC::GenVertex &resetVertex) const
Definition: TruthClosureCheck.cxx:98
TruthClosureCheck::compareGenVertex
StatusCode compareGenVertex(const HepMC::GenVertex &origVertex, const HepMC::GenVertex &resetVertex) const
Definition: TruthClosureCheck.cxx:202
HepMC
Definition: Barcode.h:14
HepMC::ConstGenVertexPtr
const HepMC::GenVertex * ConstGenVertexPtr
Definition: GenVertex.h:60
TruthClosureCheck::m_resetMcEventCollection
SG::ReadHandleKey< McEventCollection > m_resetMcEventCollection
Definition: TruthClosureCheck.h:44
GenParticle
@ GenParticle
Definition: TruthClasses.h:30