ATLAS Offline Software
Tracking
TrkAlgorithms
TrkTruthAlgs
TrkTruthAlgs
TrackTruthSelector.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRACKTRUTHSELECTOR_H
6
#define TRACKTRUTHSELECTOR_H
7
8
#include <string>
9
#include <vector>
10
11
#include "
AthenaBaseComps/AthAlgorithm.h
"
12
#include "
TrkTruthData/DetailedTrackTruthCollection.h
"
13
#include "
TrkTruthData/TrackTruthCollection.h
"
14
15
class
TrackTruthSelector
:
public
AthAlgorithm
{
16
public
:
17
TrackTruthSelector
(
const
std::string &
name
,ISvcLocator *pSvcLocator);
18
19
virtual
StatusCode
initialize
()
override
;
20
virtual
StatusCode
execute
()
override
;
21
22
private
:
23
24
25
// DetailedTrackTruthCollection input name
26
SG::ReadHandleKey<DetailedTrackTruthCollection>
m_detailedTrackTruthName
;
27
28
// TrackTruthCollection output name
29
SG::WriteHandleKey<TrackTruthCollection>
m_outputName
;
30
31
// Subdetector weights
32
std::vector<double>
m_subDetWeights
;
33
34
void
fillOutput
(
TrackTruthCollection
*
out
,
const
DetailedTrackTruthCollection
*in);
35
double
getProbability
(
const
DetailedTrackTruth
&
dt
)
const
;
36
};
37
38
#endif
/*TRACKTRUTHSELECTOR_H*/
TrackTruthSelector::execute
virtual StatusCode execute() override
Definition:
TrackTruthSelector.cxx:36
TrackTruthSelector::m_detailedTrackTruthName
SG::ReadHandleKey< DetailedTrackTruthCollection > m_detailedTrackTruthName
Definition:
TrackTruthSelector.h:26
TrackTruthSelector::TrackTruthSelector
TrackTruthSelector(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
TrackTruthSelector.cxx:7
python.AthDsoLogger.out
out
Definition:
AthDsoLogger.py:71
TrackTruthSelector::m_subDetWeights
std::vector< double > m_subDetWeights
Definition:
TrackTruthSelector.h:32
SG::ReadHandleKey< DetailedTrackTruthCollection >
AthAlgorithm.h
TrackTruthSelector::m_outputName
SG::WriteHandleKey< TrackTruthCollection > m_outputName
Definition:
TrackTruthSelector.h:29
TrackTruthSelector
Definition:
TrackTruthSelector.h:15
TrackTruthCollection
Definition:
TrackTruthCollection.h:21
DetailedTrackTruthCollection.h
SG::WriteHandleKey< TrackTruthCollection >
TrackTruthCollection.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloNoise_fillDB.dt
dt
Definition:
CaloNoise_fillDB.py:58
TrackTruthSelector::fillOutput
void fillOutput(TrackTruthCollection *out, const DetailedTrackTruthCollection *in)
Definition:
TrackTruthSelector.cxx:67
TrackTruthSelector::getProbability
double getProbability(const DetailedTrackTruth &dt) const
Definition:
TrackTruthSelector.cxx:102
AthAlgorithm
Definition:
AthAlgorithm.h:47
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:195
DetailedTrackTruth
Definition:
DetailedTrackTruth.h:16
TrackTruthSelector::initialize
virtual StatusCode initialize() override
Definition:
TrackTruthSelector.cxx:28
DetailedTrackTruthCollection
Definition:
DetailedTrackTruthCollection.h:20
Generated on Tue Jul 2 2024 21:30:08 for ATLAS Offline Software by
1.8.18