ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMonVar.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGMON_VAR_H
6#define TRIGMON_VAR_H
7
14
15// Framework
17
18// C/C++
19#include <stdint.h>
20#include <iostream>
21
22namespace Trig
23{
24 // Dictionary of keys
34 kSMK = 66,
35 kL1PSK = 67,
36 kHLTPSK = 68,
38 kTimeExec = 101,
39 kTimeProc = 102,
40 kTimeRes = 103,
41 kTimeMon = 104,
42 // 200 - 299 reserved but not used in TrigNtVarsTool
43 kRoIET = 300, // Main transverse energy/pt var
44 kRoIIsTau = 301,
54 // 10,000 - 11,000 reserved for LB
55 };
56}
57
59{
60 public:
61
62 TrigMonVar();
63 TrigMonVar(unsigned int key, float value);
65
66 uint16_t getId() const { return m_key; }
67 uint16_t getKey() const { return m_key; }
68 uint16_t key() const { return m_key; }
69
70 float data() const { return m_data; }
71 float getData() const { return m_data; }
72
73 void print(std::ostream &os) const;
74
75 private:
76
77 uint16_t m_key; // variable key
78 float m_data; // variable value
79};
80
81//
82// Inlined comparison operators
83//
84
85inline bool operator==(const TrigMonVar &lhs, const TrigMonVar &rhs) {
86 return lhs.getKey() == rhs.getKey();
87}
88inline bool operator <(const TrigMonVar &lhs, const TrigMonVar &rhs) {
89 return lhs.getKey() < rhs.getKey();
90}
91
92inline bool operator==(const TrigMonVar &var, unsigned int key) {
93 return var.getKey() == key;
94}
95inline bool operator==(unsigned int key, const TrigMonVar &var) {
96 return var.getKey() == key;
97}
98
99inline bool operator<(const TrigMonVar &var, unsigned int key) {
100 return var.getKey() < key;
101}
102inline bool operator<(unsigned int key, const TrigMonVar &var) {
103 return key < var.getKey();
104}
105
106CLASS_DEF( TrigMonVar , 126820305 , 1 )
107
108#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
bool operator==(const TrigMonVar &lhs, const TrigMonVar &rhs)
Definition TrigMonVar.h:85
bool operator<(const TrigMonVar &lhs, const TrigMonVar &rhs)
Definition TrigMonVar.h:88
float getData() const
Definition TrigMonVar.h:71
float m_data
Definition TrigMonVar.h:78
uint16_t getId() const
Definition TrigMonVar.h:66
uint16_t key() const
Definition TrigMonVar.h:68
float data() const
Definition TrigMonVar.h:70
uint16_t m_key
Definition TrigMonVar.h:77
uint16_t getKey() const
Definition TrigMonVar.h:67
void print(std::ostream &os) const
The common trigger namespace for trigger analysis tools.
TrigCostMagicNumber_t
Definition TrigMonVar.h:25
@ kRoIEnergyVectorX
Definition TrigMonVar.h:48
@ kEBIsUnbiasedFlag
Definition TrigMonVar.h:33
@ kRoIEnergyVectorY
Definition TrigMonVar.h:49
@ kEBWeight
Definition TrigMonVar.h:30
@ kRoIET
Definition TrigMonVar.h:43
@ kEventNumber
Definition TrigMonVar.h:53
@ kRoIIsTau
Definition TrigMonVar.h:44
@ kRoIIsolationBits
Definition TrigMonVar.h:45
@ kTimeCostMonitoring
Definition TrigMonVar.h:37
@ kHLTPSK
Definition TrigMonVar.h:36
@ kEventBufferSize
Definition TrigMonVar.h:28
@ kEBBunchGroup
Definition TrigMonVar.h:31
@ kRoIEnergyOverflowX
Definition TrigMonVar.h:50
@ kRoIEta
Definition TrigMonVar.h:26
@ kRoIMuonCharge
Definition TrigMonVar.h:47
@ kRoIEnergyOverflowY
Definition TrigMonVar.h:51
@ kTimeMon
Definition TrigMonVar.h:41
@ kRoIPhi
Definition TrigMonVar.h:27
@ kRoIETLarge
Definition TrigMonVar.h:46
@ kL1PSK
Definition TrigMonVar.h:35
@ kTimeExec
Definition TrigMonVar.h:38
@ kIsCostEvent
Definition TrigMonVar.h:32
@ kTimeProc
Definition TrigMonVar.h:39
@ kTimeRes
Definition TrigMonVar.h:40
@ kSMK
Definition TrigMonVar.h:34
@ kRoIEnergyOverflowT
Definition TrigMonVar.h:52
@ kEventLumiBlockLength
Definition TrigMonVar.h:29