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

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

#include <MuCTPISrcIdMap.h>

Collaboration diagram for MuCTPISrcIdMap:

Public Member Functions

 MuCTPISrcIdMap ()=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 MuCTPI ByteStream fragments.

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

Author
Tadashi Maeno

Definition at line 16 of file MuCTPISrcIdMap.h.

Constructor & Destructor Documentation

◆ MuCTPISrcIdMap()

MuCTPISrcIdMap::MuCTPISrcIdMap ( )
default

constrcutor

Member Function Documentation

◆ getDetID()

uint32_t MuCTPISrcIdMap::getDetID ( uint32_t  ros_id) const

Make a SubDetector ID from ROS source ID.

Definition at line 28 of file MuCTPISrcIdMap.cxx.

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

◆ getRobID()

uint32_t MuCTPISrcIdMap::getRobID ( uint32_t  rod_id) const

Make a ROB Source ID from a ROD source ID.

Definition at line 17 of file MuCTPISrcIdMap.cxx.

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

◆ getRodID()

uint32_t MuCTPISrcIdMap::getRodID ( ) const

get a ROD Source ID

Definition at line 12 of file MuCTPISrcIdMap.cxx.

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

◆ getRosID()

uint32_t MuCTPISrcIdMap::getRosID ( uint32_t  rob_id) const

Make a ROS Source ID from a ROB source ID.

Definition at line 22 of file MuCTPISrcIdMap.cxx.

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

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