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

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

#include <CTPSrcIdMap.h>

Collaboration diagram for CTPSrcIdMap:

Public Member Functions

 CTPSrcIdMap ()=default
 constrcutor More...
 
uint32_t getRodID () const
 get a ROD Source ID More...
 
uint32_t getRobID (uint32_t rod_id) const
 Make a ROB Source ID from a ROD source ID. 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 CTP ByteStream fragments.

This is to be used in assembling the fragments from ROD fragments

Author
Tadashi Maeno

Definition at line 16 of file CTPSrcIdMap.h.

Constructor & Destructor Documentation

◆ CTPSrcIdMap()

CTPSrcIdMap::CTPSrcIdMap ( )
default

constrcutor

Member Function Documentation

◆ getDetID()

uint32_t CTPSrcIdMap::getDetID ( uint32_t  ros_id) const

Make a SubDetector ID from ROS source ID.

Definition at line 29 of file CTPSrcIdMap.cxx.

29  {
30  SourceIdentifier id = SourceIdentifier( ros_id );
31  SourceIdentifier id2 = SourceIdentifier( id.subdetector_id(), 0 );
32  return id2.code();
33 }

◆ getRobID()

uint32_t CTPSrcIdMap::getRobID ( uint32_t  rod_id) const

Make a ROB Source ID from a ROD source ID.

Definition at line 18 of file CTPSrcIdMap.cxx.

18  {
19  SourceIdentifier helpID( eformat::TDAQ_CTP, 0 );
20  return helpID.code();
21 }

◆ getRodID()

uint32_t CTPSrcIdMap::getRodID ( ) const

get a ROD Source ID

Definition at line 13 of file CTPSrcIdMap.cxx.

13  {
14  SourceIdentifier helpID( eformat::TDAQ_CTP, 0 );
15  return helpID.code();
16 }

◆ getRosID()

uint32_t CTPSrcIdMap::getRosID ( uint32_t  rob_id) const

Make a ROS Source ID from a ROB source ID.

Definition at line 23 of file CTPSrcIdMap.cxx.

23  {
24  SourceIdentifier id = SourceIdentifier( rob_id );
25  SourceIdentifier id2 = SourceIdentifier( id.subdetector_id(), 0 );
26  return id2.code();
27 }

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