ATLAS Offline Software
Loading...
Searching...
No Matches
CscClusterOnTrack.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6// CscClusterOnTrack.cxx
7// Implementation file for class CscClusterOnTrack
9// (c) ATLAS Detector software
11// Version 1.0 06/07/2004 Ketevi A. Assamagan
12// adapted from Veronique Boisvert
14
17
18namespace Muon
19{
20
21 // Default constructor:
30
31 // copy constructor:
33
34 // Constructor with parameters
36 const CscPrepData* RIO,
37 Trk::LocalParameters&& locpos,
38 Amg::MatrixX&& locerr,
39 double positionAlongStrip,
42 float time ) :
43 MuonClusterOnTrack(std::move(locpos), std::move(locerr), RIO->identify(), positionAlongStrip), //call base class constructor
44 m_detEl( RIO->detectorElement() ),
48{
49 //Set EL
50 // m_rio = ElementLinkToIDC_CSC_Container("CSC_Clusters", RIO->getHashAndIndex().hashAndIndex(), RIO);
51 m_rio.setElement(RIO);
52}
53
56 Trk::LocalParameters&& locpos,
57 Amg::MatrixX&& locerr,
58 const Identifier& id,
59 const MuonGM::CscReadoutElement* detEl,
60 double positionAlongStrip,
63 float time ) :
64 MuonClusterOnTrack(std::move(locpos), std::move(locerr), id, positionAlongStrip), //call base class constructor
65 m_rio( RIO ),
66 m_detEl( detEl ),
70{
71}
72
73 // Destructor:
75 = default;
76
77 // assignment operator:
79 {
80 if ( &rot != this)
81 {
82 MuonClusterOnTrack::operator=(rot);//base class ass. op.
83 m_rio = rot.m_rio;
84 m_detEl = rot.m_detEl;
85 m_status = rot.m_status;
87 m_time = rot.m_time;
88 }
89 return *this;
90 }
91
92 MsgStream& CscClusterOnTrack::dump( MsgStream& stream) const
93 {
94 stream << MSG::INFO<<"CscClusterOnTrack {"<<std::endl;
95 stream <<"Time: "<<m_time<<std::endl;
96 stream <<"Status: "<<m_status<<std::endl;
97 stream <<"TimeStatus: "<<m_timeStatus<<std::endl;
98
100
101 stream << "Cluster Status: "<<toString(m_status)<<std::endl;
102 stream << "Cluster Time Status: "<<toString(m_timeStatus)<<std::endl;
103
104 stream<<"}"<<endmsg;
105 return stream;
106 }
107
108 std::ostream& CscClusterOnTrack::dump( std::ostream& stream) const
109 {
110 stream << "CscClusterOnTrack {"<<std::endl;
111 stream <<"Time: "<<m_time<<std::endl;
112 stream <<"Status: "<<m_status<<std::endl;
113 stream <<"TimeStatus: "<<m_timeStatus<<std::endl;
114
116
117 stream << "Cluster Status: "<<toString(m_status)<<std::endl;
118 stream << "Cluster Time Status: "<<toString(m_timeStatus)<<std::endl;
119
120 stream<<"}"<<std::endl;
121 return stream;
122 }
123
124}
125
126
#define endmsg
ElementLink< Muon::CscPrepDataContainer > ElementLinkToIDC_CSC_Container
Class to implement Cluster On Track for Si.
Class to represent the calibrated clusters created from CSC strips.
ElementLinkToIDC_CSC_Container m_rio
PrepRawData object assoicated with this measurement.
CscClusterOnTrack & operator=(const CscClusterOnTrack &)
const MuonGM::CscReadoutElement * m_detEl
The detector element, associated with this measurement.
virtual const MuonGM::CscReadoutElement * detectorElement() const override final
Returns the detector element, associated with the PRD of this class.
CscClusterStatus status() const
Returns Csc position measurement status flag.
CscTimeStatus timeStatus() const
Returns Csc time measurement status flag.
CscClusterStatus m_status
cluster position measurement status
virtual MsgStream & dump(MsgStream &stream) const override final
Dumps information about the PRD.
float time() const
Return the time(ns)
CscTimeStatus m_timeStatus
cluster time measurement status
virtual ~CscClusterOnTrack()
Destructor.
Class representing clusters from the CSC.
Definition CscPrepData.h:39
virtual double positionAlongStrip() const
MuonClusterOnTrack()
Pool constructor.
MuonClusterOnTrack & operator=(const MuonClusterOnTrack &)
virtual MsgStream & dump(MsgStream &stream) const override
Dumps information about the PRD.
Identifier identify() const
return the identifier -extends MeasurementBase
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
std::string toString(CscStripStatus cstat)
Return a string description of a CSC cluster status flag.
CscClusterStatus
Enum to represent the cluster status - see the specific enum values for more details.
@ CscStatusUndefined
Undefined, should not happen, most likely indicates a problem.
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.
STL namespace.