ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
15
16//
17// S. Rosati Jun 2006
18//
19
20class RpcSectorLogic : public DataVector<RpcSLTriggerHit> {
21
22 public:
23
26 m_sectorId(0),
27 m_fel1Id(0),
28 m_bcid(0),
30
32 RpcSectorLogic(uint16_t sectorId, uint16_t fel1Id, uint16_t bcid, uint16_t errorCode) :
35 m_bcid(bcid),
37
38 RpcSectorLogic(uint16_t sectorId, uint16_t fel1Id, uint16_t bcid, uint16_t errorCode, uint16_t crc) :
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
66 uint16_t m_sectorId;
67 uint16_t m_fel1Id;
68 uint16_t m_bcid;
69 uint16_t m_errorCode;
70 uint16_t m_crc;
72
73 std::vector<double> m_triggerRates;
74 std::vector<uint16_t> m_counters;
75
76};
77
78CLASS_DEF(RpcSectorLogic,125408109,1)
79
80#endif
81
82
83
84
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.
static Double_t a
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
RpcSectorLogic()
Default constructor.
void addCounter(const uint16_t counter)
Set methods.
uint16_t bcid() const
void addTriggerRate(const double trig)
bool hasMoreThan2TriggerCand() const
~RpcSectorLogic()
Destructor.
uint16_t m_sectorId
RpcSectorLogic(uint16_t sectorId, uint16_t fel1Id, uint16_t bcid, uint16_t errorCode)
Constructor with arguments.
RpcSectorLogic(uint16_t sectorId, uint16_t fel1Id, uint16_t bcid, uint16_t errorCode, uint16_t crc)
uint16_t errorCode() const
void setHasMoreThan2TriggerCand(const bool a)
const std::vector< uint16_t > & counters() const
bool m_hasMoreThan2TriggerCand
uint16_t fel1Id() const
uint16_t sectorId() const
Access methods.
std::vector< double > m_triggerRates
uint16_t m_errorCode
std::vector< uint16_t > m_counters
uint16_t crc() const
const std::vector< double > & triggerRates() const