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

15 ns should be the max.diff. More...

#include <RpcRdoToPrepDataToolMT.h>

Collaboration diagram for Muon::RpcRdoToPrepDataToolMT::State:

Public Member Functions

 State (const RpcIdHelper &idHelper, const SG::WriteHandleKey< xAOD::RpcStripContainer > &key, const EventContext &ctx)
 
Muon::RpcPrepDataCollectiongetPrepCollection (const IdentifierHash &hash, MsgStream &msg)
 
Muon::RpcCoinDataCollectiongetCoinCollection (const IdentifierHash &hash, MsgStream &msg)
 

Public Attributes

const RpcIdHelperm_rpcIdHelper
 
std::map< IdentifierHash, std::unique_ptr< Muon::RpcPrepDataCollection > > m_rpcPrepDataCollections {}
 
std::map< IdentifierHash, std::unique_ptr< Muon::RpcCoinDataCollection > > m_rpcCoinDataCollections {}
 
std::unique_ptr< Muon::RpcPrepDataContainerm_prepDataCont {nullptr}
 Pointer of the prep container stored in store gate. More...
 
std::unique_ptr< Muon::RpcCoinDataContainerm_coinDataCont {nullptr}
 Pointer of the coin container stored in store gate. More...
 
SG::WriteHandle< xAOD::RpcStripContainerm_xaodHandle
 Handle to the xAOD container. More...
 
bool m_fullEventDone {false}
 
std::set< IdentifierHashm_decodedOfflineHashIds {}
 
std::set< IdentifierHashm_ambiguousCollections {}
 
std::set< uint32_t > m_decodedRobIds {}
 
const IdContext m_modContext {m_rpcIdHelper.module_context()}
 

Detailed Description

15 ns should be the max.diff.

in prop.time in phi and eta strips

Definition at line 88 of file RpcRdoToPrepDataToolMT.h.

Constructor & Destructor Documentation

◆ State()

Muon::RpcRdoToPrepDataToolMT::State::State ( const RpcIdHelper idHelper,
const SG::WriteHandleKey< xAOD::RpcStripContainer > &  key,
const EventContext &  ctx 
)

Definition at line 20 of file RpcRdoToPrepDataToolMT.cxx.

24  : m_rpcIdHelper{idHelper} {
25  if (!key.empty()) {
27  if (m_xaodHandle.record(std::make_unique<xAOD::RpcStripContainer>(),
28  std::make_unique<xAOD::RpcStripAuxContainer>()).isFailure()) {
29  // Throwing exceptions in a ctor is not nice, but on the other hand, this
30  // should never happen and we need to handle the StatusCode
31  THROW_EXCEPTION("Unable to record ");
32  };
33  }
34 }

Member Function Documentation

◆ getCoinCollection()

Muon::RpcCoinDataCollection * Muon::RpcRdoToPrepDataToolMT::State::getCoinCollection ( const IdentifierHash hash,
MsgStream &  msg 
)

Definition at line 53 of file RpcRdoToPrepDataToolMT.cxx.

54  {
55  std::unique_ptr<Muon::RpcCoinDataCollection>& coll =
56  m_rpcCoinDataCollections[rpcHashId];
57  if (!coll) {
58  Identifier id{0};
59  if (m_rpcIdHelper.get_id(rpcHashId, id, &m_modContext)) {
60  msg << MSG::ERROR << "Module hash creation failed. " << id << endmsg;
61  return nullptr;
62  }
63  coll = std::make_unique<Muon::RpcCoinDataCollection>(rpcHashId);
64  coll->setIdentifier(id);
65  }
66  return coll.get();
67 }

◆ getPrepCollection()

Muon::RpcPrepDataCollection * Muon::RpcRdoToPrepDataToolMT::State::getPrepCollection ( const IdentifierHash hash,
MsgStream &  msg 
)

Definition at line 37 of file RpcRdoToPrepDataToolMT.cxx.

38  {
39  std::unique_ptr<Muon::RpcPrepDataCollection>& coll =
40  m_rpcPrepDataCollections[rpcHashId];
41  if (!coll) {
42  Identifier id{0};
43  if (m_rpcIdHelper.get_id(rpcHashId, id, &m_modContext)) {
44  msg << MSG::ERROR << "Module hash creation failed. " << id << endmsg;
45  return nullptr;
46  }
47  coll = std::make_unique<Muon::RpcPrepDataCollection>(rpcHashId);
48  coll->setIdentifier(id);
49  }
50  return coll.get();
51 }

Member Data Documentation

◆ m_ambiguousCollections

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

Definition at line 121 of file RpcRdoToPrepDataToolMT.h.

◆ m_coinDataCont

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

Pointer of the coin container stored in store gate.

Definition at line 108 of file RpcRdoToPrepDataToolMT.h.

◆ m_decodedOfflineHashIds

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

Definition at line 117 of file RpcRdoToPrepDataToolMT.h.

◆ m_decodedRobIds

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

Definition at line 124 of file RpcRdoToPrepDataToolMT.h.

◆ m_fullEventDone

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

Definition at line 113 of file RpcRdoToPrepDataToolMT.h.

◆ m_modContext

const IdContext Muon::RpcRdoToPrepDataToolMT::State::m_modContext {m_rpcIdHelper.module_context()}

Definition at line 126 of file RpcRdoToPrepDataToolMT.h.

◆ m_prepDataCont

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

Pointer of the prep container stored in store gate.

Definition at line 106 of file RpcRdoToPrepDataToolMT.h.

◆ m_rpcCoinDataCollections

std::map<IdentifierHash, std::unique_ptr<Muon::RpcCoinDataCollection> > Muon::RpcRdoToPrepDataToolMT::State::m_rpcCoinDataCollections {}

Definition at line 103 of file RpcRdoToPrepDataToolMT.h.

◆ m_rpcIdHelper

const RpcIdHelper& Muon::RpcRdoToPrepDataToolMT::State::m_rpcIdHelper

Definition at line 98 of file RpcRdoToPrepDataToolMT.h.

◆ m_rpcPrepDataCollections

std::map<IdentifierHash, std::unique_ptr<Muon::RpcPrepDataCollection> > Muon::RpcRdoToPrepDataToolMT::State::m_rpcPrepDataCollections {}

Definition at line 101 of file RpcRdoToPrepDataToolMT.h.

◆ m_xaodHandle

SG::WriteHandle<xAOD::RpcStripContainer> Muon::RpcRdoToPrepDataToolMT::State::m_xaodHandle

Handle to the xAOD container.

Definition at line 110 of file RpcRdoToPrepDataToolMT.h.


The documentation for this struct was generated from the following files:
MuonIdHelper::get_id
virtual int get_id(const IdentifierHash &hash_id, Identifier &id, const IdContext *context=0) const override
Create compact id from hash id (return == 0 for OK)
Definition: MuonIdHelper.cxx:69
Muon::RpcRdoToPrepDataToolMT::State::m_rpcPrepDataCollections
std::map< IdentifierHash, std::unique_ptr< Muon::RpcPrepDataCollection > > m_rpcPrepDataCollections
Definition: RpcRdoToPrepDataToolMT.h:101
Muon::RpcRdoToPrepDataToolMT::State::m_xaodHandle
SG::WriteHandle< xAOD::RpcStripContainer > m_xaodHandle
Handle to the xAOD container.
Definition: RpcRdoToPrepDataToolMT.h:110
Muon::RpcRdoToPrepDataToolMT::State::m_rpcIdHelper
const RpcIdHelper & m_rpcIdHelper
Definition: RpcRdoToPrepDataToolMT.h:98
THROW_EXCEPTION
#define THROW_EXCEPTION(MSG)
Definition: MMReadoutElement.cxx:48
Muon::MuonPrepDataCollection::setIdentifier
virtual void setIdentifier(Identifier id)
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Muon::RpcRdoToPrepDataToolMT::State::m_rpcCoinDataCollections
std::map< IdentifierHash, std::unique_ptr< Muon::RpcCoinDataCollection > > m_rpcCoinDataCollections
Definition: RpcRdoToPrepDataToolMT.h:103
Muon::RpcRdoToPrepDataToolMT::State::m_modContext
const IdContext m_modContext
Definition: RpcRdoToPrepDataToolMT.h:126
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
Muon::MuonCoinDataCollection::setIdentifier
void setIdentifier(Identifier id)
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37