ATLAS Offline Software
MuonCalibRawTriggerHitCollection.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 
7 #include <algorithm>
8 
10 
11 
12 namespace MuonCalib {
14  m_rawRpcTriggerHitVec{std::move(rawRpcTriggerHitVec)} {}
17  m_rawRpcTriggerHitVec.clear();
18  for (const CalibRawRpcTriggerHitPtr &rpc_it : other.get()) { addMuonCalibRawTriggerHit(rpc_it); }
19  }
20 
22  if (this != &rhs) { copy(rhs); }
23  return (*this);
24  }
26 
28  if (rawTriggerHit) {
29  m_rawRpcTriggerHitVec.emplace_back(rawTriggerHit);
30  } else {
31  MsgStream log(Athena::getMessageSvc(), "MuonCalibRawTriggerHitCollection");
32  log << MSG::WARNING << "Refuse to put an empty MuonCalibRawRpcTriggerHit in MuonCalibRawTriggerHitCollection" << endmsg;
33  }
34  }
36  return m_rawRpcTriggerHitVec;
37  }
39  return m_rawRpcTriggerHitVec;
40  }
41 
42 } // namespace MuonCalib
MuonCalib::MuonCalibRawTriggerHitCollection::addMuonCalibRawTriggerHit
void addMuonCalibRawTriggerHit(const CalibRawRpcTriggerHitPtr &rawTriggerHit)
add a MuonCalibRawRpcHit to the collection
Definition: MuonCalibRawTriggerHitCollection.cxx:27
MuonCalib::MuonCalibRawTriggerHitCollection::numberOfMuonCalibRawRpcTriggerHits
int numberOfMuonCalibRawRpcTriggerHits() const
retrieve the number of MuonCalibRawRpcHits in the collection
Definition: MuonCalibRawTriggerHitCollection.cxx:25
MuonCalib::MuonCalibRawTriggerHitCollection::CalibRawRpcTriggerHitPtr
std::shared_ptr< const MuonCalibRawRpcTriggerHit > CalibRawRpcTriggerHitPtr
typedef of a set of MuonCalibRawRpcTriggerHit s
Definition: MuonCalibRawTriggerHitCollection.h:30
MuonCalib::MuonCalibRawTriggerHitCollection::m_rawRpcTriggerHitVec
MuonCalibRawRpcTriggerHitVec m_rawRpcTriggerHitVec
set of MuonCalibRawRpcHit s
Definition: MuonCalibRawTriggerHitCollection.h:50
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
MuonCalib::MuonCalibRawTriggerHitCollection
Definition: MuonCalibRawTriggerHitCollection.h:27
MuonCalib::MuonCalibRawTriggerHitCollection::get
const MuonCalibRawRpcTriggerHitVec & get() const
Definition: MuonCalibRawTriggerHitCollection.cxx:35
MuonCalibRawRpcTriggerHit.h
MuonCalib::MuonCalibRawTriggerHitCollection::copy
void copy(const MuonCalibRawTriggerHitCollection &other)
Definition: MuonCalibRawTriggerHitCollection.cxx:16
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MuonCalibRawTriggerHitCollection::MuonCalibRawRpcTriggerHitVec
std::vector< CalibRawRpcTriggerHitPtr > MuonCalibRawRpcTriggerHitVec
typedef of an iterator of the set muonCalibRawRpcTriggerHit s
Definition: MuonCalibRawTriggerHitCollection.h:32
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
MuonCalib::MuonCalibRawTriggerHitCollection::MuonCalibRawTriggerHitCollection
MuonCalibRawTriggerHitCollection()=default
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
MuonCalib::MuonCalibRawTriggerHitCollection::operator=
MuonCalibRawTriggerHitCollection & operator=(const MuonCalibRawTriggerHitCollection &rhs)
assingment operator
Definition: MuonCalibRawTriggerHitCollection.cxx:21
MuonCalibRawTriggerHitCollection.h