ATLAS Offline Software
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 
10 using eformat::helper::SourceIdentifier;
11 
12 
14 
15 }
16 
17 uint32_t L1TopoSrcIdMap::getRodID(int moduleId) const {
18  SourceIdentifier helpID( eformat::TDAQ_CALO_TOPO_PROC, moduleId );
19  return helpID.code();
20 }
21 
23  SourceIdentifier helpID( eformat::TDAQ_CALO_TOPO_PROC, 0 );
24  return helpID.code();
25 }
26 
28  //SourceIdentifier helpID( eformat::TDAQ_CALO_TOPO_PROC, 0 );
29  //return helpID.code();
30  return rod_id;
31 }
32 
34  SourceIdentifier id = SourceIdentifier( rob_id );
35  SourceIdentifier id2 = SourceIdentifier( id.subdetector_id(), 0 );
36  return id2.code();
37 }
38 
40  SourceIdentifier id = SourceIdentifier( ros_id );
41  SourceIdentifier id2 = SourceIdentifier( id.subdetector_id(), 0 );
42  return id2.code();
43 }
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
L1TopoSrcIdMap::L1TopoSrcIdMap
L1TopoSrcIdMap()
constructor
Definition: L1TopoSrcIdMap.cxx:13
id2
HWIdentifier id2
Definition: LArRodBlockPhysicsV0.cxx:564
L1TopoSrcIdMap::getRobID
uint32_t getRobID(uint32_t rod_id) const
Make a ROB Source ID from a ROD source ID; note they are now the same.
Definition: L1TopoSrcIdMap.cxx:27
L1TopoSrcIdMap::getDetID
uint32_t getDetID(uint32_t ros_id) const
Make a SubDetector ID from ROS source ID.
Definition: L1TopoSrcIdMap.cxx:39
L1TopoSrcIdMap::getRosID
uint32_t getRosID(uint32_t rob_id) const
Make a ROS Source ID from a ROB source ID.
Definition: L1TopoSrcIdMap.cxx:33
L1TopoSrcIdMap::getRodID
uint32_t getRodID() const
get a ROD Source ID (deprecated)
Definition: L1TopoSrcIdMap.cxx:22
L1TopoSrcIdMap.h