ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
TrigConf::ThresholdMonitor Class Reference

#include <ThresholdMonitor.h>

Inheritance diagram for TrigConf::ThresholdMonitor:
Collaboration diagram for TrigConf::ThresholdMonitor:

Public Member Functions

 ThresholdMonitor ()
 
 ThresholdMonitor (const ThresholdMonitor &thr)
 
virtual ~ThresholdMonitor () override=default
 
int thresholdId () const
 
int multiplicity () const
 
int internalCounter () const
 
int bunchGroupId () const
 
const std::string & counterType () const
 
const std::string & thresholdName () const
 
uint16_t ctpinSlot () const
 
uint16_t ctpinConnector () const
 
int thresholdStartBit () const
 
int thresholdEndBit () const
 
bool thresholdActive () const
 
void setThresholdId (const int &id)
 
void setMultiplicity (const int &multiplicity)
 
void setInternalCounter (const int &internalcounter)
 
void setBunchGroupId (const int &bunchgroupid)
 
void setCounterType (const std::string &countertype)
 
void setThresholdName (const std::string &name)
 
void setCtpinSlot (const uint16_t &slot)
 
void setCtpinConnector (const uint16_t &con)
 
void setThresholdStartBit (const int &bit)
 
void setThresholdEndBit (const int &bit)
 
void setThresholdActive (const bool &active)
 
virtual void print (const std::string &indent="", unsigned int detail=1) const override
 
virtual void writeXML (std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
 
unsigned int lvl1MasterTableId () const
 
void setLvl1MasterTableId (unsigned int id)
 
int superMasterTableId () const
 
unsigned int smk () const
 
unsigned int id () const
 
const std::string & name () const
 
const std::string & comment () const
 
unsigned int version () const
 
void setSuperMasterTableId (int id)
 
void setSMK (int id)
 
void setId (unsigned int id)
 
void setName (const std::string &name)
 
void setVersion (unsigned int version)
 
void setComment (const std::string &c)
 
void printNameIdV (const std::string &indent="") const
 
virtual std::string __str__ () const
 

Protected Member Functions

std::ostream & indent (std::ostream &o, int lvl, int size) const
 

Protected Attributes

std::string m_CounterType {""}
 
std::string m_ThresholdName {""}
 
uint16_t m_CtpinSlot {0}
 
uint16_t m_CtpinConnector {0}
 
int m_ThresholdId {0}
 
int m_BunchGroupId {0}
 
int m_Multiplicity {0}
 
int m_InternalCounter {0}
 
int m_ThresholdStartBit {0}
 
int m_ThresholdEndBit {0}
 
bool m_ThresholdActive {false}
 

Private Attributes

unsigned int m_Lvl1MasterId
 
unsigned int m_smk
 
unsigned int m_id
 
std::string m_name
 
unsigned int m_version
 
std::string m_comment
 

Detailed Description

Definition at line 17 of file ThresholdMonitor.h.

Constructor & Destructor Documentation

◆ ThresholdMonitor() [1/2]

TrigConf::ThresholdMonitor::ThresholdMonitor ( )

Definition at line 19 of file ThresholdMonitor.cxx.

19  :
21 {}

◆ ThresholdMonitor() [2/2]

TrigConf::ThresholdMonitor::ThresholdMonitor ( const ThresholdMonitor thr)

Definition at line 23 of file ThresholdMonitor.cxx.

23  :
25  m_CounterType(mon.m_CounterType),
26  m_ThresholdName(mon.m_ThresholdName),
27  m_CtpinSlot(mon.m_CtpinSlot),
28  m_CtpinConnector(mon.m_CtpinConnector),
29  m_ThresholdId(mon.m_ThresholdId),
30  m_BunchGroupId(mon.m_BunchGroupId),
31  m_Multiplicity(mon.m_Multiplicity),
32  m_InternalCounter(mon.m_InternalCounter),
33  m_ThresholdStartBit(mon.m_ThresholdStartBit),
34  m_ThresholdEndBit(mon.m_ThresholdEndBit),
35  m_ThresholdActive(mon.m_ThresholdActive)
36 {
37  setName(mon.name());
38  setVersion(mon.version());
39 }

◆ ~ThresholdMonitor()

virtual TrigConf::ThresholdMonitor::~ThresholdMonitor ( )
overridevirtualdefault

Member Function Documentation

◆ __str__()

string TrigConfData::__str__ ( ) const
virtualinherited

Reimplemented in TrigConf::HLTChain, TrigConf::HLTPrescaleSet, TrigConf::TriggerItem, and TrigConf::HLTSequence.

Definition at line 50 of file TrigConfData.cxx.

50  {
51  stringstream s;
52  s << *this;
53  return s.str();
54 }

◆ bunchGroupId()

int TrigConf::ThresholdMonitor::bunchGroupId ( ) const
inline

Definition at line 30 of file ThresholdMonitor.h.

30 { return m_BunchGroupId; }

◆ comment()

const std::string& TrigConf::TrigConfData::comment ( ) const
inlineinherited

Definition at line 23 of file TrigConfData.h.

23 {return m_comment;}

◆ counterType()

const std::string& TrigConf::ThresholdMonitor::counterType ( ) const
inline

Definition at line 31 of file ThresholdMonitor.h.

31 { return m_CounterType; }

◆ ctpinConnector()

uint16_t TrigConf::ThresholdMonitor::ctpinConnector ( ) const
inline

Definition at line 34 of file ThresholdMonitor.h.

34 { return m_CtpinConnector; }

◆ ctpinSlot()

uint16_t TrigConf::ThresholdMonitor::ctpinSlot ( ) const
inline

Definition at line 33 of file ThresholdMonitor.h.

33 { return m_CtpinSlot; }

◆ id()

unsigned int TrigConf::TrigConfData::id ( ) const
inlineinherited

Definition at line 21 of file TrigConfData.h.

21 {return m_id;}

◆ indent()

std::ostream & TrigConfData::indent ( std::ostream &  o,
int  lvl,
int  size 
) const
protectedinherited

Definition at line 23 of file TrigConfData.cxx.

23  {
24  int width = lvl*size;
25  if(width==0) return o;
26  o << setw(lvl*size) << " ";
27  return o;
28 }

◆ internalCounter()

int TrigConf::ThresholdMonitor::internalCounter ( ) const
inline

Definition at line 29 of file ThresholdMonitor.h.

29 { return m_InternalCounter; }

◆ lvl1MasterTableId()

unsigned int TrigConf::L1DataBaseclass::lvl1MasterTableId ( ) const
inlineinherited

Definition at line 30 of file L1DataBaseclass.h.

30 { return m_Lvl1MasterId; }

◆ multiplicity()

int TrigConf::ThresholdMonitor::multiplicity ( ) const
inline

Definition at line 28 of file ThresholdMonitor.h.

28 { return m_Multiplicity; }

◆ name()

const std::string& TrigConf::TrigConfData::name ( ) const
inlineinherited

Definition at line 22 of file TrigConfData.h.

22 {return m_name;}

◆ print()

void TrigConf::ThresholdMonitor::print ( const std::string &  indent = "",
unsigned int  detail = 1 
) const
overridevirtual

Implements TrigConf::TrigConfData.

Definition at line 42 of file ThresholdMonitor.cxx.

42  {
43  if(detail==3) {
44  cout << indent << "Monitor Counter : " << name() << " (id=" << m_InternalCounter << ")" << endl;
45  }
46  if(detail>=4) {
47  cout << indent << "==================================" << endl;
48  cout << indent << "Monitor Counter : " << name() << " (id=" << m_InternalCounter << ")" << endl;
49  cout << indent << "monitors " << m_CounterType << " threshold " << m_ThresholdName << " (id=" << m_ThresholdId << ") with multiplicity " << m_Multiplicity << endl;
50  cout << indent << "Slot " << m_CtpinSlot << ", connector " << m_CtpinConnector << ", bits " << m_ThresholdStartBit << " - " << m_ThresholdEndBit << ", bunch group " << m_BunchGroupId << endl;
51  }
52 
53 }

◆ printNameIdV()

void TrigConfData::printNameIdV ( const std::string &  indent = "") const
inherited

Definition at line 31 of file TrigConfData.cxx.

31  {
32  cout << indent << name();
33  if(id()>0 || version()>0)
34  cout << " (id=" << id() << "/v=" << version() << ")";
35  cout << endl;
36  if(comment()!="")
37  cout << indent << "Comment: " << comment() << endl;
38 }

◆ setBunchGroupId()

void TrigConf::ThresholdMonitor::setBunchGroupId ( const int &  bunchgroupid)
inline

Definition at line 43 of file ThresholdMonitor.h.

43 { m_BunchGroupId = bunchgroupid; }

◆ setComment()

void TrigConf::TrigConfData::setComment ( const std::string &  c)
inlineinherited

Definition at line 32 of file TrigConfData.h.

32 { m_comment = c;}

◆ setCounterType()

void TrigConf::ThresholdMonitor::setCounterType ( const std::string &  countertype)
inline

Definition at line 44 of file ThresholdMonitor.h.

44 { m_CounterType = countertype; }

◆ setCtpinConnector()

void TrigConf::ThresholdMonitor::setCtpinConnector ( const uint16_t &  con)
inline

Definition at line 47 of file ThresholdMonitor.h.

47 { m_CtpinConnector = con; }

◆ setCtpinSlot()

void TrigConf::ThresholdMonitor::setCtpinSlot ( const uint16_t &  slot)
inline

Definition at line 46 of file ThresholdMonitor.h.

46 { m_CtpinSlot = slot; }

◆ setId()

void TrigConf::TrigConfData::setId ( unsigned int  id)
inlineinherited

Definition at line 29 of file TrigConfData.h.

29 { m_id=id; }

◆ setInternalCounter()

void TrigConf::ThresholdMonitor::setInternalCounter ( const int &  internalcounter)
inline

Definition at line 42 of file ThresholdMonitor.h.

42 { m_InternalCounter = internalcounter; }

◆ setLvl1MasterTableId()

void TrigConf::L1DataBaseclass::setLvl1MasterTableId ( unsigned int  id)
inlineinherited

Definition at line 31 of file L1DataBaseclass.h.

31 { m_Lvl1MasterId = id; }

◆ setMultiplicity()

void TrigConf::ThresholdMonitor::setMultiplicity ( const int &  multiplicity)
inline

Definition at line 41 of file ThresholdMonitor.h.

◆ setName()

void TrigConf::TrigConfData::setName ( const std::string &  name)
inlineinherited

Definition at line 30 of file TrigConfData.h.

30 { m_name = name;}

◆ setSMK()

void TrigConf::TrigConfData::setSMK ( int  id)
inlineinherited

Definition at line 28 of file TrigConfData.h.

28 {m_smk=id;}

◆ setSuperMasterTableId()

void TrigConf::TrigConfData::setSuperMasterTableId ( int  id)
inlineinherited

Definition at line 27 of file TrigConfData.h.

27 {m_smk=id;}

◆ setThresholdActive()

void TrigConf::ThresholdMonitor::setThresholdActive ( const bool &  active)
inline

Definition at line 50 of file ThresholdMonitor.h.

◆ setThresholdEndBit()

void TrigConf::ThresholdMonitor::setThresholdEndBit ( const int &  bit)
inline

Definition at line 49 of file ThresholdMonitor.h.

49 { m_ThresholdEndBit = bit; }

◆ setThresholdId()

void TrigConf::ThresholdMonitor::setThresholdId ( const int &  id)
inline

Definition at line 40 of file ThresholdMonitor.h.

40 { m_ThresholdId = id; }

◆ setThresholdName()

void TrigConf::ThresholdMonitor::setThresholdName ( const std::string &  name)
inline

Definition at line 45 of file ThresholdMonitor.h.

45 { m_ThresholdName = name; }

◆ setThresholdStartBit()

void TrigConf::ThresholdMonitor::setThresholdStartBit ( const int &  bit)
inline

Definition at line 48 of file ThresholdMonitor.h.

48 { m_ThresholdStartBit = bit; }

◆ setVersion()

void TrigConf::TrigConfData::setVersion ( unsigned int  version)
inlineinherited

Definition at line 31 of file TrigConfData.h.

31 { m_version = version;}

◆ smk()

unsigned int TrigConf::TrigConfData::smk ( ) const
inlineinherited

Definition at line 20 of file TrigConfData.h.

20 {return m_smk;}

◆ superMasterTableId()

int TrigConf::TrigConfData::superMasterTableId ( ) const
inlineinherited

Definition at line 19 of file TrigConfData.h.

19 {return (int)m_smk;}

◆ thresholdActive()

bool TrigConf::ThresholdMonitor::thresholdActive ( ) const
inline

Definition at line 37 of file ThresholdMonitor.h.

37 { return m_ThresholdActive; }

◆ thresholdEndBit()

int TrigConf::ThresholdMonitor::thresholdEndBit ( ) const
inline

Definition at line 36 of file ThresholdMonitor.h.

36 { return m_ThresholdEndBit; }

◆ thresholdId()

int TrigConf::ThresholdMonitor::thresholdId ( ) const
inline

Definition at line 27 of file ThresholdMonitor.h.

27 { return m_ThresholdId; }

◆ thresholdName()

const std::string& TrigConf::ThresholdMonitor::thresholdName ( ) const
inline

Definition at line 32 of file ThresholdMonitor.h.

32 { return m_ThresholdName; }

◆ thresholdStartBit()

int TrigConf::ThresholdMonitor::thresholdStartBit ( ) const
inline

Definition at line 35 of file ThresholdMonitor.h.

35 { return m_ThresholdStartBit; }

◆ version()

unsigned int TrigConf::TrigConfData::version ( ) const
inlineinherited

Definition at line 24 of file TrigConfData.h.

24 {return m_version;}

◆ writeXML()

void TrigConf::ThresholdMonitor::writeXML ( std::ostream &  xmlfile,
int  indentLevel = 0,
int  indentWidth = 2 
) const
virtual

Definition at line 57 of file ThresholdMonitor.cxx.

57  {
58  indent(xmlfile, indentLevel, indentWidth) << "<TriggerCounter name=\"" << name() << "\" type=\"CTPIN\">" << endl;
59  indent(xmlfile, indentLevel+1, indentWidth) << "<TriggerCondition name=\"" << name() << "\" triggerthreshold=\"" << m_ThresholdName << "\" multi=\"" << m_Multiplicity << "\"/>" << endl;
60  indent(xmlfile, indentLevel, indentWidth) << "</TriggerCounter>" << endl;
61 }

Member Data Documentation

◆ m_BunchGroupId

int TrigConf::ThresholdMonitor::m_BunchGroupId {0}
protected

Definition at line 61 of file ThresholdMonitor.h.

◆ m_comment

std::string TrigConf::TrigConfData::m_comment
privateinherited

Definition at line 48 of file TrigConfData.h.

◆ m_CounterType

std::string TrigConf::ThresholdMonitor::m_CounterType {""}
protected

Definition at line 56 of file ThresholdMonitor.h.

◆ m_CtpinConnector

uint16_t TrigConf::ThresholdMonitor::m_CtpinConnector {0}
protected

Definition at line 59 of file ThresholdMonitor.h.

◆ m_CtpinSlot

uint16_t TrigConf::ThresholdMonitor::m_CtpinSlot {0}
protected

Definition at line 58 of file ThresholdMonitor.h.

◆ m_id

unsigned int TrigConf::TrigConfData::m_id
privateinherited

Definition at line 45 of file TrigConfData.h.

◆ m_InternalCounter

int TrigConf::ThresholdMonitor::m_InternalCounter {0}
protected

Definition at line 63 of file ThresholdMonitor.h.

◆ m_Lvl1MasterId

unsigned int TrigConf::L1DataBaseclass::m_Lvl1MasterId
privateinherited

Definition at line 35 of file L1DataBaseclass.h.

◆ m_Multiplicity

int TrigConf::ThresholdMonitor::m_Multiplicity {0}
protected

Definition at line 62 of file ThresholdMonitor.h.

◆ m_name

std::string TrigConf::TrigConfData::m_name
privateinherited

Definition at line 46 of file TrigConfData.h.

◆ m_smk

unsigned int TrigConf::TrigConfData::m_smk
privateinherited

Definition at line 44 of file TrigConfData.h.

◆ m_ThresholdActive

bool TrigConf::ThresholdMonitor::m_ThresholdActive {false}
protected

Definition at line 66 of file ThresholdMonitor.h.

◆ m_ThresholdEndBit

int TrigConf::ThresholdMonitor::m_ThresholdEndBit {0}
protected

Definition at line 65 of file ThresholdMonitor.h.

◆ m_ThresholdId

int TrigConf::ThresholdMonitor::m_ThresholdId {0}
protected

Definition at line 60 of file ThresholdMonitor.h.

◆ m_ThresholdName

std::string TrigConf::ThresholdMonitor::m_ThresholdName {""}
protected

Definition at line 57 of file ThresholdMonitor.h.

◆ m_ThresholdStartBit

int TrigConf::ThresholdMonitor::m_ThresholdStartBit {0}
protected

Definition at line 64 of file ThresholdMonitor.h.

◆ m_version

unsigned int TrigConf::TrigConfData::m_version
privateinherited

Definition at line 47 of file TrigConfData.h.


The documentation for this class was generated from the following files:
TrigConf::TrigConfData::m_id
unsigned int m_id
Definition: TrigConfData.h:45
TrigConf::TrigConfData::setName
void setName(const std::string &name)
Definition: TrigConfData.h:30
TrigConf::ThresholdMonitor::m_BunchGroupId
int m_BunchGroupId
Definition: ThresholdMonitor.h:61
TrigConf::TrigConfData::m_name
std::string m_name
Definition: TrigConfData.h:46
TrigConf::TrigConfData::name
const std::string & name() const
Definition: TrigConfData.h:22
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
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::TrigConfData::comment
const std::string & comment() const
Definition: TrigConfData.h:23
TrigConf::L1DataBaseclass::L1DataBaseclass
L1DataBaseclass()
Definition: L1DataBaseclass.h:24
detail
Definition: extract_histogram_tag.cxx:14
TrigConf::TrigConfData::m_version
unsigned int m_version
Definition: TrigConfData.h:47
TrigConf::ThresholdMonitor::multiplicity
int multiplicity() const
Definition: ThresholdMonitor.h:28
TrigConf::ThresholdMonitor::m_ThresholdId
int m_ThresholdId
Definition: ThresholdMonitor.h:60
TrigConf::L1DataBaseclass::m_Lvl1MasterId
unsigned int m_Lvl1MasterId
Definition: L1DataBaseclass.h:35
TrigConf::ThresholdMonitor::m_ThresholdStartBit
int m_ThresholdStartBit
Definition: ThresholdMonitor.h:64
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
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
TrigConf::ThresholdMonitor::m_Multiplicity
int m_Multiplicity
Definition: ThresholdMonitor.h:62
TrigConf::TrigConfData::m_comment
std::string m_comment
Definition: TrigConfData.h:48
TrigConf::TrigConfData::version
unsigned int version() const
Definition: TrigConfData.h:24
TrigConf::TrigConfData::id
unsigned int id() const
Definition: TrigConfData.h:21
TrigConf::TrigConfData::m_smk
unsigned int m_smk
Definition: TrigConfData.h:44
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
plotBeamSpotMon.mon
mon
Definition: plotBeamSpotMon.py:67
TrigConf::TrigConfData::setVersion
void setVersion(unsigned int version)
Definition: TrigConfData.h:31
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition: TrigConfData.cxx:23
TrigConf::ThresholdMonitor::m_ThresholdEndBit
int m_ThresholdEndBit
Definition: ThresholdMonitor.h:65
TrigConf::ThresholdMonitor::m_CounterType
std::string m_CounterType
Definition: ThresholdMonitor.h:56
python.compressB64.c
def c
Definition: compressB64.py:93
TrigConf::ThresholdMonitor::m_ThresholdName
std::string m_ThresholdName
Definition: ThresholdMonitor.h:57