ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkAlgorithms
TrkTruthAlgs
TrkTruthAlgs
TrackTruthSelector.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 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
(
const
EventContext& ctx)
override
;
21
22
private
:
23
24
25
// DetailedTrackTruthCollection input name
26
SG::ReadHandleKey<DetailedTrackTruthCollection>
m_detailedTrackTruthName
27
{
this
,
"DetailedTrackTruthName"
,
"DetailedTrackTruth"
};
28
29
// TrackTruthCollection output name
30
SG::WriteHandleKey<TrackTruthCollection>
m_outputName
31
{
this
,
"OutputName"
,
"TrackTruthNew"
};
32
33
// Subdetector weights
34
std::vector<double>
m_subDetWeights
= std::vector<double>(
SubDetHitStatistics::NUM_SUBDETECTORS
, 1.);
35
36
DoubleProperty
m_weightPixel
{
this
,
"WeightPixel"
, 1.};
37
DoubleProperty
m_weightSCT
{
this
,
"WeightSCT"
, 1.};
38
DoubleProperty
m_weightTRT
{
this
,
"WeightTRT"
, 1.};
39
DoubleProperty
m_weightMDT
{
this
,
"WeightMDT"
, 1.};
40
DoubleProperty
m_weightRPC
{
this
,
"WeightRPC"
, 1.};
41
DoubleProperty
m_weightTGC
{
this
,
"WeightTGC"
, 1.};
42
DoubleProperty
m_weightCSC
{
this
,
"WeightCSC"
, 1.};
43
DoubleProperty
m_weightsTGC
{
this
,
"WeightsTGC"
, 0.25};
44
DoubleProperty
m_weightMM
{
this
,
"WeightMM"
, 0.25};
45
46
void
fillOutput
(
TrackTruthCollection
*out,
const
DetailedTrackTruthCollection
*in);
47
double
getProbability
(
const
DetailedTrackTruth
& dt)
const
;
48
};
49
50
#endif
/*TRACKTRUTHSELECTOR_H*/
AthAlgorithm.h
DetailedTrackTruthCollection.h
TrackTruthCollection.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
DetailedTrackTruthCollection
Definition
DetailedTrackTruthCollection.h:20
DetailedTrackTruth
Definition
DetailedTrackTruth.h:16
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
SubDetHitStatistics::NUM_SUBDETECTORS
@ NUM_SUBDETECTORS
Definition
SubDetHitStatistics.h:74
TrackTruthCollection
Definition
TrackTruthCollection.h:21
TrackTruthSelector::getProbability
double getProbability(const DetailedTrackTruth &dt) const
Definition
TrackTruthSelector.cxx:94
TrackTruthSelector::m_weightCSC
DoubleProperty m_weightCSC
Definition
TrackTruthSelector.h:42
TrackTruthSelector::m_outputName
SG::WriteHandleKey< TrackTruthCollection > m_outputName
Definition
TrackTruthSelector.h:31
TrackTruthSelector::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
TrackTruthSelector.cxx:28
TrackTruthSelector::m_subDetWeights
std::vector< double > m_subDetWeights
Definition
TrackTruthSelector.h:34
TrackTruthSelector::fillOutput
void fillOutput(TrackTruthCollection *out, const DetailedTrackTruthCollection *in)
Definition
TrackTruthSelector.cxx:59
TrackTruthSelector::m_detailedTrackTruthName
SG::ReadHandleKey< DetailedTrackTruthCollection > m_detailedTrackTruthName
Definition
TrackTruthSelector.h:27
TrackTruthSelector::initialize
virtual StatusCode initialize() override
Definition
TrackTruthSelector.cxx:10
TrackTruthSelector::m_weightTGC
DoubleProperty m_weightTGC
Definition
TrackTruthSelector.h:41
TrackTruthSelector::m_weightTRT
DoubleProperty m_weightTRT
Definition
TrackTruthSelector.h:38
TrackTruthSelector::TrackTruthSelector
TrackTruthSelector(const std::string &name, ISvcLocator *pSvcLocator)
Definition
TrackTruthSelector.cxx:7
TrackTruthSelector::m_weightMM
DoubleProperty m_weightMM
Definition
TrackTruthSelector.h:44
TrackTruthSelector::m_weightPixel
DoubleProperty m_weightPixel
Definition
TrackTruthSelector.h:36
TrackTruthSelector::m_weightRPC
DoubleProperty m_weightRPC
Definition
TrackTruthSelector.h:40
TrackTruthSelector::m_weightsTGC
DoubleProperty m_weightsTGC
Definition
TrackTruthSelector.h:43
TrackTruthSelector::m_weightSCT
DoubleProperty m_weightSCT
Definition
TrackTruthSelector.h:37
TrackTruthSelector::m_weightMDT
DoubleProperty m_weightMDT
Definition
TrackTruthSelector.h:39
Generated on
for ATLAS Offline Software by
1.17.0