ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Muon::nsw::helper::NSWOfflineRobId Class Reference

#include <NSWOfflineHelper.h>

Collaboration diagram for Muon::nsw::helper::NSWOfflineRobId:

Public Member Functions

 NSWOfflineRobId (const std::string &station_name, int8_t station_eta, uint8_t station_phi)
 
virtual ~NSWOfflineRobId ()
 
const std::vector< uint32_t > & get_ids () const
 

Private Attributes

std::vector< uint32_t > m_sourceIds
 

Detailed Description

Definition at line 48 of file NSWOfflineHelper.h.

Constructor & Destructor Documentation

◆ NSWOfflineRobId()

Muon::nsw::helper::NSWOfflineRobId::NSWOfflineRobId ( const std::string &  station_name,
int8_t  station_eta,
uint8_t  station_phi 
)

Definition at line 47 of file NSWOfflineHelper.cxx.

48 {
49  bool is_large = station_name.substr (2, 1) == "L";
50  std::string detectorString = station_name.substr(0,2);
51  const std::pair <std::string, bool> name_and_side = {detectorString, station_eta > 0};
52 
53  uint8_t detId = Muon::nsw::helper::s_station_to_detector_map.at (name_and_side);
54  uint8_t sector = (station_phi - 1) * 2 + (is_large ? 0 : 1);
55 
56  // for now lets build all possible ROB ids for all readout configurations
57  // reference: slide 6 of https://indico.cern.ch/event/1260377/contributions/5294286/attachments/2603399/4495810/NSW-SwRod-Felix-v3.pdf
59  if( detectorString=="MM" && splitConfig == 3) continue; // MM does not have spare devices
60  uint32_t sourceId = (detId << 16) | (splitConfig << 8) | sector;
61  m_sourceIds.push_back(sourceId);
62  }
63 
64 }

◆ ~NSWOfflineRobId()

virtual Muon::nsw::helper::NSWOfflineRobId::~NSWOfflineRobId ( )
inlinevirtual

Definition at line 52 of file NSWOfflineHelper.h.

52 {};

Member Function Documentation

◆ get_ids()

const std::vector<uint32_t>& Muon::nsw::helper::NSWOfflineRobId::get_ids ( ) const
inline

Definition at line 54 of file NSWOfflineHelper.h.

54 {return m_sourceIds;};

Member Data Documentation

◆ m_sourceIds

std::vector<uint32_t> Muon::nsw::helper::NSWOfflineRobId::m_sourceIds
private

Definition at line 57 of file NSWOfflineHelper.h.


The documentation for this class was generated from the following files:
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
Pythia8_A14_NNPDF23LO_SSM_Zprime.splitConfig
splitConfig
Definition: Pythia8_A14_NNPDF23LO_SSM_Zprime.py:3
CalibCoolCompareRT.station_eta
station_eta
Definition: CalibCoolCompareRT.py:88
Muon::nsw::helper::NSWOfflineRobId::m_sourceIds
std::vector< uint32_t > m_sourceIds
Definition: NSWOfflineHelper.h:54
CalibCoolCompareRT.station_phi
station_phi
Definition: CalibCoolCompareRT.py:87
createCablingJSON.station_name
string station_name
Simple script to generate a BIS78 cabling map as used for the Monte Carlo processing.
Definition: createCablingJSON.py:13