ATLAS Offline Software
Loading...
Searching...
No Matches
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
14
16public:
17 TrackTruthSelector(const std::string &name,ISvcLocator *pSvcLocator);
18
19 virtual StatusCode initialize() override;
20 virtual StatusCode execute() override;
21
22private:
23
24
25 // DetailedTrackTruthCollection input name
27 {this, "DetailedTrackTruthName", "DetailedTrackTruth"};
28
29 // TrackTruthCollection output name
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
47 double getProbability(const DetailedTrackTruth& dt) const;
48};
49
50#endif/*TRACKTRUTHSELECTOR_H*/
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
double getProbability(const DetailedTrackTruth &dt) const
DoubleProperty m_weightCSC
SG::WriteHandleKey< TrackTruthCollection > m_outputName
std::vector< double > m_subDetWeights
void fillOutput(TrackTruthCollection *out, const DetailedTrackTruthCollection *in)
SG::ReadHandleKey< DetailedTrackTruthCollection > m_detailedTrackTruthName
virtual StatusCode initialize() override
DoubleProperty m_weightTGC
DoubleProperty m_weightTRT
virtual StatusCode execute() override
TrackTruthSelector(const std::string &name, ISvcLocator *pSvcLocator)
DoubleProperty m_weightMM
DoubleProperty m_weightPixel
DoubleProperty m_weightRPC
DoubleProperty m_weightsTGC
DoubleProperty m_weightSCT
DoubleProperty m_weightMDT