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

This class provides default conversion between Lower level Source ID to higher level source ID. More...

#include <SrcIdMap.h>

Collaboration diagram for SrcIdMap:

Public Member Functions

 SrcIdMap ()
 constrcutor More...
 
uint32_t getRobID (uint32_t rod_id)
 Make a ROB Source ID from a ROD source ID. More...
 
uint32_t getRosID (uint32_t rob_id)
 Make a ROS Source ID from a ROB source ID. More...
 
uint32_t getDetID (uint32_t ros_id)
 Make a SubDetector ID from ROS source ID. More...
 

Detailed Description

This class provides default conversion between Lower level Source ID to higher level source ID.

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

Author
Hong Ma July 14, 2002

Definition at line 23 of file SrcIdMap.h.

Constructor & Destructor Documentation

◆ SrcIdMap()

SrcIdMap::SrcIdMap ( )

constrcutor

Definition at line 19 of file SrcIdMap.cxx.

20 {
21 }

Member Function Documentation

◆ getDetID()

uint32_t SrcIdMap::getDetID ( uint32_t  ros_id)

Make a SubDetector ID from ROS source ID.

Definition at line 40 of file SrcIdMap.cxx.

41 {
42  // Change Module Type to SUBDET and set module ID = 0
43  // ALL ROS goes to one SUBDET
44  eformat::helper::SourceIdentifier id = eformat::helper::SourceIdentifier(ros_id);
45  eformat::helper::SourceIdentifier id2 = eformat::helper::SourceIdentifier(id.subdetector_id(),0);
46  return id2.code();
47 }

◆ getRobID()

uint32_t SrcIdMap::getRobID ( uint32_t  rod_id)

Make a ROB Source ID from a ROD source ID.

Definition at line 24 of file SrcIdMap.cxx.

25 {
26  return rod_id;
27 }

◆ getRosID()

uint32_t SrcIdMap::getRosID ( uint32_t  rob_id)

Make a ROS Source ID from a ROB source ID.

Definition at line 30 of file SrcIdMap.cxx.

31 {
32  // Set module ID = 0
33  // ALL ROB goes to one ROS
34  eformat::helper::SourceIdentifier id = eformat::helper::SourceIdentifier(rob_id);
35  eformat::helper::SourceIdentifier id2 = eformat::helper::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:564