ATLAS Offline Software
TgcPrepData.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 // TgcPrepData.cxx
7 // Implementation file for class TgcPrepData
9 // (c) ATLAS Detector software
11 // Version 1.0 03/29/2005 Ketevi A. Assamagan
13 
14 #include <new>
16 #include "GaudiKernel/MsgStream.h"
17 
18 namespace Muon
19 {
20 
22  const IdentifierHash &idDE,
23  const Amg::Vector2D& locpos,
24  const std::vector<Identifier>& rdoList,
25  const Amg::MatrixX& locErrMat,
26  const MuonGM::TgcReadoutElement* detEl,
27  const uint16_t bcBitMap) :
28  MuonCluster(RDOId, idDE, locpos, rdoList, locErrMat), //call base class constructor
29  m_detEl(detEl),
30  m_bcBitMap(bcBitMap)
31 { }
32 
34  const IdentifierHash &idDE,
35  const Amg::Vector2D& locpos,
36  std::vector<Identifier>&& rdoList,
37  Amg::MatrixX&& locErrMat,
38  const MuonGM::TgcReadoutElement* detEl,
39  const uint16_t bcBitMap) :
40  MuonCluster(RDOId, idDE, locpos, std::move(rdoList), std::move(locErrMat)), //call base class constructor
41  m_detEl(detEl),
42  m_bcBitMap(bcBitMap)
43 { }
44 
45 
46 
47 // Destructor:
49 = default;
50 
51 // Default constructor:
53  MuonCluster(),
54  m_detEl(nullptr),
55  m_bcBitMap(0)
56 { }
57 
58 //copy constructor:
60 
61 = default;
62 
63 //assignment operator
65 {
66  if (&RIO !=this)
67  {
69  m_detEl = RIO.m_detEl ;
70  m_bcBitMap = RIO.m_bcBitMap;
71  }
72  return *this;
73 }
74 
76 {
77  return m_bcBitMap;
78 }
79 
80 void TgcPrepData::setBcBitMap(const uint16_t bcBitMap)
81 {
82  m_bcBitMap = bcBitMap;
83 }
84 
85 MsgStream& TgcPrepData::dump( MsgStream& stream) const
86  {
87  stream << MSG::INFO<<"TgcPrepData {"<<std::endl;
88 
90 
91  stream<<"} End TgcPrepData"<<endmsg;
92 
93  return stream;
94  }
95 
96  std::ostream& TgcPrepData::dump( std::ostream& stream) const
97  {
98  stream << "TgcPrepData {"<<std::endl;
99 
101 
102  stream<<"} End TgcPrepData"<<std::endl;
103  return stream;
104  }
105 //end of classdef
106 }//end of ns
107 
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:29
Muon::TgcPrepData::TgcPrepData
TgcPrepData()
Definition: TgcPrepData.cxx:52
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
Muon::TgcPrepData::dump
virtual MsgStream & dump(MsgStream &stream) const override final
Dumps information about the PRD.
Definition: TgcPrepData.cxx:85
Muon::TgcPrepData::~TgcPrepData
virtual ~TgcPrepData()
Destructor:
Muon::MuonCluster::operator=
MuonCluster & operator=(const MuonCluster &)
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/src/MuonCluster.cxx:67
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
TgcPrepData.h
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
Muon::TgcPrepData::getBcBitMap
uint16_t getBcBitMap() const
Returns the bcBitMap of this PRD bit2 for Previous BC, bit1 for Current BC, bit0 for Next BC.
Definition: TgcPrepData.cxx:75
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Muon::TgcPrepData::m_detEl
const MuonGM::TgcReadoutElement * m_detEl
Definition: TgcPrepData.h:110
MuonGM::TgcReadoutElement
A TgcReadoutElement corresponds to a single TGC chamber; therefore typically a TGC station contains s...
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/TgcReadoutElement.h:42
Muon::TgcPrepData::setBcBitMap
void setBcBitMap(const uint16_t)
set the bcBitMap for this PRD
Definition: TgcPrepData.cxx:80
Muon::TgcPrepData::operator=
TgcPrepData & operator=(const TgcPrepData &)
Definition: TgcPrepData.cxx:64
Muon::TgcPrepData
Class to represent TGC measurements.
Definition: TgcPrepData.h:32
Muon::MuonCluster::dump
virtual MsgStream & dump(MsgStream &stream) const override
Dumps information about the PRD.
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/src/MuonCluster.cxx:78
Muon::MuonCluster
Class representing clusters in the muon system.
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/MuonPrepRawData/MuonCluster.h:37
Muon::TgcPrepData::m_bcBitMap
uint16_t m_bcBitMap
Definition: TgcPrepData.h:111
IdentifierHash
Definition: IdentifierHash.h:38