ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
Muon::RpcRdoToPrepDataToolMT::State Struct Reference

#include <RpcRdoToPrepDataToolMT.h>

Collaboration diagram for Muon::RpcRdoToPrepDataToolMT::State:

Public Member Functions

 State (const IMuonIdHelperSvc *idHelperSvc)
 
Muon::RpcPrepDataCollectiongetPrepCollection (const Identifier &id)
 
Muon::RpcCoinDataCollectiongetCoinCollection (const Identifier &id)
 

Public Attributes

const IMuonIdHelperSvcm_idHelperSvc {nullptr}
 
std::vector< std::unique_ptr< Muon::RpcPrepDataCollection > > rpcPrepDataCollections {}
 
std::vector< std::unique_ptr< Muon::RpcCoinDataCollection > > rpcCoinDataCollections {}
 
std::unique_ptr< Muon::RpcPrepDataContainerprepDataCont {nullptr}
 Pointer of the prep container stored in store gate. More...
 
std::unique_ptr< Muon::RpcCoinDataContainercoinDataCont {nullptr}
 Pointer of the coin container stored in store gate. More...
 
bool m_fullEventDone {false}
 
std::unordered_set< IdentifierHashm_decodedOfflineHashIds {}
 
std::unordered_set< IdentifierHashm_ambiguousCollections {}
 
std::unordered_set< uint32_t > m_decodedRobIds {}
 

Detailed Description

Definition at line 52 of file RpcRdoToPrepDataToolMT.h.

Constructor & Destructor Documentation

◆ State()

Muon::RpcRdoToPrepDataToolMT::State::State ( const IMuonIdHelperSvc idHelperSvc)

Definition at line 21 of file RpcRdoToPrepDataToolMT.cxx.

21  :
22  m_idHelperSvc{idHelperSvc} {
23  const IdentifierHash hashMax = m_idHelperSvc->rpcIdHelper().module_hash_max();
24  rpcPrepDataCollections.resize(hashMax);
25  rpcCoinDataCollections.resize(hashMax);
26 }

Member Function Documentation

◆ getCoinCollection()

RpcCoinDataCollection * Muon::RpcRdoToPrepDataToolMT::State::getCoinCollection ( const Identifier id)

Definition at line 37 of file RpcRdoToPrepDataToolMT.cxx.

37  {
38  const IdentifierHash rpdModHash = m_idHelperSvc->moduleHash(chanId);
39  std::unique_ptr<RpcCoinDataCollection>& coll = rpcCoinDataCollections[rpdModHash];
40  if (!coll) {
41  coll = std::make_unique<RpcCoinDataCollection>(rpdModHash);
42  coll->setIdentifier(m_idHelperSvc->chamberId(chanId));
43  }
44  return coll.get();
45 }

◆ getPrepCollection()

RpcPrepDataCollection * Muon::RpcRdoToPrepDataToolMT::State::getPrepCollection ( const Identifier id)

Definition at line 27 of file RpcRdoToPrepDataToolMT.cxx.

27  {
28 
29  const IdentifierHash rpdModHash = m_idHelperSvc->moduleHash(chanId);
30  std::unique_ptr<RpcPrepDataCollection>& coll = rpcPrepDataCollections[rpdModHash];
31  if (!coll) {
32  coll = std::make_unique<RpcPrepDataCollection>(rpdModHash);
33  coll->setIdentifier(m_idHelperSvc->chamberId(chanId));
34  }
35  return coll.get();
36 }

Member Data Documentation

◆ coinDataCont

std::unique_ptr<Muon::RpcCoinDataContainer> Muon::RpcRdoToPrepDataToolMT::State::coinDataCont {nullptr}

Pointer of the coin container stored in store gate.

Definition at line 67 of file RpcRdoToPrepDataToolMT.h.

◆ m_ambiguousCollections

std::unordered_set<IdentifierHash> Muon::RpcRdoToPrepDataToolMT::State::m_ambiguousCollections {}

Definition at line 79 of file RpcRdoToPrepDataToolMT.h.

◆ m_decodedOfflineHashIds

std::unordered_set<IdentifierHash> Muon::RpcRdoToPrepDataToolMT::State::m_decodedOfflineHashIds {}

Definition at line 75 of file RpcRdoToPrepDataToolMT.h.

◆ m_decodedRobIds

std::unordered_set<uint32_t> Muon::RpcRdoToPrepDataToolMT::State::m_decodedRobIds {}

Definition at line 82 of file RpcRdoToPrepDataToolMT.h.

◆ m_fullEventDone

bool Muon::RpcRdoToPrepDataToolMT::State::m_fullEventDone {false}

Definition at line 71 of file RpcRdoToPrepDataToolMT.h.

◆ m_idHelperSvc

const IMuonIdHelperSvc* Muon::RpcRdoToPrepDataToolMT::State::m_idHelperSvc {nullptr}

Definition at line 59 of file RpcRdoToPrepDataToolMT.h.

◆ prepDataCont

std::unique_ptr<Muon::RpcPrepDataContainer> Muon::RpcRdoToPrepDataToolMT::State::prepDataCont {nullptr}

Pointer of the prep container stored in store gate.

Definition at line 65 of file RpcRdoToPrepDataToolMT.h.

◆ rpcCoinDataCollections

std::vector<std::unique_ptr<Muon::RpcCoinDataCollection> > Muon::RpcRdoToPrepDataToolMT::State::rpcCoinDataCollections {}

Definition at line 62 of file RpcRdoToPrepDataToolMT.h.

◆ rpcPrepDataCollections

std::vector<std::unique_ptr<Muon::RpcPrepDataCollection> > Muon::RpcRdoToPrepDataToolMT::State::rpcPrepDataCollections {}

Definition at line 61 of file RpcRdoToPrepDataToolMT.h.


The documentation for this struct was generated from the following files:
Muon::RpcRdoToPrepDataToolMT::State::rpcPrepDataCollections
std::vector< std::unique_ptr< Muon::RpcPrepDataCollection > > rpcPrepDataCollections
Definition: RpcRdoToPrepDataToolMT.h:61
Muon::IMuonIdHelperSvc::moduleHash
virtual IdentifierHash moduleHash(const Identifier &id) const =0
Returns the module hash associated to an Identifier.
Muon::RpcRdoToPrepDataToolMT::State::m_idHelperSvc
const IMuonIdHelperSvc * m_idHelperSvc
Definition: RpcRdoToPrepDataToolMT.h:59
Muon::RpcRdoToPrepDataToolMT::State::rpcCoinDataCollections
std::vector< std::unique_ptr< Muon::RpcCoinDataCollection > > rpcCoinDataCollections
Definition: RpcRdoToPrepDataToolMT.h:62
Muon::IMuonIdHelperSvc::chamberId
virtual Identifier chamberId(const Identifier &id) const =0
create a chamber ID
MuonIdHelper::module_hash_max
size_type module_hash_max() const
the maximum hash value
Definition: MuonIdHelper.cxx:748
Muon::IMuonIdHelperSvc::rpcIdHelper
virtual const RpcIdHelper & rpcIdHelper() const =0
access to RpcIdHelper