ATLAS Offline Software
RpcByteStreamErrorContainer.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 namespace Muon {
8 
9 
11 {}
12 
13 RpcByteStreamErrorContainer::RpcByteStreamErrorContainer( const DataVector< std::pair < IdentifierHash, int > > & inputVector )
14  :
15  m_errorVector (inputVector)
16 {}
17 
19 {}
20 
23 {
24  return m_errorVector;
25 }
26 
28 {
29 
30  std::pair<IdentifierHash, int>* err = new std::pair<IdentifierHash, int>(std::make_pair(idh,type));
32 
33 }
35 {
37 }
39 {
40  int errorCode=-1;
41  if ( m_errorVector.size()==0) return errorCode;
44  for (;myIt!=myItE;++myIt)
45  {
46  IdentifierHash myPadId = (*myIt)->first;
47  if (myPadId==idh) {
48  errorCode= (*myIt)->second;
49  break;
50  }
51  }
52 
53  return errorCode;
54 }
55 
56 std::vector<IdentifierHash> RpcByteStreamErrorContainer::getPadsWithError() const
57 {
60  std::vector<IdentifierHash> myList;
61  for (;myIt!=myItE;++myIt)
62  {
63  IdentifierHash myPadId = (*myIt)->first;
64  myList.push_back(myPadId);
65  }
66  return myList;
67 }
68 
69 
70 }
Muon::RpcByteStreamErrorContainer::getError
int getError(IdentifierHash) const
Definition: RpcByteStreamErrorContainer.cxx:38
Muon::RpcByteStreamErrorContainer::RpcByteStreamErrorContainer
RpcByteStreamErrorContainer()
Definition: RpcByteStreamErrorContainer.cxx:10
Muon::RpcByteStreamErrorContainer::~RpcByteStreamErrorContainer
~RpcByteStreamErrorContainer()
Definition: RpcByteStreamErrorContainer.cxx:18
Muon::RpcByteStreamErrorContainer::getPadsWithError
std::vector< IdentifierHash > getPadsWithError() const
Definition: RpcByteStreamErrorContainer.cxx:56
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
Muon::RpcByteStreamErrorContainer::getAllErrors
const DataVector< std::pair< IdentifierHash, int > > & getAllErrors() const
Definition: RpcByteStreamErrorContainer.cxx:22
dqt_zlumi_pandas.err
err
Definition: dqt_zlumi_pandas.py:193
Muon::RpcByteStreamErrorContainer::rpcErrorIterator
DataVector< std::pair< IdentifierHash, int > >::const_iterator rpcErrorIterator
Definition: RpcByteStreamErrorContainer.h:56
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
DataVector::clear
void clear()
Erase all the elements in the collection.
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
Muon::RpcByteStreamErrorContainer::clear
void clear()
Definition: RpcByteStreamErrorContainer.cxx:34
DataVector::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
RpcByteStreamErrorContainer.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
Muon::RpcByteStreamErrorContainer::m_errorVector
DataVector< std::pair< IdentifierHash, int > > m_errorVector
Definition: RpcByteStreamErrorContainer.h:70
IdentifierHash
Definition: IdentifierHash.h:38
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
DataVector::begin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
Muon::RpcByteStreamErrorContainer::addError
void addError(IdentifierHash, int)
Definition: RpcByteStreamErrorContainer.cxx:27