ATLAS Offline Software
RpcSectorLogic.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONRDO_RPCSECTORLOGIC_H
6 #define MUONRDO_RPCSECTORLOGIC_H
7 
8 #include<stdint.h>
9 #include<vector>
10 
12 #include "AthenaKernel/CLASS_DEF.h"
13 
15 
16 //
17 // S. Rosati Jun 2006
18 //
19 
20 class RpcSectorLogic : public DataVector<RpcSLTriggerHit> {
21 
22  public:
23 
26  m_sectorId(0),
27  m_fel1Id(0),
28  m_bcid(0),
29  m_errorCode(0), m_crc(0), m_hasMoreThan2TriggerCand(false) { };
30 
35  m_bcid(bcid),
37 
41  m_bcid(bcid),
43 
46 
48  void addCounter(const uint16_t counter);
49  void addTriggerRate(const double trig) {m_triggerRates.push_back(trig);}
51 
53  uint16_t sectorId() const {return m_sectorId;}
54  uint16_t fel1Id() const {return m_fel1Id;}
55  uint16_t bcid() const {return m_bcid;}
56  uint16_t errorCode() const {return m_errorCode;}
57  uint16_t crc() const {return m_crc;}
59 
60  const std::vector<uint16_t>& counters() const {return m_counters;}
61 
62  const std::vector<double>& triggerRates() const {return m_triggerRates;}
63 
64  private:
65 
72 
73  std::vector<double> m_triggerRates;
74  std::vector<uint16_t> m_counters;
75 
76 };
77 
78 CLASS_DEF(RpcSectorLogic,125408109,1)
79 
80 #endif
81 
82 
83 
84 
RpcSectorLogic::~RpcSectorLogic
~RpcSectorLogic()
Destructor.
Definition: RpcSectorLogic.h:45
RpcSectorLogic::triggerRates
const std::vector< double > & triggerRates() const
Definition: RpcSectorLogic.h:62
RpcSectorLogic::m_counters
std::vector< uint16_t > m_counters
Definition: RpcSectorLogic.h:74
RpcSectorLogic
Definition: RpcSectorLogic.h:20
RpcSectorLogic::m_fel1Id
uint16_t m_fel1Id
Definition: RpcSectorLogic.h:67
RpcSectorLogic::crc
uint16_t crc() const
Definition: RpcSectorLogic.h:57
RpcSectorLogic::m_triggerRates
std::vector< double > m_triggerRates
Definition: RpcSectorLogic.h:73
RpcSectorLogic::errorCode
uint16_t errorCode() const
Definition: RpcSectorLogic.h:56
RpcSectorLogic::fel1Id
uint16_t fel1Id() const
Definition: RpcSectorLogic.h:54
RpcSectorLogic::m_sectorId
uint16_t m_sectorId
Definition: RpcSectorLogic.h:66
RpcSectorLogic::sectorId
uint16_t sectorId() const
Access methods.
Definition: RpcSectorLogic.h:53
RpcSectorLogic::addCounter
void addCounter(const uint16_t counter)
Set methods.
Definition: RpcSectorLogic.cxx:7
RpcSectorLogic::bcid
uint16_t bcid() const
Definition: RpcSectorLogic.h:55
RpcSectorLogic::m_bcid
uint16_t m_bcid
Definition: RpcSectorLogic.h:68
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
RpcSectorLogic::counters
const std::vector< uint16_t > & counters() const
Definition: RpcSectorLogic.h:60
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
RpcSectorLogic::m_crc
uint16_t m_crc
Definition: RpcSectorLogic.h:70
RpcSectorLogic::RpcSectorLogic
RpcSectorLogic(uint16_t sectorId, uint16_t fel1Id, uint16_t bcid, uint16_t errorCode)
Constructor with arguments.
Definition: RpcSectorLogic.h:32
RpcSectorLogic::RpcSectorLogic
RpcSectorLogic(uint16_t sectorId, uint16_t fel1Id, uint16_t bcid, uint16_t errorCode, uint16_t crc)
Definition: RpcSectorLogic.h:38
RpcSectorLogic::setHasMoreThan2TriggerCand
void setHasMoreThan2TriggerCand(const bool a)
Definition: RpcSectorLogic.h:50
RpcSLTriggerHit.h
RpcSectorLogic::RpcSectorLogic
RpcSectorLogic()
Default constructor
Definition: RpcSectorLogic.h:25
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
a
TList * a
Definition: liststreamerinfos.cxx:10
RpcSectorLogic::addTriggerRate
void addTriggerRate(const double trig)
Definition: RpcSectorLogic.h:49
RpcSectorLogic::m_errorCode
uint16_t m_errorCode
Definition: RpcSectorLogic.h:69
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
RpcSectorLogic::m_hasMoreThan2TriggerCand
bool m_hasMoreThan2TriggerCand
Definition: RpcSectorLogic.h:71
test_pyathena.counter
counter
Definition: test_pyathena.py:15
CLASS_DEF.h
macros to associate a CLID to a type
RpcSectorLogic::hasMoreThan2TriggerCand
bool hasMoreThan2TriggerCand() const
Definition: RpcSectorLogic.h:58