ATLAS Offline Software
Loading...
Searching...
No Matches
NSWOfflineHelper.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef _MUON_NSW_OFFLINE_HELPER_H_
5#define _MUON_NSW_OFFLINE_HELPER_H_
6
7#include <memory>
8
11
12namespace Muon
13{
14 namespace nsw
15 {
16 namespace helper
17 {
19 {
20 public:
21 NSWOfflineHelper (Muon::nsw::NSWResourceId *res_id, uint16_t vmm_number, uint16_t vmm_channel_number)
22 : m_elinkId (res_id), m_vmm (vmm_number), m_chan (vmm_channel_number) {};
23
24 virtual ~NSWOfflineHelper () {};
25
26 // Direct access to offline parameters from elinkId
27
28 bool is_large_station () {return m_elinkId->is_large_station ();};
29
30 int8_t station_eta () {return m_elinkId->station_eta ();};
31 uint8_t station_phi () {return m_elinkId->station_phi ();};
32 uint8_t multi_layer () {return m_elinkId->multi_layer ();};
33 uint8_t gas_gap () {return m_elinkId->gas_gap ();};
34
35 // Offline parameters
36
37 uint8_t channel_type ();
38 uint16_t channel_number ();
39 uint16_t vmm () { return m_vmm; }
40
41 private:
43
44 uint16_t m_vmm {0};
45 uint16_t m_chan {0};
46 };
47
49 {
50 public:
51 NSWOfflineRobId (const std::string &station_name, int8_t station_eta, uint8_t station_phi);
52 virtual ~NSWOfflineRobId () {};
53
54 const std::vector<uint32_t>& get_ids () const {return m_sourceIds;};
55
56 private:
57 std::vector<uint32_t> m_sourceIds;
58 };
59
60 static const std::map <const std::pair <std::string, bool>, const uint32_t> s_station_to_detector_map =
61 {
62 {{"MM", true}, eformat::MUON_MMEGA_ENDCAP_A_SIDE},
63 {{"MM", false}, eformat::MUON_MMEGA_ENDCAP_C_SIDE},
64 {{"ST", true}, eformat::MUON_STGC_ENDCAP_A_SIDE},
65 {{"ST", false}, eformat::MUON_STGC_ENDCAP_C_SIDE}
66 };
67 }
68 }
69}
70
71#endif // _MUON_NSW_OFFLINE_HELPER_H_
72
Muon::nsw::NSWResourceId * m_elinkId
NSWOfflineHelper(Muon::nsw::NSWResourceId *res_id, uint16_t vmm_number, uint16_t vmm_channel_number)
std::vector< uint32_t > m_sourceIds
NSWOfflineRobId(const std::string &station_name, int8_t station_eta, uint8_t station_phi)
const std::vector< uint32_t > & get_ids() const
static const std::map< const std::pair< std::string, bool >, const uint32_t > s_station_to_detector_map
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.