ATLAS Offline Software
Loading...
Searching...
No Matches
NSW_TrigRawDataSegment.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef NSW_TRIGRAWDATASEGMENT_H
6#define NSW_TRIGRAWDATASEGMENT_H
7
8#include <utility>
9#include <vector>
12
13namespace Muon {
15{
17
18 public:
20 NSW_TrigRawDataSegment(uint8_t deltaTheta, uint8_t phiIndex, uint8_t rIndex, uint8_t spare, bool lowRes, bool phiRes, bool monitor);
21 NSW_TrigRawDataSegment(uint8_t deltaTheta, uint8_t phiIndex, uint8_t rIndex, bool lowRes, bool phiRes);
22
24
25 uint8_t deltaTheta() const {return m_deltaTheta;}
26 uint8_t phiIndex() const {return m_phiIndex;}
27 uint8_t rIndex() const {return m_rIndex;}
28 uint8_t spare() const {return m_spare;}
29
30 bool lowRes() const {return m_lowRes;}
31 bool phiRes() const {return m_phiRes;}
32 bool monitor() const {return m_monitor;}
33
34 const std::vector< std::pair<uint8_t,uint16_t> >& channels() const {return m_channels;}
35
38 void setRIndex(uint8_t rIndex) { m_rIndex=rIndex; }
39 void setSpare(uint8_t spare) {m_spare=spare; }
40
44
45 void addChannel(uint8_t layer, uint16_t channel) { m_channels.emplace_back(layer,channel); }
46
47 private:
48
49 uint8_t m_deltaTheta;
50 uint8_t m_phiIndex;
51 uint8_t m_rIndex;
52
53 uint8_t m_spare;
54
58
60 std::vector< std::pair<uint8_t,uint16_t> > m_channels{};
61};
62}
63
65
66#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
An STL vector of pointers that by default owns its pointed-to elements.
const std::vector< std::pair< uint8_t, uint16_t > > & channels() const
void addChannel(uint8_t layer, uint16_t channel)
void setDeltaTheta(uint8_t deltaTheta)
std::vector< std::pair< uint8_t, uint16_t > > m_channels
vector of trigger channels, defined as layer / channel
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.