ATLAS Offline Software
Loading...
Searching...
No Matches
Event
ByteStreamCnvSvcBase
src
SrcIdMap.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
ByteStreamCnvSvcBase/SrcIdMap.h
"
6
7
#include "eformat/SourceIdentifier.h"
8
9
// implementation of SrcIdMap
10
// This is only provided as an example. Each detector should
11
// implement the specific mapping between the identifiers.
12
// .i.e, how each lower level fragments should be mapped onto an
13
// high level fragment, and especially, how the Module_ID field
14
// should be defined.
15
16
// Modified Oct 27, 2002
17
// use SourceID class to make Source ID.
18
19
SrcIdMap::SrcIdMap
()
20
{
21
}
22
23
24
uint32_t
SrcIdMap::getRobID
(uint32_t rod_id)
const
25
{
26
return
rod_id;
27
}
28
29
30
uint32_t
SrcIdMap::getRosID
(uint32_t rob_id)
const
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
}
38
39
40
uint32_t
SrcIdMap::getDetID
(uint32_t ros_id)
const
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
}
48
id2
HWIdentifier id2
Definition
LArRodBlockPhysicsV0.cxx:562
SrcIdMap.h
SrcIdMap::getDetID
uint32_t getDetID(uint32_t ros_id) const
Make a SubDetector ID from ROS source ID.
Definition
SrcIdMap.cxx:40
SrcIdMap::getRosID
uint32_t getRosID(uint32_t rob_id) const
Make a ROS Source ID from a ROB source ID.
Definition
SrcIdMap.cxx:30
SrcIdMap::SrcIdMap
SrcIdMap()
constructor
Definition
SrcIdMap.cxx:19
SrcIdMap::getRobID
uint32_t getRobID(uint32_t rod_id) const
Make a ROB Source ID from a ROD source ID.
Definition
SrcIdMap.cxx:24
Generated on
for ATLAS Offline Software by
1.14.0