ATLAS Offline Software
Loading...
Searching...
No Matches
L1TopoSrcIdMap.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6#include "eformat/SourceIdentifier.h"
7
8#include "L1TopoSrcIdMap.h"
9
10using eformat::helper::SourceIdentifier;
11
12
16
17uint32_t L1TopoSrcIdMap::getRodID(int moduleId) const {
18 SourceIdentifier helpID( eformat::TDAQ_CALO_TOPO_PROC, moduleId );
19 return helpID.code();
20}
21
22uint32_t L1TopoSrcIdMap::getRodID() const {
23 SourceIdentifier helpID( eformat::TDAQ_CALO_TOPO_PROC, 0 );
24 return helpID.code();
25}
26
27uint32_t L1TopoSrcIdMap::getRobID( uint32_t rod_id ) const {
28 //SourceIdentifier helpID( eformat::TDAQ_CALO_TOPO_PROC, 0 );
29 //return helpID.code();
30 return rod_id;
31}
32
33uint32_t L1TopoSrcIdMap::getRosID( uint32_t rob_id ) const {
34 SourceIdentifier id = SourceIdentifier( rob_id );
35 SourceIdentifier id2 = SourceIdentifier( id.subdetector_id(), 0 );
36 return id2.code();
37}
38
39uint32_t L1TopoSrcIdMap::getDetID( uint32_t ros_id ) const {
40 SourceIdentifier id = SourceIdentifier( ros_id );
41 SourceIdentifier id2 = SourceIdentifier( id.subdetector_id(), 0 );
42 return id2.code();
43}
HWIdentifier id2
uint32_t getDetID(uint32_t ros_id) const
Make a SubDetector ID from ROS source ID.
uint32_t getRodID() const
get a ROD Source ID (deprecated)
uint32_t getRobID(uint32_t rod_id) const
Make a ROB Source ID from a ROD source ID; note they are now the same.
uint32_t getRosID(uint32_t rob_id) const
Make a ROS Source ID from a ROB source ID.
L1TopoSrcIdMap()
constructor