ATLAS Offline Software
ThresholdMonitor.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 TrigConf_ThresholdMonitor
6 #define TrigConf_ThresholdMonitor
7 
9 
10 #include <string>
11 #include <vector>
12 #include <stdint.h>
13 
14 namespace TrigConf
15 {
16 
18  {
19 
20  public:
23  virtual ~ThresholdMonitor() override = default;
24 
25  // Accessors
26 
27  int thresholdId() const { return m_ThresholdId; }
28  int multiplicity() const { return m_Multiplicity; }
29  int internalCounter() const { return m_InternalCounter; }
30  int bunchGroupId() const { return m_BunchGroupId; }
31  std::string counterType() const { return m_CounterType; }
32  std::string thresholdName() const { return m_ThresholdName; }
33  uint16_t ctpinSlot() const { return m_CtpinSlot; }
35  int thresholdStartBit() const { return m_ThresholdStartBit; }
36  int thresholdEndBit() const { return m_ThresholdEndBit; }
37  bool thresholdActive() const { return m_ThresholdActive; }
38 
39  // setters
40  void setThresholdId( const int& id) { m_ThresholdId = id; }
42  void setInternalCounter( const int& internalcounter ) { m_InternalCounter = internalcounter; }
43  void setBunchGroupId( const int& bunchgroupid ) { m_BunchGroupId = bunchgroupid; }
44  void setCounterType(const std::string& countertype) { m_CounterType = countertype; }
45  void setThresholdName(const std::string& name) { m_ThresholdName = name; }
46  void setCtpinSlot(const uint16_t & slot) { m_CtpinSlot = slot; }
47  void setCtpinConnector(const uint16_t & con) { m_CtpinConnector = con; }
48  void setThresholdStartBit( const int& bit) { m_ThresholdStartBit = bit; }
49  void setThresholdEndBit( const int& bit) { m_ThresholdEndBit = bit; }
51 
52  virtual void print(const std::string& indent="", unsigned int detail=1) const override;
53  virtual void writeXML(std::ostream & xmlfile, int indentLevel=0, int indentWidth=2) const;
54 
55  protected:
56  std::string m_CounterType {""};
57  std::string m_ThresholdName {""};
60  int m_ThresholdId {0};
61  int m_BunchGroupId {0};
62  int m_Multiplicity {0};
66  bool m_ThresholdActive {false};
67  };
68 }
69 
70 #endif
71 
TrigConf::ThresholdMonitor::m_BunchGroupId
int m_BunchGroupId
Definition: ThresholdMonitor.h:61
TrigConf::ThresholdMonitor::setCounterType
void setCounterType(const std::string &countertype)
Definition: ThresholdMonitor.h:44
TrigConf::ThresholdMonitor::internalCounter
int internalCounter() const
Definition: ThresholdMonitor.h:29
TrigConf::TrigConfData::name
const std::string & name() const
Definition: TrigConfData.h:22
TrigConf::ThresholdMonitor::m_CtpinSlot
uint16_t m_CtpinSlot
Definition: ThresholdMonitor.h:58
TrigConf::ThresholdMonitor::m_CtpinConnector
uint16_t m_CtpinConnector
Definition: ThresholdMonitor.h:59
TrigConf::ThresholdMonitor::counterType
std::string counterType() const
Definition: ThresholdMonitor.h:31
TrigConf::ThresholdMonitor::ctpinConnector
uint16_t ctpinConnector() const
Definition: ThresholdMonitor.h:34
detail
Definition: extract_histogram_tag.cxx:14
TrigConf::ThresholdMonitor::writeXML
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Definition: ThresholdMonitor.cxx:57
TrigConf::ThresholdMonitor::multiplicity
int multiplicity() const
Definition: ThresholdMonitor.h:28
TrigConf::ThresholdMonitor::m_ThresholdId
int m_ThresholdId
Definition: ThresholdMonitor.h:60
TrigConf::ThresholdMonitor::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition: ThresholdMonitor.cxx:42
TrigConf::ThresholdMonitor
Definition: ThresholdMonitor.h:18
TrigConf::ThresholdMonitor::m_ThresholdStartBit
int m_ThresholdStartBit
Definition: ThresholdMonitor.h:64
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::ThresholdMonitor::m_ThresholdActive
bool m_ThresholdActive
Definition: ThresholdMonitor.h:66
TrigConf::ThresholdMonitor::m_InternalCounter
int m_InternalCounter
Definition: ThresholdMonitor.h:63
Trk::active
@ active
Definition: Layer.h:48
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
TrigConf::ThresholdMonitor::m_Multiplicity
int m_Multiplicity
Definition: ThresholdMonitor.h:62
TrigConf::ThresholdMonitor::setThresholdId
void setThresholdId(const int &id)
Definition: ThresholdMonitor.h:40
TrigConf::ThresholdMonitor::ctpinSlot
uint16_t ctpinSlot() const
Definition: ThresholdMonitor.h:33
TrigConf::ThresholdMonitor::setThresholdEndBit
void setThresholdEndBit(const int &bit)
Definition: ThresholdMonitor.h:49
TrigConf::ThresholdMonitor::thresholdActive
bool thresholdActive() const
Definition: ThresholdMonitor.h:37
TrigConf::ThresholdMonitor::ThresholdMonitor
ThresholdMonitor()
Definition: ThresholdMonitor.cxx:19
TrigConf::ThresholdMonitor::thresholdEndBit
int thresholdEndBit() const
Definition: ThresholdMonitor.h:36
TrigConf::ThresholdMonitor::setInternalCounter
void setInternalCounter(const int &internalcounter)
Definition: ThresholdMonitor.h:42
TrigConf::name
Definition: HLTChainList.h:35
TrigConf::ThresholdMonitor::thresholdId
int thresholdId() const
Definition: ThresholdMonitor.h:27
TrigConf::ThresholdMonitor::~ThresholdMonitor
virtual ~ThresholdMonitor() override=default
TrigConf::TrigConfData::id
unsigned int id() const
Definition: TrigConfData.h:21
TrigConf::ThresholdMonitor::setCtpinConnector
void setCtpinConnector(const uint16_t &con)
Definition: ThresholdMonitor.h:47
TrigConf::ThresholdMonitor::setBunchGroupId
void setBunchGroupId(const int &bunchgroupid)
Definition: ThresholdMonitor.h:43
TrigConf::ThresholdMonitor::setMultiplicity
void setMultiplicity(const int &multiplicity)
Definition: ThresholdMonitor.h:41
TrigConf::ThresholdMonitor::setThresholdStartBit
void setThresholdStartBit(const int &bit)
Definition: ThresholdMonitor.h:48
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition: TrigConfData.cxx:23
TrigConf::ThresholdMonitor::thresholdName
std::string thresholdName() const
Definition: ThresholdMonitor.h:32
TrigConf::ThresholdMonitor::thresholdStartBit
int thresholdStartBit() const
Definition: ThresholdMonitor.h:35
TrigConf::L1DataBaseclass
Definition: L1DataBaseclass.h:22
TrigConf::ThresholdMonitor::bunchGroupId
int bunchGroupId() const
Definition: ThresholdMonitor.h:30
TrigConf::ThresholdMonitor::m_ThresholdEndBit
int m_ThresholdEndBit
Definition: ThresholdMonitor.h:65
L1DataBaseclass.h
TrigConf::ThresholdMonitor::setCtpinSlot
void setCtpinSlot(const uint16_t &slot)
Definition: ThresholdMonitor.h:46
TrigConf::ThresholdMonitor::m_CounterType
std::string m_CounterType
Definition: ThresholdMonitor.h:56
TrigConf::ThresholdMonitor::m_ThresholdName
std::string m_ThresholdName
Definition: ThresholdMonitor.h:57
TrigConf::ThresholdMonitor::setThresholdName
void setThresholdName(const std::string &name)
Definition: ThresholdMonitor.h:45
TrigConf::ThresholdMonitor::setThresholdActive
void setThresholdActive(const bool &active)
Definition: ThresholdMonitor.h:50