Loading [MathJax]/jax/output/SVG/config.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
TrackletSegment.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #pragma once
6 
7 #include <vector>
8 
10 #include "Identifier/Identifier.h"
13 
14 
15 namespace Muon {
16  class MdtPrepData;
17 }
18 
21  private:
23 
24  std::vector<const Muon::MdtPrepData*> m_mdts{}; // vector of hits on track
25  Amg::Vector3D m_gpos{Amg::Vector3D::Zero()}; // global position of the segment
26  double m_alpha{-999.}, m_dalpha{-999.}; // angle of the segment
27  double m_rErr{-999.}, m_zErr{-999.}; // error on the r & z coordinates
28  int m_pattern{0}; // hit pattern of the mdt hits
29  bool m_isCombined{false}; // TrackletSegment build from combined fit with another
30 
31  public:
32  TrackletSegment() = default;
33  TrackletSegment(const Muon::IMuonIdHelperSvc* idHelperSvc,
34  const std::vector<const Muon::MdtPrepData*>& mdts,
35  const Amg::Vector3D& gpos,
36  double alpha, double dalpha,
37  double rErr, double zErr,
38  int pattern);
39 
41 
42  // set functions
43  void clearMdt();
44  void isCombined(bool iscomb);
45 
46  // get functions
47  const std::vector<const Muon::MdtPrepData*>& mdtHitsOnTrack() const;
48  const Identifier getIdentifier() const;
49  const Amg::Vector3D& globalPosition() const;
50  double alpha() const;
51  double alphaError() const;
52  double zError() const;
53  double rError() const;
54  int getHitPattern() const;
55  bool isCombined() const;
56 
57  // get properties of the MDT chamber
58  int mdtChamber() const;
59  int mdtChEta() const;
60  int mdtChPhi() const;
61  double getChMidPoint() const;
62 };
mergePhysValFiles.pattern
pattern
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:26
TrackletSegment::clearMdt
void clearMdt()
Definition: TrackletSegment.cxx:26
Trk::PrepRawDataType::MdtPrepData
@ MdtPrepData
TrackletSegment::m_gpos
Amg::Vector3D m_gpos
Definition: TrackletSegment.h:25
TrackletSegment::m_alpha
double m_alpha
Definition: TrackletSegment.h:26
TrackletSegment::TrackletSegment
TrackletSegment()=default
TrackletSegment::m_pattern
int m_pattern
Definition: TrackletSegment.h:28
TrackletSegment::m_rErr
double m_rErr
Definition: TrackletSegment.h:27
TrackletSegment::getChMidPoint
double getChMidPoint() const
Definition: TrackletSegment.cxx:44
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
TrackletSegment::m_idHelperSvc
const Muon::IMuonIdHelperSvc * m_idHelperSvc
Definition: TrackletSegment.h:22
TrackletSegment::isCombined
bool isCombined() const
Definition: TrackletSegment.cxx:38
TrackletSegment::getIdentifier
const Identifier getIdentifier() const
Definition: TrackletSegment.cxx:31
TrackletSegment::rError
double rError() const
Definition: TrackletSegment.cxx:36
TrackletSegment::globalPosition
const Amg::Vector3D & globalPosition() const
Definition: TrackletSegment.cxx:32
GeoPrimitives.h
MdtPrepDataContainer.h
TrackletSegment::mdtChamber
int mdtChamber() const
Definition: TrackletSegment.cxx:41
TrackletSegment
New segment class for single ML segments.
Definition: TrackletSegment.h:20
TrackletSegment::alphaError
double alphaError() const
Definition: TrackletSegment.cxx:34
TrackletSegment::m_zErr
double m_zErr
Definition: TrackletSegment.h:27
TrackletSegment::alpha
double alpha() const
Definition: TrackletSegment.cxx:33
TrackletSegment::~TrackletSegment
~TrackletSegment()
TrackletSegment::m_mdts
std::vector< const Muon::MdtPrepData * > m_mdts
Definition: TrackletSegment.h:24
TrackletSegment::m_isCombined
bool m_isCombined
Definition: TrackletSegment.h:29
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
TrackletSegment::zError
double zError() const
Definition: TrackletSegment.cxx:35
TrackletSegment::mdtHitsOnTrack
const std::vector< const Muon::MdtPrepData * > & mdtHitsOnTrack() const
Definition: TrackletSegment.cxx:30
Muon::IMuonIdHelperSvc
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
Definition: IMuonIdHelperSvc.h:27
TrackletSegment::mdtChEta
int mdtChEta() const
Definition: TrackletSegment.cxx:42
TrackletSegment::mdtChPhi
int mdtChPhi() const
Definition: TrackletSegment.cxx:43
TrackletSegment::getHitPattern
int getHitPattern() const
Definition: TrackletSegment.cxx:37
IMuonIdHelperSvc.h
TrackletSegment::m_dalpha
double m_dalpha
Definition: TrackletSegment.h:26
generate::Zero
void Zero(TH1D *hin)
Definition: generate.cxx:32
Identifier
Definition: IdentifierFieldParser.cxx:14