ATLAS Offline Software
Loading...
Searching...
No Matches
RodRobIdMap.cxx
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration.
3 */
10
11
13#include "eformat/SourceIdentifier.h"
14
15
18uint32_t RodRobIdMap::getRobID( uint32_t rod_id) const
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}
HWIdentifier id2
ROD->ROB mapping part of Hid2RESrcID.
uint32_t getRobID(uint32_t rod_id) const
Make a ROB Source ID from a ROD source ID.