ATLAS Offline Software
Loading...
Searching...
No Matches
CscPrepData.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6// CscPrepPdata.h
7// Header file for class CscPrepData
9// (c) ATLAS Detector software
11// Class to implement Cluster for Muon - CSC
13// Version 1.0 03/29/2005 Ketevi A. Assamagan
15
16#ifndef MUONPREPRAWDATA_CSCPREPDATA_H
17#define MUONPREPRAWDATA_CSCPREPDATA_H
18
19// Base classes
21#include "TrkSurfaces/Surface.h"
25
26#include<vector>
27
28
29namespace Muon
30{
31
33
37class CscPrepData final: public MuonCluster
38{
39
40 // /////////////////////////////////////////////////////////////////
41 // Public methods:
42 // /////////////////////////////////////////////////////////////////
43 public:
44
46
48 CscPrepData(const CscPrepData &) = default;
49 CscPrepData(CscPrepData &&) noexcept = default;
50 CscPrepData &operator=(const CscPrepData &) = default;
51 CscPrepData &operator=(CscPrepData &&) noexcept = default;
52
53
69 const Amg::Vector2D& locpos,
71 const Amg::MatrixX& locErrMat,
73 const int charge,
74 const double time,
77 );
78
81 const Amg::Vector2D& locpos,
83 Amg::MatrixX&& locErrMat,
85 const int charge,
86 const double time,
89 );
90
91
93 virtual ~CscPrepData();
94
96 // Virtual methods
98
100 virtual const Amg::Vector3D& globalPosition() const override final;
101
105 virtual const MuonGM::CscReadoutElement* detectorElement() const override final;
106
108 virtual Trk::PrepRawDataType prdType() const override final {
110 }
111
113
114 int charge() const;
115
117 double time() const;
118
120 CscClusterStatus status() const;
121
124
126 virtual MsgStream& dump( MsgStream& stream) const override final;
127
129 virtual std::ostream& dump( std::ostream& stream) const override final;
130
131private:
132
136 double m_time;
139};
140
142 // Inline methods:
144
146 {
147 return m_detEl;
148 }
149
150 inline int CscPrepData::charge() const
151 {
152 return m_charge;
153 }
154
155 inline double CscPrepData::time() const
156 {
157 return m_time;
158 }
159
161 {
162 return m_status;
163 }
164
166 {
167 return m_timeStatus;
168 }
169
170 // return globalPosition:
172 {
173 if (not m_globalPosition) {
174 m_globalPosition.set(std::make_unique<const Amg::Vector3D>(
175 m_detEl->surface(identify())
177 }
178
180 return *m_globalPosition;
181 }
182
183}
184
185#endif // MUONPREPRAWDATA_CSCPREPDATA_H
186
PrepRawDataType
Definition PrepRawData.h:39
Eigen::Matrix< double, 3, 1 > Vector3D
This is a "hash" representation of an Identifier.
CscTimeStatus m_timeStatus
CscTimeStatus timeStatus() const
Returns the Csc time status flag.
virtual const Amg::Vector3D & globalPosition() const override final
Returns the global position.
virtual const MuonGM::CscReadoutElement * detectorElement() const override final
Return the detector element corresponding to this PRD.
CscClusterStatus m_status
double time() const
Returns the time.
const MuonGM::CscReadoutElement * m_detEl
Pointer to the detector element.
int charge() const
Returns the charge.
CscPrepData(const CscPrepData &)=default
virtual Trk::PrepRawDataType prdType() const override final
Interface method returning the prdType.
CscPrepData(CscPrepData &&) noexcept=default
CscClusterStatus status() const
Returns the Csc status (position measurement) flag.
CxxUtils::CachedUniquePtr< const Amg::Vector3D > m_globalPosition
Global position of measurement.
class thrown in the event of an variable not being defined.
Definition PrepRawData.h:59
const Amg::Vector2D & localPosition() const
return the local position reference
Identifier identify() const
return the identifier
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)
virtual void localToGlobal(const Amg::Vector2D &locp, const Amg::Vector3D &mom, Amg::Vector3D &glob) const =0
Specified by each surface type: LocalToGlobal method without dynamic memory allocation.
Definition of ATLAS Math & Geometry primitives (Amg).
Eigen::Matrix< double, 3, 1 > Vector3D
Ensure that the Athena extensions are properly loaded.
Definition GeoMuonHits.h:27
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
CscClusterStatus
Enum to represent the cluster status - see the specific enum values for more details.
CscTimeStatus
Enum to represent the cluster time measurement status - see the specific enum values for more details...
@ CscTimeStatusUndefined
Time is not assessed indicating potential bug.
Ensure that the ATLAS eigen extensions are properly loaded.
-event-from-file
STL namespace.