ATLAS Offline Software
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 
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
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*/
TrackTruthSelector::m_weightTGC
DoubleProperty m_weightTGC
Definition: TrackTruthSelector.h:41
TrackTruthSelector::execute
virtual StatusCode execute() override
Definition: TrackTruthSelector.cxx:28
TrackTruthSelector::m_weightCSC
DoubleProperty m_weightCSC
Definition: TrackTruthSelector.h:42
TrackTruthSelector::m_detailedTrackTruthName
SG::ReadHandleKey< DetailedTrackTruthCollection > m_detailedTrackTruthName
Definition: TrackTruthSelector.h:27
SubDetHitStatistics::NUM_SUBDETECTORS
@ NUM_SUBDETECTORS
Definition: SubDetHitStatistics.h:74
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:34
SG::ReadHandleKey< DetailedTrackTruthCollection >
TrackTruthSelector::m_weightPixel
DoubleProperty m_weightPixel
Definition: TrackTruthSelector.h:36
TrackTruthSelector::m_weightTRT
DoubleProperty m_weightTRT
Definition: TrackTruthSelector.h:38
TrackTruthSelector::m_weightsTGC
DoubleProperty m_weightsTGC
Definition: TrackTruthSelector.h:43
AthAlgorithm.h
TrackTruthSelector::m_outputName
SG::WriteHandleKey< TrackTruthCollection > m_outputName
Definition: TrackTruthSelector.h:31
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:59
TrackTruthSelector::getProbability
double getProbability(const DetailedTrackTruth &dt) const
Definition: TrackTruthSelector.cxx:94
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
DetailedTrackTruth
Definition: DetailedTrackTruth.h:16
TrackTruthSelector::initialize
virtual StatusCode initialize() override
Definition: TrackTruthSelector.cxx:10
TrackTruthSelector::m_weightMM
DoubleProperty m_weightMM
Definition: TrackTruthSelector.h:44
TrackTruthSelector::m_weightSCT
DoubleProperty m_weightSCT
Definition: TrackTruthSelector.h:37
DetailedTrackTruthCollection
Definition: DetailedTrackTruthCollection.h:20
TrackTruthSelector::m_weightRPC
DoubleProperty m_weightRPC
Definition: TrackTruthSelector.h:40
TrackTruthSelector::m_weightMDT
DoubleProperty m_weightMDT
Definition: TrackTruthSelector.h:39