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

This class provides conversion between Lower level Source ID to higher level source ID for L1Topo ByteStream fragments. More...

#include <L1TopoSrcIdMap.h>

Collaboration diagram for L1TopoSrcIdMap:

Public Member Functions

 L1TopoSrcIdMap ()
 constructor More...
 
uint32_t getRodID () const
 get a ROD Source ID (deprecated) More...
 
uint32_t getRodID (int moduleId) const
 get a ROD Source ID given a module ID, i.e. More...
 
uint32_t getRobID (uint32_t rod_id) const
 Make a ROB Source ID from a ROD source ID; note they are now the same. More...
 
uint32_t getRosID (uint32_t rob_id) const
 Make a ROS Source ID from a ROB source ID. More...
 
uint32_t getDetID (uint32_t ros_id) const
 Make a SubDetector ID from ROS source ID. More...
 

Detailed Description

This class provides conversion between Lower level Source ID to higher level source ID for L1Topo ByteStream fragments.

This is to be used in assembling the fragments from ROD fragments Based on CTPSrcIdMap and L1CaloSrcIdMap.

Author
Simon George

Definition at line 17 of file L1TopoSrcIdMap.h.

Constructor & Destructor Documentation

◆ L1TopoSrcIdMap()

L1TopoSrcIdMap::L1TopoSrcIdMap ( )

constructor

Definition at line 13 of file L1TopoSrcIdMap.cxx.

13  {
14 
15 }

Member Function Documentation

◆ getDetID()

uint32_t L1TopoSrcIdMap::getDetID ( uint32_t  ros_id) const

Make a SubDetector ID from ROS source ID.

Definition at line 39 of file L1TopoSrcIdMap.cxx.

39  {
40  SourceIdentifier id = SourceIdentifier( ros_id );
41  SourceIdentifier id2 = SourceIdentifier( id.subdetector_id(), 0 );
42  return id2.code();
43 }

◆ getRobID()

uint32_t L1TopoSrcIdMap::getRobID ( uint32_t  rod_id) const

Make a ROB Source ID from a ROD source ID; note they are now the same.

Definition at line 27 of file L1TopoSrcIdMap.cxx.

27  {
28  //SourceIdentifier helpID( eformat::TDAQ_CALO_TOPO_PROC, 0 );
29  //return helpID.code();
30  return rod_id;
31 }

◆ getRodID() [1/2]

uint32_t L1TopoSrcIdMap::getRodID ( ) const

get a ROD Source ID (deprecated)

Definition at line 22 of file L1TopoSrcIdMap.cxx.

22  {
23  SourceIdentifier helpID( eformat::TDAQ_CALO_TOPO_PROC, 0 );
24  return helpID.code();
25 }

◆ getRodID() [2/2]

uint32_t L1TopoSrcIdMap::getRodID ( int  moduleId) const

get a ROD Source ID given a module ID, i.e.

combine with the subdet ID

Definition at line 17 of file L1TopoSrcIdMap.cxx.

17  {
18  SourceIdentifier helpID( eformat::TDAQ_CALO_TOPO_PROC, moduleId );
19  return helpID.code();
20 }

◆ getRosID()

uint32_t L1TopoSrcIdMap::getRosID ( uint32_t  rob_id) const

Make a ROS Source ID from a ROB source ID.

Definition at line 33 of file L1TopoSrcIdMap.cxx.

33  {
34  SourceIdentifier id = SourceIdentifier( rob_id );
35  SourceIdentifier id2 = SourceIdentifier( id.subdetector_id(), 0 );
36  return id2.code();
37 }

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