ATLAS Offline Software
Loading...
Searching...
No Matches
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
15namespace 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};
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
Class to represent measurements from the Monitored Drift Tubes.
Definition MdtPrepData.h:33
double alpha() const
const Muon::IMuonIdHelperSvc * m_idHelperSvc
const Identifier getIdentifier() const
const Amg::Vector3D & globalPosition() const
Amg::Vector3D m_gpos
double alphaError() const
double getChMidPoint() const
bool isCombined() const
const std::vector< const Muon::MdtPrepData * > & mdtHitsOnTrack() const
double rError() const
double zError() const
int getHitPattern() const
TrackletSegment()=default
int mdtChamber() const
std::vector< const Muon::MdtPrepData * > m_mdts
Eigen::Matrix< double, 3, 1 > Vector3D
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.