ATLAS Offline Software
Loading...
Searching...
No Matches
ThresholdMonitor.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 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
14namespace 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 const std::string& counterType() const { return m_CounterType; }
32 const std::string& thresholdName() const { return m_ThresholdName; }
33 uint16_t ctpinSlot() const { return m_CtpinSlot; }
34 uint16_t ctpinConnector() const { return m_CtpinConnector; }
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; }
50 void setThresholdActive( const bool& active) { m_ThresholdActive = active; }
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 {""};
58 uint16_t m_CtpinSlot {0};
59 uint16_t m_CtpinConnector {0};
66 bool m_ThresholdActive {false};
67 };
68}
69
70#endif
71
virtual void print(const std::string &indent="", unsigned int detail=1) const override
virtual ~ThresholdMonitor() override=default
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
uint16_t ctpinConnector() const
void setCtpinSlot(const uint16_t &slot)
const std::string & counterType() const
void setThresholdStartBit(const int &bit)
void setInternalCounter(const int &internalcounter)
void setThresholdName(const std::string &name)
void setBunchGroupId(const int &bunchgroupid)
void setMultiplicity(const int &multiplicity)
const std::string & thresholdName() const
void setThresholdEndBit(const int &bit)
void setCtpinConnector(const uint16_t &con)
void setThresholdActive(const bool &active)
void setThresholdId(const int &id)
void setCounterType(const std::string &countertype)
unsigned int id() const
std::ostream & indent(std::ostream &o, int lvl, int size) const
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22