ATLAS Offline Software
ZdcSrcIdMap.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ZDCSRCIDMAP_H
6 #define ZDCSRCIDMAP_H
7 
8 #include <stdint.h>
9 
10 #include "eformat/SourceIdentifier.h"
11 
12 
24 class ZdcSrcIdMap {
25 
26 public:
27  ZdcSrcIdMap();
28 
30  static uint32_t getRodID (int crate,
31  int slink,
32  int daqOrRoi,
33  eformat::SubDetector subdet);
34 
36  static uint32_t getRobID (uint32_t rod_id);
37 
39  static uint32_t getRosID (uint32_t rob_id);
40 
42  static uint32_t getDetID (uint32_t ros_id);
43 
45  static int crate(uint32_t code);
46 
47  // What is this ??
49  static int daqOrRoi(uint32_t code);
50 
52  static int slink(uint32_t code);
53 
55  static int maxSlinks();
56 
58  static eformat::SubDetector subDet(uint32_t code);
59 };
60 
61 #endif
ZdcSrcIdMap::crate
static int crate(uint32_t code)
moduleID -> crate
Definition: ZdcSrcIdMap.cxx:55
ZdcSrcIdMap::getRosID
static uint32_t getRosID(uint32_t rob_id)
ROB -> ROS.
Definition: ZdcSrcIdMap.cxx:37
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
ZdcSrcIdMap::ZdcSrcIdMap
ZdcSrcIdMap()
ZdcSrcId.
Definition: ZdcSrcIdMap.cxx:13
ZdcSrcIdMap::getRobID
static uint32_t getRobID(uint32_t rod_id)
ROD -> ROB.
Definition: ZdcSrcIdMap.cxx:30
histSizes.code
code
Definition: histSizes.py:129
ZdcSrcIdMap::subDet
static eformat::SubDetector subDet(uint32_t code)
ID -> sub-detector.
Definition: ZdcSrcIdMap.cxx:87
ZdcSrcIdMap::daqOrRoi
static int daqOrRoi(uint32_t code)
moduleID -> daqOrRoi
Definition: ZdcSrcIdMap.cxx:63
ZdcSrcIdMap::maxSlinks
static int maxSlinks()
Return the maximum possible number of slinks.
Definition: ZdcSrcIdMap.cxx:80
ZdcSrcIdMap::slink
static int slink(uint32_t code)
moduleID -> slink
Definition: ZdcSrcIdMap.cxx:71
ZdcSrcIdMap::getDetID
static uint32_t getDetID(uint32_t ros_id)
ROS -> SubDetector.
Definition: ZdcSrcIdMap.cxx:46
ZdcSrcIdMap::getRodID
static uint32_t getRodID(int crate, int slink, int daqOrRoi, eformat::SubDetector subdet)
Make a ROD Source ID.
Definition: ZdcSrcIdMap.cxx:19
ZdcSrcIdMap
This class provides conversion between Lower level Source ID to higher level source ID for L1Calo Byt...
Definition: ZdcSrcIdMap.h:24