ATLAS Offline Software
Public Member Functions | List of all members
RodRobIdMap Class Reference

This implements just the ROD->ROB conversion part of Hid2RESrcID. More...

#include <RodRobIdMap.h>

Collaboration diagram for RodRobIdMap:

Public Member Functions

uint32_t getRobID (uint32_t rod_id) const
 Make a ROB Source ID from a ROD source ID. More...
 

Detailed Description

This implements just the ROD->ROB conversion part of Hid2RESrcID.

This is all that's needed by FullEventAssembler.

Definition at line 25 of file RodRobIdMap.h.

Member Function Documentation

◆ getRobID()

uint32_t RodRobIdMap::getRobID ( uint32_t  rod_id) const

Make a ROB Source ID from a ROD source ID.

mapping SrcID from ROD to ROB

Definition at line 18 of file RodRobIdMap.cxx.

19 {
20  // Change Module Type to ROB
21  using eformat::helper::SourceIdentifier;
22  SourceIdentifier id = SourceIdentifier(rod_id);
23  SourceIdentifier id2 = SourceIdentifier(id.subdetector_id(), id.module_id());
24  return id2.code();
25 }

The documentation for this class was generated from the following files:
id2
HWIdentifier id2
Definition: LArRodBlockPhysicsV0.cxx:564