ATLAS Offline Software
Loading...
Searching...
No Matches
PrimaryTruthClassifier.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6// PrimaryTruthClassifier.h
7// Header file for PrimaryTruthClassification tool
9// (c) ATLAS Detector software
11
12#ifndef TRK_PRIMARYTRUTHCLASSIFICATIONTOOL_H
13#define TRK_PRIMARYTRUTHCLASSIFICATIONTOOL_H
14
15
19
22
23namespace Trk {
24
31
33 public AthAlgTool {
34 public:
35
36 PrimaryTruthClassifier(const std::string& type, const std::string& name,
37 const IInterface* parent);
39 virtual StatusCode initialize();
40 virtual StatusCode finalize();
41
43 virtual void initClassification(const McEventCollection&,
44 const std::vector<HepMC::ConstGenParticlePtr>*) const;
45
46 virtual unsigned int classify(HepMC::ConstGenParticlePtr) const;
47
48 virtual std::string nameOfClassifier() const;
49
50 virtual std::string classificationAsString(unsigned int) const;
51
52 virtual unsigned int numberOfClassifiers() const;
53
54 private:
65
66 };
67
71
73 return "reconstructableForInDet";
74 }
75
76 inline std::string Trk::PrimaryTruthClassifier::classificationAsString(unsigned int i) const {
78 return PC.names[i];
79 }
80
81} // end namespace
82#endif
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
This defines the McEventCollection, which is really just an ObjectVector of McEvent objectsFile: Gene...
provides the interface for tools which classify gen particles
PrimaryTruthClassifier(const std::string &type, const std::string &name, const IInterface *parent)
virtual std::string classificationAsString(unsigned int) const
virtual unsigned int numberOfClassifiers() const
float m_minREndPrimary
If track has end vertex, this is min R of end vertex to be considered primary.
float m_minZEndPrimary
If track has end vertex, this is min Z of end vertex to be considered primary.
virtual std::string nameOfClassifier() const
virtual StatusCode initialize()
initialize
float m_maxRStartPrimary
Max R of start vertex to be considered primary.
virtual void initClassification(const McEventCollection &, const std::vector< HepMC::ConstGenParticlePtr > *) const
explain
float m_maxZStartPrimary
Max Z of start vertex to be considered primary.
virtual unsigned int classify(HepMC::ConstGenParticlePtr) const
const GenParticle * ConstGenParticlePtr
Definition GenParticle.h:38
Ensure that the ATLAS eigen extensions are properly loaded.
Simple struct to access the names of the track classifiers.