An AlgTool class to provide conversion from LArRawChannelContainer to ByteStream, and fill it in RawEvent created: Sept 25, 2002, by Hong Ma requirements: typedef for CONTAINER class method statusCode convert(CONTAINER* cont, RawEvent* re, MsgStream& log );.
More...
#include <RpcPadContByteStreamTool.h>
|
| static const InterfaceID & | interfaceID () |
| | AlgTool InterfaceID.
|
An AlgTool class to provide conversion from LArRawChannelContainer to ByteStream, and fill it in RawEvent created: Sept 25, 2002, by Hong Ma requirements: typedef for CONTAINER class method statusCode convert(CONTAINER* cont, RawEvent* re, MsgStream& log );.
Adapted for Muons by Ketevi A. Assamagan Jan-14-2003, BNL Conversion of Rpc Pad Container to byte stream
Definition at line 36 of file RpcPadContByteStreamTool.h.
◆ StoreGateSvc_t
◆ RpcPadContByteStreamTool()
| Muon::RpcPadContByteStreamTool::RpcPadContByteStreamTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~RpcPadContByteStreamTool()
| virtual Muon::RpcPadContByteStreamTool::~RpcPadContByteStreamTool |
( |
| ) |
|
|
virtualdefault |
◆ convert()
| StatusCode Muon::RpcPadContByteStreamTool::convert |
( |
RpcPadContainer * | cont | ) |
const |
|
overridevirtual |
Conversion method, which takes the RDO container and converts it into raw data, filled into RawEventWrite.
- Parameters
-
| cont | RDO container which will be used to fill the raw event |
Implements Muon::IRPC_RDOtoByteStreamTool.
Definition at line 36 of file RpcPadContByteStreamTool.cxx.
36 {
37 FullEventAssembler<RPC_Hid2RESrcID>* fea = nullptr;
39
41
43
44 RpcPadContainer::const_iterator it_coll = cont->
begin();
45 RpcPadContainer::const_iterator it_coll_end = cont->
end();
46
47 std::map<uint32_t, RpcROD_Encoder> mapEncoder;
48
49 for (; it_coll != it_coll_end; ++it_coll) {
50 const RpcPad* coll = (*it_coll);
51
52 int sector = coll->
sector();
54 mapEncoder[rodId].add(coll);
55 }
56
57 std::map<uint32_t, RpcROD_Encoder>::iterator
it = mapEncoder.begin();
58 std::map<uint32_t, RpcROD_Encoder>::iterator it_end = mapEncoder.end();
59
60
61
62 for (;
it != it_end; ++
it) {
65 ((*it).second).fillROD(*theROD);
66 }
67
68 return StatusCode::SUCCESS;
69}
#define ATH_CHECK
Evaluate an expression and check for errors.
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Current RpcPad
std::vector< uint32_t > RODDATA
ROD data as a vector of unsigned int.
RODDATA * getRodData(uint32_t id)
get a block of ROD data
IDMAP_t & idMap()
Return reference to IDMAP.
const_iterator end() const
return const_iterator for end of container
const_iterator begin() const
return const_iterator for first entry
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ initialize()
| StatusCode Muon::RpcPadContByteStreamTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
| const InterfaceID & Muon::RpcPadContByteStreamTool::interfaceID |
( |
| ) |
|
|
static |
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_byteStreamCnvSvc
◆ m_detStore
◆ m_evtStore
◆ m_hid2re
◆ m_idHelperSvc
◆ m_readKey
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: