ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetValidation
InDetSegmentDriftCircleAssValidation
InDetSegmentDriftCircleAssValidation
SegmentDriftCircleAssValidation.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef SegmentDriftCircleAssValidation_H
6
#define SegmentDriftCircleAssValidation_H
7
8
9
#include "
AthenaBaseComps/AthAlgorithm.h
"
10
#include "
InDetPrepRawData/TRT_DriftCircleContainer.h
"
11
#include "
AtlasHepMC/GenParticle.h
"
12
#include "
TrkTruthData/PRD_MultiTruthCollection.h
"
13
15
#include "
TrkSegment/SegmentCollection.h
"
16
17
//Drift circle
18
#include "
InDetPrepRawData/TRT_DriftCircle.h
"
19
20
#include "
StoreGate/ReadHandleKey.h
"
21
#include <string>
22
#include <map>
23
#include <list>
24
#include <iosfwd>
25
26
namespace
InDet
{
27
28
29
// Class-algorithm for track cluster association validation
30
//
31
class
SegmentDriftCircleAssValidation
:
public
AthAlgorithm
32
{
33
35
// Public methods:
37
38
public
:
39
41
// Standard Algotithm methods
43
44
SegmentDriftCircleAssValidation
(
const
std::string &name, ISvcLocator *pSvcLocator);
45
virtual
~SegmentDriftCircleAssValidation
() {}
46
StatusCode
initialize
();
47
StatusCode
execute
(
const
EventContext& ctx);
48
StatusCode
finalize
();
49
51
// Print internal tool parameters and status
53
54
MsgStream&
dump
(MsgStream& out)
const
;
55
std::ostream&
dump
(std::ostream& out)
const
;
56
57
protected
:
58
60
// Protected data
62
63
int
m_nprint
;
64
SG::ReadHandleKey<Trk::SegmentCollection>
m_origtrackKey
{
this
,
"OrigTracksLocation"
,
"TRTSegments"
,
"TRT Segments collection name"
};
65
SG::ReadHandleKey<PRD_MultiTruthCollection>
m_PRDTruthTRTKey
{
this
,
"TruthNameTRT"
,
"PRD_MultiTruthTRT"
,
"PRD Multitruth collection name"
};
66
SG::ReadHandleKey<TRT_DriftCircleContainer>
m_circlesTRTKey
{
this
,
"TRT_DriftCirclesName"
,
"TRT_DriftCircles"
,
"TRT Driftcircle container name"
};
67
double
m_pTmin
;
68
double
m_tcut
;
69
double
m_rapcut
;
70
int
m_dccut
;
71
double
m_rmin
;
72
double
m_rmax
;
73
74
int
m_events
;
75
int
m_ncircles
;
76
std::multimap<int,const Trk::PrepRawData*>
m_kinecircle
;
77
std::list<int>
m_allBarcodes
;
78
int
m_nqsegments
;
79
std::list<int>
m_particles
;
80
std::multimap<int,int>
m_allParticles
;
81
std::multimap<int,int>
m_tracks
;
82
int
m_efficiency
[5]{} ;
83
85
// Protected methods
87
88
void
newCirclesEvent
(
const
PRD_MultiTruthCollection
* );
89
void
tracksComparison
(
const
Trk::SegmentCollection
*,
const
PRD_MultiTruthCollection
* );
90
void
efficiencyReconstruction
();
91
int
QualityTracksSelection
();
92
93
std::list<int>
kine
(
const
InDet::TRT_DriftCircle
*,
const
PRD_MultiTruthCollection
* prdCollection );
94
std::list<PRD_MultiTruthCollection::const_iterator>
95
kinpart
(
const
InDet::TRT_DriftCircle
*,
const
PRD_MultiTruthCollection
* );
96
97
bool
isTheSameStrawElement
(
int
,
const
Trk::PrepRawData
*);
98
99
std::list<PRD_MultiTruthCollection::const_iterator>
100
findTruth
(
const
InDet::TRT_DriftCircle
* ,
bool
&,
const
PRD_MultiTruthCollection
* );
101
102
MsgStream&
dumptools
(MsgStream& out)
const
;
103
MsgStream&
dumpevent
(MsgStream& out)
const
;
104
105
};
106
MsgStream&
operator <<
(MsgStream& ,
const
SegmentDriftCircleAssValidation
&);
107
std::ostream&
operator <<
(std::ostream&,
const
SegmentDriftCircleAssValidation
&);
108
}
109
#endif
// SegmentDriftCircleAssValidation_H
AthAlgorithm.h
GenParticle.h
PRD_MultiTruthCollection.h
SegmentCollection.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TRT_DriftCircleContainer.h
TRT_DriftCircle.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
InDet::SegmentDriftCircleAssValidation
Definition
SegmentDriftCircleAssValidation.h:32
InDet::SegmentDriftCircleAssValidation::m_circlesTRTKey
SG::ReadHandleKey< TRT_DriftCircleContainer > m_circlesTRTKey
Definition
SegmentDriftCircleAssValidation.h:66
InDet::SegmentDriftCircleAssValidation::m_origtrackKey
SG::ReadHandleKey< Trk::SegmentCollection > m_origtrackKey
Definition
SegmentDriftCircleAssValidation.h:64
InDet::SegmentDriftCircleAssValidation::initialize
StatusCode initialize()
Definition
SegmentDriftCircleAssValidation.cxx:61
InDet::SegmentDriftCircleAssValidation::kine
std::list< int > kine(const InDet::TRT_DriftCircle *, const PRD_MultiTruthCollection *prdCollection)
Definition
SegmentDriftCircleAssValidation.cxx:470
InDet::SegmentDriftCircleAssValidation::m_events
int m_events
Definition
SegmentDriftCircleAssValidation.h:74
InDet::SegmentDriftCircleAssValidation::m_rapcut
double m_rapcut
Definition
SegmentDriftCircleAssValidation.h:69
InDet::SegmentDriftCircleAssValidation::kinpart
std::list< PRD_MultiTruthCollection::const_iterator > kinpart(const InDet::TRT_DriftCircle *, const PRD_MultiTruthCollection *)
Definition
SegmentDriftCircleAssValidation.cxx:518
InDet::SegmentDriftCircleAssValidation::m_kinecircle
std::multimap< int, const Trk::PrepRawData * > m_kinecircle
Definition
SegmentDriftCircleAssValidation.h:76
InDet::SegmentDriftCircleAssValidation::dumpevent
MsgStream & dumpevent(MsgStream &out) const
Definition
SegmentDriftCircleAssValidation.cxx:250
InDet::SegmentDriftCircleAssValidation::m_dccut
int m_dccut
Definition
SegmentDriftCircleAssValidation.h:70
InDet::SegmentDriftCircleAssValidation::isTheSameStrawElement
bool isTheSameStrawElement(int, const Trk::PrepRawData *)
Definition
SegmentDriftCircleAssValidation.cxx:570
InDet::SegmentDriftCircleAssValidation::execute
StatusCode execute(const EventContext &ctx)
Execute method.
Definition
SegmentDriftCircleAssValidation.cxx:90
InDet::SegmentDriftCircleAssValidation::m_efficiency
int m_efficiency[5]
Definition
SegmentDriftCircleAssValidation.h:82
InDet::SegmentDriftCircleAssValidation::m_ncircles
int m_ncircles
Definition
SegmentDriftCircleAssValidation.h:75
InDet::SegmentDriftCircleAssValidation::m_tcut
double m_tcut
Definition
SegmentDriftCircleAssValidation.h:68
InDet::SegmentDriftCircleAssValidation::m_allParticles
std::multimap< int, int > m_allParticles
Definition
SegmentDriftCircleAssValidation.h:80
InDet::SegmentDriftCircleAssValidation::m_rmax
double m_rmax
Definition
SegmentDriftCircleAssValidation.h:72
InDet::SegmentDriftCircleAssValidation::SegmentDriftCircleAssValidation
SegmentDriftCircleAssValidation(const std::string &name, ISvcLocator *pSvcLocator)
Definition
SegmentDriftCircleAssValidation.cxx:33
InDet::SegmentDriftCircleAssValidation::m_nprint
int m_nprint
Definition
SegmentDriftCircleAssValidation.h:63
InDet::SegmentDriftCircleAssValidation::m_pTmin
double m_pTmin
Definition
SegmentDriftCircleAssValidation.h:67
InDet::SegmentDriftCircleAssValidation::m_nqsegments
int m_nqsegments
Definition
SegmentDriftCircleAssValidation.h:78
InDet::SegmentDriftCircleAssValidation::m_allBarcodes
std::list< int > m_allBarcodes
Definition
SegmentDriftCircleAssValidation.h:77
InDet::SegmentDriftCircleAssValidation::tracksComparison
void tracksComparison(const Trk::SegmentCollection *, const PRD_MultiTruthCollection *)
Definition
SegmentDriftCircleAssValidation.cxx:366
InDet::SegmentDriftCircleAssValidation::m_rmin
double m_rmin
Definition
SegmentDriftCircleAssValidation.h:71
InDet::SegmentDriftCircleAssValidation::finalize
StatusCode finalize()
Definition
SegmentDriftCircleAssValidation.cxx:132
InDet::SegmentDriftCircleAssValidation::QualityTracksSelection
int QualityTracksSelection()
Definition
SegmentDriftCircleAssValidation.cxx:331
InDet::SegmentDriftCircleAssValidation::m_tracks
std::multimap< int, int > m_tracks
Definition
SegmentDriftCircleAssValidation.h:81
InDet::SegmentDriftCircleAssValidation::findTruth
std::list< PRD_MultiTruthCollection::const_iterator > findTruth(const InDet::TRT_DriftCircle *, bool &, const PRD_MultiTruthCollection *)
Definition
SegmentDriftCircleAssValidation.cxx:585
InDet::SegmentDriftCircleAssValidation::dumptools
MsgStream & dumptools(MsgStream &out) const
Definition
SegmentDriftCircleAssValidation.cxx:199
InDet::SegmentDriftCircleAssValidation::efficiencyReconstruction
void efficiencyReconstruction()
Definition
SegmentDriftCircleAssValidation.cxx:437
InDet::SegmentDriftCircleAssValidation::m_PRDTruthTRTKey
SG::ReadHandleKey< PRD_MultiTruthCollection > m_PRDTruthTRTKey
Definition
SegmentDriftCircleAssValidation.h:65
InDet::SegmentDriftCircleAssValidation::m_particles
std::list< int > m_particles
Definition
SegmentDriftCircleAssValidation.h:79
InDet::SegmentDriftCircleAssValidation::~SegmentDriftCircleAssValidation
virtual ~SegmentDriftCircleAssValidation()
Definition
SegmentDriftCircleAssValidation.h:45
InDet::SegmentDriftCircleAssValidation::newCirclesEvent
void newCirclesEvent(const PRD_MultiTruthCollection *)
Definition
SegmentDriftCircleAssValidation.cxx:282
InDet::TRT_DriftCircle
Definition
TRT_DriftCircle.h:32
PRD_MultiTruthCollection
A PRD is mapped onto all contributing particles.
Definition
PRD_MultiTruthCollection.h:24
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
Trk::PrepRawData
Definition
PrepRawData.h:62
InDet
Primary Vertex Finder.
Definition
VP1ErrorUtils.h:36
InDet::operator<<
MsgStream & operator<<(MsgStream &, const GNNTrackFinderTritonTool &)
Trk::SegmentCollection
DataVector< Trk::Segment > SegmentCollection
Definition
SegmentCollection.h:13
dump
-event-from-file
Generated on
for ATLAS Offline Software by
1.17.0