ATLAS Offline Software
MuonCalibRawHitCollection.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 
7 #include <algorithm>
8 #include <utility>
9 
15 
16 namespace MuonCalib {
17 
19  MuonCalibRawTgcHitVec rawTgcHitVec, MuonCalibRawTgcCoinVec rawTgcCoinVec,
20  MuonCalibRawCscHitVec rawCscHitVec) :
21  m_rawMdtHitVec{std::move(rawMdtHitVec)},
22  m_rawRpcHitVec{std::move(rawRpcHitVec)},
23  m_rawTgcHitVec{std::move(rawTgcHitVec)},
24  m_rawTgcCoinVec{std::move(rawTgcCoinVec)},
25  m_rawCscHitVec{std::move(rawCscHitVec)} {}
26 
29 
32 
35 
38 
41 
43  m_rawMdtHitVec.clear();
44  m_rawRpcHitVec.clear();
45  m_rawTgcHitVec.clear();
46  m_rawTgcCoinVec.clear();
47  m_rawCscHitVec.clear();
48 
49  for (const MdtCalibRawHitPtr& mdt_it : other.m_rawMdtHitVec) { m_rawMdtHitVec.emplace_back(new MuonCalibRawMdtHit(*mdt_it)); }
50  for (const RpcCalibRawHitPtr& rpc_it : other.m_rawRpcHitVec) { m_rawRpcHitVec.emplace_back(rpc_it); }
51  for (const TgcCalibRawHitPtr& tgc_it : other.m_rawTgcHitVec) { m_rawTgcHitVec.emplace_back(tgc_it); }
52  for (const TgcCoinRawPtr& tgcCoin_it : other.m_rawTgcCoinVec) { m_rawTgcCoinVec.emplace_back(tgcCoin_it); }
53  for (const CscCalibRawHitPtr& csc_it : other.m_rawCscHitVec) { m_rawCscHitVec.emplace_back(csc_it); }
54  }
56 
58  if (this != &other) { copy(other); }
59  return (*this);
60  }
66 
68  if (rawHit) { m_rawMdtHitVec.emplace_back(rawHit); }
69  }
71  if (rawHit) { m_rawRpcHitVec.emplace_back(rawHit); }
72  }
74  if (rawHit) { m_rawTgcHitVec.emplace_back(rawHit); }
75  }
77  if (rawHit) { m_rawTgcCoinVec.emplace_back(rawHit); }
78  }
80  if (rawHit) { m_rawCscHitVec.emplace_back(rawHit); }
81  }
83  if (rawHit) { m_rawMdtHitVec.emplace_back(rawHit); }
84  }
86  if (rawHit) { m_rawRpcHitVec.emplace_back(rawHit); }
87  }
89  if (rawHit) { m_rawTgcHitVec.emplace_back(rawHit); }
90  }
92  if (rawHit) { m_rawTgcCoinVec.emplace_back(rawHit); }
93  }
95  if (rawHit) { m_rawCscHitVec.emplace_back(rawHit); }
96  }
97 } // namespace MuonCalib
MuonCalib::MuonCalibRawHitCollection::MuonCalibRawTgcHitVec
std::vector< TgcCalibRawHitPtr > MuonCalibRawTgcHitVec
Definition: MuonCalibRawHitCollection.h:56
MuonCalib::MuonCalibRawHitCollection::MdtContainer
const MuonCalibRawMdtHitVec & MdtContainer() const
Retrieve references to the container themselves.
Definition: MuonCalibRawHitCollection.cxx:27
MuonCalib::MuonCalibRawHitCollection::m_rawTgcHitVec
MuonCalibRawTgcHitVec m_rawTgcHitVec
set of MuonCalibRawTgcHit s
Definition: MuonCalibRawHitCollection.h:129
MuonCalib::MuonCalibRawHitCollection::MdtCalibRawHitPtr
std::shared_ptr< MuonCalibRawMdtHit > MdtCalibRawHitPtr
typedef of a set of MuonCalibRawMdtHit s
Definition: MuonCalibRawHitCollection.h:46
MuonCalibRawCscHit.h
MuonCalib::MuonCalibRawHitCollection::CscCalibRawHitPtr
std::shared_ptr< const MuonCalibRawCscHit > CscCalibRawHitPtr
typedef of a set of MuonCalibRawCscHit s
Definition: MuonCalibRawHitCollection.h:63
MuonCalib::MuonCalibRawHitCollection::MuonCalibRawMdtHitVec
std::vector< MdtCalibRawHitPtr > MuonCalibRawMdtHitVec
typedef of the smart pointer owning the CaliorationRawRpcHit
Definition: MuonCalibRawHitCollection.h:49
MuonCalibRawTgcCoin.h
MuonCalib::MuonCalibRawCscHit
Definition: MuonCalibRawCscHit.h:29
MuonCalib::MuonCalibRawHitCollection::RpcCalibRawHitPtr
std::shared_ptr< const MuonCalibRawRpcHit > RpcCalibRawHitPtr
typedef of a set of MuonCalibRawRpcHit s
Definition: MuonCalibRawHitCollection.h:51
MuonCalib::MuonCalibRawHitCollection::m_rawMdtHitVec
MuonCalibRawMdtHitVec m_rawMdtHitVec
set of MuonCalibRawMdtHit s
Definition: MuonCalibRawHitCollection.h:127
MuonCalib::MuonCalibRawMdtHit
Definition: MuonCalibRawMdtHit.h:22
MuonCalib::MuonCalibRawHitCollection::operator=
MuonCalibRawHitCollection & operator=(const MuonCalibRawHitCollection &rhs)
assignment operator
Definition: MuonCalibRawHitCollection.cxx:57
MuonCalib::MuonCalibRawHitCollection::numberOfMuonCalibRawCscHits
int numberOfMuonCalibRawCscHits() const
add a MuonCalibRawMdtHit to the collection
Definition: MuonCalibRawHitCollection.cxx:65
MuonCalib::MuonCalibRawHitCollection::numberOfMuonCalibRawTgcCoins
int numberOfMuonCalibRawTgcCoins() const
retrieve the number of MuonCalibRawCscHits in the collection
Definition: MuonCalibRawHitCollection.cxx:64
MuonCalib::MuonCalibRawHitCollection::MuonCalibRawRpcHitVec
std::vector< RpcCalibRawHitPtr > MuonCalibRawRpcHitVec
Definition: MuonCalibRawHitCollection.h:52
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MuonCalibRawHitCollection::MuonCalibRawCscHitVec
std::vector< CscCalibRawHitPtr > MuonCalibRawCscHitVec
Definition: MuonCalibRawHitCollection.h:64
MuonCalib::MuonCalibRawHitCollection::copy
void copy(const MuonCalibRawHitCollection &other)
Definition: MuonCalibRawHitCollection.cxx:42
MuonCalib::MuonCalibRawHitCollection::numberOfMuonCalibRawRpcHits
int numberOfMuonCalibRawRpcHits() const
retrieve the number of MuonCalibRawTgcHits in the collection
Definition: MuonCalibRawHitCollection.cxx:62
MuonCalib::MuonCalibRawHitCollection::m_rawRpcHitVec
MuonCalibRawRpcHitVec m_rawRpcHitVec
set of MuonCalibRawRpcHit s
Definition: MuonCalibRawHitCollection.h:128
MuonCalib::MuonCalibRawHitCollection::m_rawTgcCoinVec
MuonCalibRawTgcCoinVec m_rawTgcCoinVec
set of MuonCalibRawTgcCoin s
Definition: MuonCalibRawHitCollection.h:130
MuonCalib::MuonCalibRawTgcHit
Definition: MuonCalibRawTgcHit.h:28
MuonCalib::MuonCalibRawRpcHit
Definition: MuonCalibRawRpcHit.h:27
MuonCalib::MuonCalibRawHitCollection::m_rawCscHitVec
MuonCalibRawCscHitVec m_rawCscHitVec
set of MuonCalibRawCscHit s
Definition: MuonCalibRawHitCollection.h:131
MuonCalib::MuonCalibRawHitCollection
Definition: MuonCalibRawHitCollection.h:42
MuonCalib::MuonCalibRawHitCollection::MuonCalibRawTgcCoinVec
std::vector< TgcCoinRawPtr > MuonCalibRawTgcCoinVec
Definition: MuonCalibRawHitCollection.h:60
MuonCalib::MuonCalibRawHitCollection::TgcCoinRawPtr
std::shared_ptr< const MuonCalibRawTgcCoin > TgcCoinRawPtr
typedef of a set of MuonCalibRawTgcHit s
Definition: MuonCalibRawHitCollection.h:59
MuonCalib::MuonCalibRawHitCollection::numberOfMuonCalibRawMdtHits
int numberOfMuonCalibRawMdtHits() const
retrieve the number of MuonCalibRawRpcHits in the collection
Definition: MuonCalibRawHitCollection.cxx:61
MuonCalib::MuonCalibRawHitCollection::CscContainer
const MuonCalibRawCscHitVec & CscContainer() const
Definition: MuonCalibRawHitCollection.cxx:36
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
MuonCalib::MuonCalibRawHitCollection::TgcCoinContainer
const MuonCalibRawTgcCoinVec & TgcCoinContainer() const
Definition: MuonCalibRawHitCollection.cxx:39
MuonCalibRawTgcHit.h
MuonCalib::MuonCalibRawHitCollection::TgcContainer
const MuonCalibRawTgcHitVec & TgcContainer() const
Definition: MuonCalibRawHitCollection.cxx:33
MuonCalibRawRpcHit.h
MuonCalibRawHitCollection.h
MuonCalibRawMdtHit.h
MuonCalib::MuonCalibRawHitCollection::RpcContainer
const MuonCalibRawRpcHitVec & RpcContainer() const
Definition: MuonCalibRawHitCollection.cxx:30
MuonCalib::MuonCalibRawTgcCoin
Definition: MuonCalibRawTgcCoin.h:28
MuonCalib::MuonCalibRawHitCollection::MuonCalibRawHitCollection
MuonCalibRawHitCollection()=default
MuonCalib::MuonCalibRawHitCollection::TgcCalibRawHitPtr
std::shared_ptr< const MuonCalibRawTgcHit > TgcCalibRawHitPtr
typedef of a set of MuonCalibRawTgcHit s
Definition: MuonCalibRawHitCollection.h:55
MuonCalib::MuonCalibRawHitCollection::addMuonCalibRawHit
void addMuonCalibRawHit(MuonCalibRawMdtHit *rawHit)
Definition: MuonCalibRawHitCollection.cxx:67
MuonCalib::MuonCalibRawHitCollection::numberOfMuonCalibRawTgcHits
int numberOfMuonCalibRawTgcHits() const
retrieve the number of MuonCalibRawTgcHits in the collection
Definition: MuonCalibRawHitCollection.cxx:63