ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
Muon::RpcByteStreamErrorContainer Class Reference

#include <RpcByteStreamErrorContainer.h>

Collaboration diagram for Muon::RpcByteStreamErrorContainer:

Public Types

typedef DataVector< std::pair< IdentifierHash, int > >::const_iterator rpcErrorIterator
 

Public Member Functions

 RpcByteStreamErrorContainer ()
 
 RpcByteStreamErrorContainer (const DataVector< std::pair< IdentifierHash, int > > &errorVector)
 
 ~RpcByteStreamErrorContainer ()
 
void clear ()
 
void addError (IdentifierHash, int)
 
int getError (IdentifierHash) const
 
std::vector< IdentifierHashgetPadsWithError () const
 
const DataVector< std::pair< IdentifierHash, int > > & getAllErrors () const
 

Private Attributes

DataVector< std::pair< IdentifierHash, int > > m_errorVector
 

Detailed Description

Definition at line 53 of file RpcByteStreamErrorContainer.h.

Member Typedef Documentation

◆ rpcErrorIterator

Definition at line 56 of file RpcByteStreamErrorContainer.h.

Constructor & Destructor Documentation

◆ RpcByteStreamErrorContainer() [1/2]

Muon::RpcByteStreamErrorContainer::RpcByteStreamErrorContainer ( )

Definition at line 10 of file RpcByteStreamErrorContainer.cxx.

11 {}

◆ RpcByteStreamErrorContainer() [2/2]

Muon::RpcByteStreamErrorContainer::RpcByteStreamErrorContainer ( const DataVector< std::pair< IdentifierHash, int > > &  errorVector)

Definition at line 13 of file RpcByteStreamErrorContainer.cxx.

14  :
15  m_errorVector (inputVector)
16 {}

◆ ~RpcByteStreamErrorContainer()

Muon::RpcByteStreamErrorContainer::~RpcByteStreamErrorContainer ( )

Definition at line 18 of file RpcByteStreamErrorContainer.cxx.

19 {}

Member Function Documentation

◆ addError()

void Muon::RpcByteStreamErrorContainer::addError ( IdentifierHash  idh,
int  type 
)

Definition at line 27 of file RpcByteStreamErrorContainer.cxx.

28 {
29 
30  std::pair<IdentifierHash, int>* err = new std::pair<IdentifierHash, int>(std::make_pair(idh,type));
32 
33 }

◆ clear()

void Muon::RpcByteStreamErrorContainer::clear ( )

Definition at line 34 of file RpcByteStreamErrorContainer.cxx.

35 {
37 }

◆ getAllErrors()

const DataVector< std::pair< IdentifierHash, int > > & Muon::RpcByteStreamErrorContainer::getAllErrors ( ) const

Definition at line 22 of file RpcByteStreamErrorContainer.cxx.

23 {
24  return m_errorVector;
25 }

◆ getError()

int Muon::RpcByteStreamErrorContainer::getError ( IdentifierHash  idh) const

Definition at line 38 of file RpcByteStreamErrorContainer.cxx.

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 }

◆ getPadsWithError()

std::vector< IdentifierHash > Muon::RpcByteStreamErrorContainer::getPadsWithError ( ) const

Definition at line 56 of file RpcByteStreamErrorContainer.cxx.

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 }

Member Data Documentation

◆ m_errorVector

DataVector<std::pair<IdentifierHash, int> > Muon::RpcByteStreamErrorContainer::m_errorVector
private

Definition at line 70 of file RpcByteStreamErrorContainer.h.


The documentation for this class was generated from the following files:
dqt_zlumi_pandas.err
err
Definition: dqt_zlumi_pandas.py:182
Muon::RpcByteStreamErrorContainer::rpcErrorIterator
DataVector< std::pair< IdentifierHash, int > >::const_iterator rpcErrorIterator
Definition: RpcByteStreamErrorContainer.h:56
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.
DataVector::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
Muon::RpcByteStreamErrorContainer::m_errorVector
DataVector< std::pair< IdentifierHash, int > > m_errorVector
Definition: RpcByteStreamErrorContainer.h:70
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
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.