ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
L1Topo
L1TopoByteStream
src
L1TopoSrcIdMap.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
#include "eformat/SourceIdentifier.h"
7
8
#include "
L1TopoSrcIdMap.h
"
9
10
using
eformat::helper::SourceIdentifier;
11
12
13
L1TopoSrcIdMap::L1TopoSrcIdMap
() {
14
15
}
16
17
uint32_t
L1TopoSrcIdMap::getRodID
(
int
moduleId)
const
{
18
SourceIdentifier helpID( eformat::TDAQ_CALO_TOPO_PROC, moduleId );
19
return
helpID.code();
20
}
21
22
uint32_t
L1TopoSrcIdMap::getRodID
()
const
{
23
SourceIdentifier helpID( eformat::TDAQ_CALO_TOPO_PROC, 0 );
24
return
helpID.code();
25
}
26
27
uint32_t
L1TopoSrcIdMap::getRobID
( uint32_t rod_id )
const
{
28
//SourceIdentifier helpID( eformat::TDAQ_CALO_TOPO_PROC, 0 );
29
//return helpID.code();
30
return
rod_id;
31
}
32
33
uint32_t
L1TopoSrcIdMap::getRosID
( uint32_t rob_id )
const
{
34
SourceIdentifier
id
= SourceIdentifier( rob_id );
35
SourceIdentifier id2 = SourceIdentifier(
id
.subdetector_id(), 0 );
36
return
id2.code();
37
}
38
39
uint32_t
L1TopoSrcIdMap::getDetID
( uint32_t ros_id )
const
{
40
SourceIdentifier
id
= SourceIdentifier( ros_id );
41
SourceIdentifier id2 = SourceIdentifier(
id
.subdetector_id(), 0 );
42
return
id2.code();
43
}
L1TopoSrcIdMap.h
L1TopoSrcIdMap::getDetID
uint32_t getDetID(uint32_t ros_id) const
Make a SubDetector ID from ROS source ID.
Definition
L1TopoSrcIdMap.cxx:39
L1TopoSrcIdMap::getRodID
uint32_t getRodID() const
get a ROD Source ID (deprecated)
Definition
L1TopoSrcIdMap.cxx:22
L1TopoSrcIdMap::getRobID
uint32_t getRobID(uint32_t rod_id) const
Make a ROB Source ID from a ROD source ID; note they are now the same.
Definition
L1TopoSrcIdMap.cxx:27
L1TopoSrcIdMap::getRosID
uint32_t getRosID(uint32_t rob_id) const
Make a ROS Source ID from a ROB source ID.
Definition
L1TopoSrcIdMap.cxx:33
L1TopoSrcIdMap::L1TopoSrcIdMap
L1TopoSrcIdMap()
constructor
Definition
L1TopoSrcIdMap.cxx:13
Generated on
for ATLAS Offline Software by
1.17.0