ATLAS Offline Software
CTPSrcIdMap.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 "CTPSrcIdMap.h"
9 
10 using eformat::helper::SourceIdentifier;
11 
12 
14  SourceIdentifier helpID( eformat::TDAQ_CTP, 0 );
15  return helpID.code();
16 }
17 
19  SourceIdentifier helpID( eformat::TDAQ_CTP, 0 );
20  return helpID.code();
21 }
22 
24  SourceIdentifier id = SourceIdentifier( rob_id );
25  SourceIdentifier id2 = SourceIdentifier( id.subdetector_id(), 0 );
26  return id2.code();
27 }
28 
30  SourceIdentifier id = SourceIdentifier( ros_id );
31  SourceIdentifier id2 = SourceIdentifier( id.subdetector_id(), 0 );
32  return id2.code();
33 }
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
id2
HWIdentifier id2
Definition: LArRodBlockPhysicsV0.cxx:562
CTPSrcIdMap::getRosID
uint32_t getRosID(uint32_t rob_id) const
Make a ROS Source ID from a ROB source ID.
Definition: CTPSrcIdMap.cxx:23
CTPSrcIdMap.h
CTPSrcIdMap::getDetID
uint32_t getDetID(uint32_t ros_id) const
Make a SubDetector ID from ROS source ID.
Definition: CTPSrcIdMap.cxx:29
CTPSrcIdMap::getRodID
uint32_t getRodID() const
get a ROD Source ID
Definition: CTPSrcIdMap.cxx:13
CTPSrcIdMap::getRobID
uint32_t getRobID(uint32_t rod_id) const
Make a ROB Source ID from a ROD source ID.
Definition: CTPSrcIdMap.cxx:18