ATLAS Offline Software
Loading...
Searching...
No Matches
CscPrepData.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6// CscPrepData.cxx
7// Implementation file for class CscPrepData
9// (c) ATLAS Detector software
11// Version 1.0 03/29/2005 Ketevi A. Assamagan
13
14#include <new>
15#include <sstream>
17#include "GaudiKernel/MsgStream.h"
18
19namespace Muon
20{
21
23 const IdentifierHash& idDE,
24 const Amg::Vector2D& locpos,
25 const std::vector<Identifier>& rdoList,
26 const Amg::MatrixX& locErrMat,
27 const MuonGM::CscReadoutElement* detEl,
28 const int charge,
29 const double time,
32 MuonCluster(RDOId, idDE, locpos, rdoList, locErrMat), //call base class constructor
33 m_detEl(detEl),
35 m_time(time),
38 { }
39
41 const IdentifierHash& idDE,
42 const Amg::Vector2D& locpos,
43 std::vector<Identifier>&& rdoList,
44 Amg::MatrixX&& locErrMat,
45 const MuonGM::CscReadoutElement* detEl,
46 const int charge,
47 const double time,
50 MuonCluster(RDOId, idDE, locpos, std::move(rdoList), std::move(locErrMat)), //call base class constructor
51 m_detEl(detEl),
53 m_time(time),
56 { }
57
58
59 // Destructor:
61 = default;
62
63 // Default constructor:
72
73
74 MsgStream& CscPrepData::dump( MsgStream& stream) const
75 {
76 stream << MSG::INFO << "CscPrepData {" <<std::endl;
77
78 MuonCluster::dump(stream);
79
80 std::stringstream s;
81 s << "Charge = "<<this->charge() << ", ";
82 s << std::setiosflags(std::ios::fixed);
83 s << std::setprecision(4);
84 s << "Time = "<<this->time() << ", ";
85 s << "Status = "<<this->status();
86 s << "TimeStatus = "<<this->timeStatus();
87 s << "}" << std::endl;
88 stream << s.str();
89
90 return stream;
91 }
92
93 std::ostream& CscPrepData::dump( std::ostream& stream) const
94 {
95 stream << "CscPrepData {"<<std::endl;
96
97 MuonCluster::dump(stream);
98
99 std::stringstream s;
100 s << "Charge = " << this->charge() << ", ";
101 s << std::setiosflags(std::ios::fixed);
102 s << std::setprecision(4);
103 s << "Time = " << this->time() << ", ";
104 s << "Status = "<<this->status();
105 s << "TimeStatus = "<<this->timeStatus();
106 s << "}" <<std::endl;
107 stream << s.str();
108
109 return stream;
110 }
111 //end of classdef
112
113}//end of ns
This is a "hash" representation of an Identifier.
CscTimeStatus m_timeStatus
CscTimeStatus timeStatus() const
Returns the Csc time status flag.
CscClusterStatus m_status
double time() const
Returns the time.
virtual ~CscPrepData()
Destructor.
virtual MsgStream & dump(MsgStream &stream) const override final
Dumps information about the PRD.
const MuonGM::CscReadoutElement * m_detEl
Pointer to the detector element.
int charge() const
Returns the charge.
CscClusterStatus status() const
Returns the Csc status (position measurement) flag.
virtual MsgStream & dump(MsgStream &stream) const override
Dumps information about the PRD.
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Eigen::Matrix< double, 2, 1 > Vector2D
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.
@ 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.