ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkValidation
TrkValTools
TrkValTools
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
16
#include "
AthenaBaseComps/AthAlgTool.h
"
17
#include "
TrkValInterfaces/ITrackTruthClassifier.h
"
18
#include "
TrkValEvent/TruthClassificationDefs.h
"
19
20
#include "
AtlasHepMC/GenParticle.h
"
21
#include "
AtlasHepMC/SimpleVector.h
"
22
23
namespace
Trk
{
24
31
32
class
PrimaryTruthClassifier
:
virtual
public
ITrackTruthClassifier
,
33
public
AthAlgTool
{
34
public
:
35
36
PrimaryTruthClassifier
(
const
std::string&
type
,
const
std::string& name,
37
const
IInterface* parent);
38
~PrimaryTruthClassifier
() {}
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
:
55
float
m_maxRStartPrimary
;
56
float
m_maxZStartPrimary
;
58
float
m_minREndPrimary
;
60
float
m_minZEndPrimary
;
61
float
m_maxRStartSecondary
;
62
float
m_maxZStartSecondary
;
63
float
m_minREndSecondary
;
64
float
m_minZEndSecondary
;
65
66
};
67
68
inline
unsigned
int
Trk::PrimaryTruthClassifier::numberOfClassifiers
()
const
{
69
return
Trk::TruthClassification::NumberOfPrimaryClassifiers
;
70
}
71
72
inline
std::string
Trk::PrimaryTruthClassifier::nameOfClassifier
()
const
{
73
return
"reconstructableForInDet"
;
74
}
75
76
inline
std::string
Trk::PrimaryTruthClassifier::classificationAsString
(
unsigned
int
i)
const
{
77
Trk::TruthClassification::PrimaryClassifierStrings
PC;
78
return
PC.
names
[i];
79
}
80
81
}
// end namespace
82
#endif
AthAlgTool.h
GenParticle.h
ITrackTruthClassifier.h
SimpleVector.h
TruthClassificationDefs.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
McEventCollection
This defines the McEventCollection, which is really just an ObjectVector of McEvent objectsFile: Gene...
Definition
McEventCollection.h:31
Trk::ITrackTruthClassifier
provides the interface for tools which classify gen particles
Definition
ITrackTruthClassifier.h:29
Trk::PrimaryTruthClassifier::m_minREndSecondary
float m_minREndSecondary
Definition
PrimaryTruthClassifier.h:63
Trk::PrimaryTruthClassifier::PrimaryTruthClassifier
PrimaryTruthClassifier(const std::string &type, const std::string &name, const IInterface *parent)
Definition
PrimaryTruthClassifier.cxx:17
Trk::PrimaryTruthClassifier::classificationAsString
virtual std::string classificationAsString(unsigned int) const
Definition
PrimaryTruthClassifier.h:76
Trk::PrimaryTruthClassifier::numberOfClassifiers
virtual unsigned int numberOfClassifiers() const
Definition
PrimaryTruthClassifier.h:68
Trk::PrimaryTruthClassifier::finalize
virtual StatusCode finalize()
Definition
PrimaryTruthClassifier.cxx:49
Trk::PrimaryTruthClassifier::~PrimaryTruthClassifier
~PrimaryTruthClassifier()
Definition
PrimaryTruthClassifier.h:38
Trk::PrimaryTruthClassifier::m_minREndPrimary
float m_minREndPrimary
If track has end vertex, this is min R of end vertex to be considered primary.
Definition
PrimaryTruthClassifier.h:58
Trk::PrimaryTruthClassifier::m_minZEndPrimary
float m_minZEndPrimary
If track has end vertex, this is min Z of end vertex to be considered primary.
Definition
PrimaryTruthClassifier.h:60
Trk::PrimaryTruthClassifier::nameOfClassifier
virtual std::string nameOfClassifier() const
Definition
PrimaryTruthClassifier.h:72
Trk::PrimaryTruthClassifier::initialize
virtual StatusCode initialize()
initialize
Definition
PrimaryTruthClassifier.cxx:44
Trk::PrimaryTruthClassifier::m_maxRStartPrimary
float m_maxRStartPrimary
Max R of start vertex to be considered primary.
Definition
PrimaryTruthClassifier.h:55
Trk::PrimaryTruthClassifier::m_minZEndSecondary
float m_minZEndSecondary
Definition
PrimaryTruthClassifier.h:64
Trk::PrimaryTruthClassifier::initClassification
virtual void initClassification(const McEventCollection &, const std::vector< HepMC::ConstGenParticlePtr > *) const
explain
Definition
PrimaryTruthClassifier.cxx:55
Trk::PrimaryTruthClassifier::m_maxZStartSecondary
float m_maxZStartSecondary
Definition
PrimaryTruthClassifier.h:62
Trk::PrimaryTruthClassifier::m_maxRStartSecondary
float m_maxRStartSecondary
Definition
PrimaryTruthClassifier.h:61
Trk::PrimaryTruthClassifier::m_maxZStartPrimary
float m_maxZStartPrimary
Max Z of start vertex to be considered primary.
Definition
PrimaryTruthClassifier.h:56
Trk::PrimaryTruthClassifier::classify
virtual unsigned int classify(HepMC::ConstGenParticlePtr) const
Definition
PrimaryTruthClassifier.cxx:64
HepMC::ConstGenParticlePtr
HepMC3::ConstGenParticlePtr ConstGenParticlePtr
Definition
GenParticle.h:20
Trk::TruthClassification::NumberOfPrimaryClassifiers
@ NumberOfPrimaryClassifiers
Definition
TruthClassificationDefs.h:28
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
type
Trk::TruthClassification::PrimaryClassifierStrings
Simple struct to access the names of the track classifiers.
Definition
TruthClassificationDefs.h:52
Trk::TruthClassification::PrimaryClassifierStrings::names
std::vector< std::string > names
The member.
Definition
TruthClassificationDefs.h:64
Generated on
for ATLAS Offline Software by
1.17.0