2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
8 Trk::TrackInfo::setTrackProperties(const TrackProperties& property)
10 // std::cout<<"Set track properties "<<std::endl;
11 m_properties.set(property);
12 if (property == BremFitSuccessful && m_particleHypo == undefined) {
13 m_particleHypo = electron;
18 Trk::TrackInfo::setPatternRecognitionInfo(
19 const TrackPatternRecoInfo& patternReco)
21 m_patternRecognition.set(patternReco);
25 Trk::TrackInfo::setTrackFitter(const TrackFitter& fitter)
27 m_fitter = (fitter < NumberOfTrackFitters) ? fitter : Unknown;
31 Trk::TrackInfo::setParticleHypothesis(const ParticleHypothesis& hypothesis)
33 m_particleHypo = hypothesis;
37 inline const Trk::TrackInfo::TrackFitter&
38 Trk::TrackInfo::trackFitter() const
43 inline Trk::ParticleHypothesis
44 Trk::TrackInfo::particleHypothesis() const
46 return m_particleHypo;
50 Trk::TrackInfo::trackProperties(const TrackProperties& property) const
52 return m_properties.test(property);
56 Trk::TrackInfo::patternRecoInfo(const TrackPatternRecoInfo& pattern) const
58 return m_patternRecognition.test(pattern);
62 TrackInfo::clone() const
64 return new TrackInfo(*this);
68 TrackInfo::dumpBitsProperties() const
71 .to_string<char, std::char_traits<char>, std::allocator<char>>();
75 TrackInfo::dumpBitsPatternRecoInfo() const
77 return m_patternRecognition
78 .to_string<char, std::char_traits<char>, std::allocator<char>>();
81 inline const std::bitset<TrackInfo::NumberOfTrackProperties>&
82 TrackInfo::properties() const
87 inline const std::bitset<TrackInfo::NumberOfTrackRecoInfo>&
88 TrackInfo::patternRecognition() const
90 return m_patternRecognition;
94 TrackInfo::addPatternRecoAndProperties(const TrackInfo& rhs)
96 // merging information by means of bitwise "or"
98 m_properties = m_properties | rhs.m_properties;
102 TrackInfo::addPatternReco(const TrackInfo& rhs)
104 // merging information by means of bitwise "or"
105 m_patternRecognition = m_patternRecognition | rhs.m_patternRecognition;
108 } // end of namespace Trk