CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes
Level1TriggerScalers Class Reference

#include <Level1TriggerScalers.h>

Classes

class  h
 Persistable copy of Level1 Trigger Scalers. More...
 

Public Types

enum  { nLevel1Triggers = 128, nLevel1TestTriggers = 64, firstShortLSRun = 125574 }
 

Public Member Functions

unsigned int bunchCrossingErrors () const
 
unsigned int bunchNumber () const
 
struct timespec collectionTime () const
 
struct timespec collectionTimeLumiSeg () const
 
unsigned long long deadtime () const
 
unsigned long long deadtimeBeamActive () const
 
unsigned long long deadtimeBeamActiveCalibration () const
 
unsigned long long deadtimeBeamActivePartitionController () const
 
unsigned long long deadtimeBeamActivePrivateOrbit () const
 
unsigned long long deadtimeBeamActiveTimeSlot () const
 
unsigned long long deadtimeBeamActiveTriggerRules () const
 
bool empty () const
 empty method (= false) More...
 
unsigned int eventID () const
 
std::vector< unsigned int > gtAlgoCounts () const
 
unsigned long long gtEvents () const
 
float gtEventsRate () const
 
unsigned int gtResets () const
 
std::vector< unsigned int > gtTechCounts () const
 
unsigned long long gtTriggers () const
 
float gtTriggersRate () const
 
unsigned long long l1AsCalibration () const
 
unsigned long long l1AsPhysics () const
 
unsigned long long l1AsRandom () const
 
unsigned long long l1AsTest () const
 
unsigned int lastEventCounter0 () const
 
unsigned int lastHardReset () const
 
unsigned int lastOrbitCounter0 () const
 
unsigned int lastResync () const
 
unsigned int lastStart () const
 
unsigned int lastTestEnable () const
 
 Level1TriggerScalers ()
 
 Level1TriggerScalers (const unsigned char *rawData)
 
unsigned int lumiSegmentNr () const
 
unsigned int lumiSegmentNrLumiSeg () const
 
unsigned int lumiSegmentOrbits () const
 
std::string name () const
 name method More...
 
int operator!= (const Level1TriggerScalers &e) const
 inequality operator More...
 
int operator== (const Level1TriggerScalers &e) const
 equality operator More...
 
unsigned int orbitNr () const
 
int prescaleIndexAlgo () const
 
int prescaleIndexTech () const
 
unsigned int sourceID () const
 
unsigned long long spare0 () const
 
unsigned long long spare1 () const
 
unsigned long long spare2 () const
 
unsigned long long triggersPhysicsGeneratedFDL () const
 
unsigned long long triggersPhysicsLost () const
 
unsigned long long triggersPhysicsLostBeamActive () const
 
unsigned long long triggersPhysicsLostBeamInactive () const
 
unsigned int trigType () const
 
int version () const
 
virtual ~Level1TriggerScalers ()
 

Static Public Member Functions

static double percentLS (unsigned long long counts)
 
static double percentLS (unsigned long long counts, int runNumber)
 
static double percentLSActive (unsigned long long counts)
 
static double percentLSActive (unsigned long long counts, int runNumber)
 
static double rateLS (unsigned long long counts)
 
static double rateLS (unsigned int counts)
 
static double rateLS (unsigned long long counts, int runNumber)
 
static double rateLS (unsigned int counts, int runNumber)
 

Static Public Attributes

static const unsigned long long N_BX = 3564ULL
 
static const unsigned long long N_BX_ACTIVE = 2808ULL
 
static const unsigned long long N_BX_LUMI_SECTION = N_ORBITS_LUMI_SECTION * N_BX
 
static const unsigned long long N_ORBITS_LUMI_SECTION = 0x100000ULL
 

Protected Attributes

unsigned int bunchCrossingErrors_
 
unsigned int bunchNumber_
 
TimeSpec collectionTime_
 
TimeSpec collectionTimeLumiSeg_
 
unsigned long long deadtime_
 
unsigned long long deadtimeBeamActive_
 
unsigned long long deadtimeBeamActiveCalibration_
 
unsigned long long deadtimeBeamActivePartitionController_
 
unsigned long long deadtimeBeamActivePrivateOrbit_
 
unsigned long long deadtimeBeamActiveTimeSlot_
 
unsigned long long deadtimeBeamActiveTriggerRules_
 
unsigned int eventID_
 
std::vector< unsigned int > gtAlgoCounts_
 
unsigned long long gtEvents_
 
float gtEventsRate_
 
unsigned int gtResets_
 
std::vector< unsigned int > gtTechCounts_
 
unsigned long long gtTriggers_
 
float gtTriggersRate_
 
unsigned long long l1AsCalibration_
 
unsigned long long l1AsPhysics_
 
unsigned long long l1AsRandom_
 
unsigned long long l1AsTest_
 
unsigned int lastEventCounter0_
 
unsigned int lastHardReset_
 
unsigned int lastOrbitCounter0_
 
unsigned int lastResync_
 
unsigned int lastStart_
 
unsigned int lastTestEnable_
 
unsigned int lumiSegmentNr_
 
unsigned int lumiSegmentNrLumiSeg_
 
unsigned int lumiSegmentOrbits_
 
unsigned int orbitNr_
 
int prescaleIndexAlgo_
 
int prescaleIndexTech_
 
unsigned int sourceID_
 
unsigned long long spare0_
 
unsigned long long spare1_
 
unsigned long long spare2_
 
unsigned long long triggersPhysicsGeneratedFDL_
 
unsigned long long triggersPhysicsLost_
 
unsigned long long triggersPhysicsLostBeamActive_
 
unsigned long long triggersPhysicsLostBeamInactive_
 
unsigned int trigType_
 
int version_
 

Detailed Description

Definition at line 26 of file Level1TriggerScalers.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Constructor & Destructor Documentation

◆ Level1TriggerScalers() [1/2]

Level1TriggerScalers::Level1TriggerScalers ( )

Definition at line 12 of file Level1TriggerScalers.cc.

Referenced by Level1TriggerScalers().

13  : version_(0),
14  trigType_(0),
15  eventID_(0),
16  sourceID_(0),
17  bunchNumber_(0),
18  collectionTime_(0, 0),
19  lumiSegmentNr_(0),
21  orbitNr_(0),
22  gtResets_(0),
24  gtTriggers_(0),
25  gtEvents_(0),
26  gtTriggersRate_((float)0.0),
27  gtEventsRate_((float)0.0),
36  l1AsPhysics_(0),
37  l1AsRandom_(0),
38  l1AsTest_(0),
40  deadtime_(0),
50  lastTestEnable_(0),
51  lastResync_(0),
52  lastStart_(0),
54  lastHardReset_(0),
55  spare0_(0ULL),
56  spare1_(0ULL),
57  spare2_(0ULL) {}
unsigned long long deadtimeBeamActivePartitionController_
unsigned long long spare1_
unsigned long long deadtimeBeamActiveTriggerRules_
unsigned long long triggersPhysicsLostBeamInactive_
unsigned long long deadtimeBeamActiveTimeSlot_
unsigned long long gtTriggers_
std::vector< unsigned int > gtTechCounts_
std::vector< unsigned int > gtAlgoCounts_
unsigned long long deadtime_
unsigned long long l1AsTest_
unsigned long long triggersPhysicsLost_
unsigned long long l1AsCalibration_
unsigned long long deadtimeBeamActivePrivateOrbit_
unsigned int lumiSegmentNrLumiSeg_
unsigned long long deadtimeBeamActive_
unsigned long long l1AsPhysics_
unsigned long long triggersPhysicsLostBeamActive_
unsigned long long spare2_
unsigned long long spare0_
unsigned long long deadtimeBeamActiveCalibration_
unsigned long long triggersPhysicsGeneratedFDL_
unsigned long long gtEvents_
unsigned long long l1AsRandom_

◆ Level1TriggerScalers() [2/2]

Level1TriggerScalers::Level1TriggerScalers ( const unsigned char *  rawData)

Definition at line 59 of file Level1TriggerScalers.cc.

References TriggerScalersRaw_v3::bunchCrossingErrors, bunchCrossingErrors_, bunchNumber_, collectionTime_, TriggerScalersRaw_v3::collectionTime_nsec, TriggerScalersRaw_v3::collectionTime_sec, collectionTimeLumiSeg_, TriggerScalersRaw_v3::collectionTimeLumiSeg_nsec, TriggerScalersRaw_v3::collectionTimeLumiSeg_sec, runTheMatrix::const, TriggerScalersRaw_v3::deadtime, deadtime_, TriggerScalersRaw_v3::deadtimeBeamActive, deadtimeBeamActive_, TriggerScalersRaw_v3::deadtimeBeamActiveCalibration, deadtimeBeamActiveCalibration_, TriggerScalersRaw_v3::deadtimeBeamActivePartitionController, deadtimeBeamActivePartitionController_, TriggerScalersRaw_v3::deadtimeBeamActivePrivateOrbit, deadtimeBeamActivePrivateOrbit_, TriggerScalersRaw_v3::deadtimeBeamActiveTimeSlot, deadtimeBeamActiveTimeSlot_, TriggerScalersRaw_v3::deadtimeBeamActiveTriggerRules, deadtimeBeamActiveTriggerRules_, eventID_, TriggerScalersRaw_v3::gtAlgoCounts, gtAlgoCounts_, TriggerScalersRaw_v3::gtEvents, gtEvents_, TriggerScalersRaw_v3::gtEventsRate, gtEventsRate_, TriggerScalersRaw_v3::gtResets, gtResets_, TriggerScalersRaw_v3::gtTechCounts, gtTechCounts_, TriggerScalersRaw_v3::gtTriggers, gtTriggers_, TriggerScalersRaw_v3::gtTriggersRate, gtTriggersRate_, ScalersEventRecordRaw_v5::header, mps_fire::i, TriggerScalersRaw_v3::l1AsCalibration, l1AsCalibration_, TriggerScalersRaw_v3::l1AsPhysics, l1AsPhysics_, TriggerScalersRaw_v3::l1AsRandom, l1AsRandom_, TriggerScalersRaw_v3::l1AsTest, l1AsTest_, ScalersEventRecordRaw_v5::lastEventCounter0, lastEventCounter0_, ScalersEventRecordRaw_v5::lastHardReset, lastHardReset_, ScalersEventRecordRaw_v5::lastOrbitCounter0, lastOrbitCounter0_, ScalersEventRecordRaw_v5::lastResync, lastResync_, ScalersEventRecordRaw_v5::lastStart, lastStart_, ScalersEventRecordRaw_v5::lastTestEnable, lastTestEnable_, Level1TriggerScalers(), TriggerScalersRaw_v3::lumiSegmentNr, lumiSegmentNr_, TriggerScalersRaw_v3::lumiSegmentNrLumiSeg, lumiSegmentNrLumiSeg_, TriggerScalersRaw_v3::lumiSegmentOrbits, lumiSegmentOrbits_, ScalersRaw::N_L1_TEST_TRIGGERS_v1, ScalersRaw::N_L1_TRIGGERS_v1, TriggerScalersRaw_v3::orbitNr, orbitNr_, TriggerScalersRaw_v3::prescaleIndexAlgo, prescaleIndexAlgo_, TriggerScalersRaw_v3::prescaleIndexTech, prescaleIndexTech_, l1tstage2_dqm_sourceclient-live_cfg::rawData, TimeSpec::set_tv_nsec(), TimeSpec::set_tv_sec(), sourceID_, ScalersEventRecordRaw_v5::spare, spare0_, spare1_, spare2_, ScalersEventRecordRaw_v5::trig, TriggerScalersRaw_v3::triggersPhysicsGeneratedFDL, triggersPhysicsGeneratedFDL_, TriggerScalersRaw_v3::triggersPhysicsLost, triggersPhysicsLost_, TriggerScalersRaw_v3::triggersPhysicsLostBeamActive, triggersPhysicsLostBeamActive_, TriggerScalersRaw_v3::triggersPhysicsLostBeamInactive, triggersPhysicsLostBeamInactive_, trigType_, ScalersEventRecordRaw_v5::version, and version_.

59  {
61 
62  struct ScalersEventRecordRaw_v5 const* raw = reinterpret_cast<struct ScalersEventRecordRaw_v5 const*>(rawData);
63 
64  trigType_ = (raw->header >> 56) & 0xFULL;
65  eventID_ = (raw->header >> 32) & 0x00FFFFFFULL;
66  sourceID_ = (raw->header >> 8) & 0x00000FFFULL;
67  bunchNumber_ = (raw->header >> 20) & 0xFFFULL;
68 
69  version_ = raw->version;
70  if (version_ >= 3) {
71  collectionTime_.set_tv_sec(static_cast<long>(raw->trig.collectionTime_sec));
73 
76  orbitNr_ = raw->trig.orbitNr;
77  gtResets_ = raw->trig.gtResets;
80  gtEvents_ = raw->trig.gtEvents;
85 
88 
94 
97  l1AsTest_ = raw->trig.l1AsTest;
99  deadtime_ = raw->trig.deadtime;
106 
107  for (int i = 0; i < ScalersRaw::N_L1_TRIGGERS_v1; i++) {
108  gtAlgoCounts_.push_back(raw->trig.gtAlgoCounts[i]);
109  }
110 
111  for (int i = 0; i < ScalersRaw::N_L1_TEST_TRIGGERS_v1; i++) {
112  gtTechCounts_.push_back(raw->trig.gtTechCounts[i]);
113  }
114 
115  if (version_ >= 5) {
118  lastResync_ = raw->lastResync;
119  lastStart_ = raw->lastStart;
122  spare0_ = raw->spare[0];
123  spare1_ = raw->spare[1];
124  spare2_ = raw->spare[2];
125  } else {
126  lastOrbitCounter0_ = 0UL;
127  lastTestEnable_ = 0UL;
128  lastResync_ = 0UL;
129  lastStart_ = 0UL;
130  lastEventCounter0_ = 0UL;
131  lastHardReset_ = 0UL;
132  spare0_ = 0ULL;
133  spare1_ = 0ULL;
134  spare2_ = 0ULL;
135  }
136  }
137 }
unsigned long long deadtimeBeamActivePartitionController_
unsigned int gtTechCounts[ScalersRaw::N_L1_TEST_TRIGGERS_v1]
Definition: ScalersRaw.h:113
unsigned long long l1AsTest
Definition: ScalersRaw.h:102
unsigned long long spare1_
unsigned int orbitNr
Definition: ScalersRaw.h:83
unsigned long long deadtimeBeamActiveTriggerRules_
void set_tv_nsec(long value)
Definition: TimeSpec.h:19
unsigned int lastResync
Definition: ScalersRaw.h:230
unsigned long long spare[ScalersRaw::N_SPARE_v5]
Definition: ScalersRaw.h:234
unsigned long long triggersPhysicsLostBeamInactive_
unsigned long long deadtimeBeamActiveTimeSlot_
unsigned long long l1AsRandom
Definition: ScalersRaw.h:101
unsigned int collectionTime_sec
Definition: ScalersRaw.h:79
unsigned int collectionTime_nsec
Definition: ScalersRaw.h:80
unsigned long long gtTriggers_
std::vector< unsigned int > gtTechCounts_
std::vector< unsigned int > gtAlgoCounts_
unsigned long long l1AsCalibration
Definition: ScalersRaw.h:103
unsigned long long deadtimeBeamActivePartitionController
Definition: ScalersRaw.h:109
unsigned long long deadtimeBeamActiveTimeSlot
Definition: ScalersRaw.h:110
unsigned long long triggersPhysicsLostBeamInactive
Definition: ScalersRaw.h:99
unsigned long long deadtime_
unsigned long long deadtimeBeamActiveTriggerRules
Definition: ScalersRaw.h:106
unsigned long long l1AsTest_
struct TriggerScalersRaw_v3 trig
Definition: ScalersRaw.h:224
unsigned int collectionTimeLumiSeg_nsec
Definition: ScalersRaw.h:94
unsigned long long triggersPhysicsLost_
unsigned int lumiSegmentOrbits
Definition: ScalersRaw.h:82
unsigned long long l1AsCalibration_
unsigned int lastHardReset
Definition: ScalersRaw.h:233
unsigned long long deadtimeBeamActivePrivateOrbit_
unsigned int lastStart
Definition: ScalersRaw.h:231
unsigned int lumiSegmentNrLumiSeg_
unsigned int lastEventCounter0
Definition: ScalersRaw.h:232
unsigned long long deadtimeBeamActive_
unsigned long long deadtimeBeamActivePrivateOrbit
Definition: ScalersRaw.h:108
unsigned int gtAlgoCounts[ScalersRaw::N_L1_TRIGGERS_v1]
Definition: ScalersRaw.h:112
unsigned int lastTestEnable
Definition: ScalersRaw.h:229
unsigned long long triggersPhysicsLostBeamActive
Definition: ScalersRaw.h:98
unsigned long long l1AsPhysics_
unsigned long long gtEvents
Definition: ScalersRaw.h:87
unsigned long long deadtime
Definition: ScalersRaw.h:104
unsigned long long gtTriggers
Definition: ScalersRaw.h:86
unsigned long long triggersPhysicsLostBeamActive_
unsigned int collectionTimeLumiSeg_sec
Definition: ScalersRaw.h:93
unsigned int lastOrbitCounter0
Definition: ScalersRaw.h:228
unsigned long long deadtimeBeamActiveCalibration
Definition: ScalersRaw.h:107
unsigned int gtResets
Definition: ScalersRaw.h:84
unsigned long long spare2_
void set_tv_sec(long value)
Definition: TimeSpec.h:18
unsigned long long header
Definition: ScalersRaw.h:222
unsigned int lumiSegmentNrLumiSeg
Definition: ScalersRaw.h:95
unsigned long long spare0_
unsigned long long deadtimeBeamActiveCalibration_
unsigned long long deadtimeBeamActive
Definition: ScalersRaw.h:105
unsigned long long triggersPhysicsGeneratedFDL
Definition: ScalersRaw.h:96
unsigned long long triggersPhysicsLost
Definition: ScalersRaw.h:97
unsigned long long triggersPhysicsGeneratedFDL_
unsigned int bunchCrossingErrors
Definition: ScalersRaw.h:85
unsigned int lumiSegmentNr
Definition: ScalersRaw.h:81
unsigned long long l1AsPhysics
Definition: ScalersRaw.h:100
unsigned long long gtEvents_
unsigned long long l1AsRandom_

◆ ~Level1TriggerScalers()

Level1TriggerScalers::~Level1TriggerScalers ( )
virtual

Definition at line 139 of file Level1TriggerScalers.cc.

139 {}

Member Function Documentation

◆ bunchCrossingErrors()

unsigned int Level1TriggerScalers::bunchCrossingErrors ( ) const
inline

Definition at line 62 of file Level1TriggerScalers.h.

References bunchCrossingErrors_.

62 { return (bunchCrossingErrors_); }

◆ bunchNumber()

unsigned int Level1TriggerScalers::bunchNumber ( ) const
inline

Definition at line 51 of file Level1TriggerScalers.h.

References bunchNumber_.

51 { return (bunchNumber_); }

◆ collectionTime()

struct timespec Level1TriggerScalers::collectionTime ( ) const
inline

Definition at line 53 of file Level1TriggerScalers.h.

References collectionTime_, and TimeSpec::get_timespec().

53  {
54  return (collectionTime_.get_timespec());
55  }
timespec get_timespec() const
Definition: TimeSpec.cc:4

◆ collectionTimeLumiSeg()

struct timespec Level1TriggerScalers::collectionTimeLumiSeg ( ) const
inline

Definition at line 70 of file Level1TriggerScalers.h.

References collectionTimeLumiSeg_, and TimeSpec::get_timespec().

70  {
72  }
timespec get_timespec() const
Definition: TimeSpec.cc:4

◆ deadtime()

unsigned long long Level1TriggerScalers::deadtime ( ) const
inline

Definition at line 84 of file Level1TriggerScalers.h.

References deadtime_.

Referenced by generateEDF.LumiInfo::__str__().

84 { return (deadtime_); }
unsigned long long deadtime_

◆ deadtimeBeamActive()

unsigned long long Level1TriggerScalers::deadtimeBeamActive ( ) const
inline

Definition at line 85 of file Level1TriggerScalers.h.

References deadtimeBeamActive_.

85 { return (deadtimeBeamActive_); }
unsigned long long deadtimeBeamActive_

◆ deadtimeBeamActiveCalibration()

unsigned long long Level1TriggerScalers::deadtimeBeamActiveCalibration ( ) const
inline

Definition at line 87 of file Level1TriggerScalers.h.

References deadtimeBeamActiveCalibration_.

unsigned long long deadtimeBeamActiveCalibration_

◆ deadtimeBeamActivePartitionController()

unsigned long long Level1TriggerScalers::deadtimeBeamActivePartitionController ( ) const
inline

Definition at line 89 of file Level1TriggerScalers.h.

References deadtimeBeamActivePartitionController_.

unsigned long long deadtimeBeamActivePartitionController_

◆ deadtimeBeamActivePrivateOrbit()

unsigned long long Level1TriggerScalers::deadtimeBeamActivePrivateOrbit ( ) const
inline

Definition at line 88 of file Level1TriggerScalers.h.

References deadtimeBeamActivePrivateOrbit_.

unsigned long long deadtimeBeamActivePrivateOrbit_

◆ deadtimeBeamActiveTimeSlot()

unsigned long long Level1TriggerScalers::deadtimeBeamActiveTimeSlot ( ) const
inline

Definition at line 90 of file Level1TriggerScalers.h.

References deadtimeBeamActiveTimeSlot_.

90 { return (deadtimeBeamActiveTimeSlot_); }
unsigned long long deadtimeBeamActiveTimeSlot_

◆ deadtimeBeamActiveTriggerRules()

unsigned long long Level1TriggerScalers::deadtimeBeamActiveTriggerRules ( ) const
inline

Definition at line 86 of file Level1TriggerScalers.h.

References deadtimeBeamActiveTriggerRules_.

unsigned long long deadtimeBeamActiveTriggerRules_

◆ empty()

bool Level1TriggerScalers::empty ( ) const
inline

empty method (= false)

Definition at line 43 of file Level1TriggerScalers.h.

43 { return false; }

◆ eventID()

unsigned int Level1TriggerScalers::eventID ( ) const
inline

Definition at line 49 of file Level1TriggerScalers.h.

References eventID_.

49 { return (eventID_); }

◆ gtAlgoCounts()

std::vector<unsigned int> Level1TriggerScalers::gtAlgoCounts ( ) const
inline

Definition at line 112 of file Level1TriggerScalers.h.

References gtAlgoCounts_.

112 { return (gtAlgoCounts_); }
std::vector< unsigned int > gtAlgoCounts_

◆ gtEvents()

unsigned long long Level1TriggerScalers::gtEvents ( ) const
inline

Definition at line 64 of file Level1TriggerScalers.h.

References gtEvents_.

64 { return (gtEvents_); }
unsigned long long gtEvents_

◆ gtEventsRate()

float Level1TriggerScalers::gtEventsRate ( ) const
inline

Definition at line 66 of file Level1TriggerScalers.h.

References gtEventsRate_.

66 { return (gtEventsRate_); }

◆ gtResets()

unsigned int Level1TriggerScalers::gtResets ( ) const
inline

Definition at line 61 of file Level1TriggerScalers.h.

References gtResets_.

61 { return (gtResets_); }

◆ gtTechCounts()

std::vector<unsigned int> Level1TriggerScalers::gtTechCounts ( ) const
inline

Definition at line 114 of file Level1TriggerScalers.h.

References gtTechCounts_.

114 { return (gtTechCounts_); }
std::vector< unsigned int > gtTechCounts_

◆ gtTriggers()

unsigned long long Level1TriggerScalers::gtTriggers ( ) const
inline

Definition at line 63 of file Level1TriggerScalers.h.

References gtTriggers_.

63 { return (gtTriggers_); }
unsigned long long gtTriggers_

◆ gtTriggersRate()

float Level1TriggerScalers::gtTriggersRate ( ) const
inline

Definition at line 65 of file Level1TriggerScalers.h.

References gtTriggersRate_.

65 { return (gtTriggersRate_); }

◆ l1AsCalibration()

unsigned long long Level1TriggerScalers::l1AsCalibration ( ) const
inline

Definition at line 83 of file Level1TriggerScalers.h.

References l1AsCalibration_.

83 { return (l1AsCalibration_); }
unsigned long long l1AsCalibration_

◆ l1AsPhysics()

unsigned long long Level1TriggerScalers::l1AsPhysics ( ) const
inline

Definition at line 80 of file Level1TriggerScalers.h.

References l1AsPhysics_.

80 { return (l1AsPhysics_); }
unsigned long long l1AsPhysics_

◆ l1AsRandom()

unsigned long long Level1TriggerScalers::l1AsRandom ( ) const
inline

Definition at line 81 of file Level1TriggerScalers.h.

References l1AsRandom_.

81 { return (l1AsRandom_); }
unsigned long long l1AsRandom_

◆ l1AsTest()

unsigned long long Level1TriggerScalers::l1AsTest ( ) const
inline

Definition at line 82 of file Level1TriggerScalers.h.

References l1AsTest_.

82 { return (l1AsTest_); }
unsigned long long l1AsTest_

◆ lastEventCounter0()

unsigned int Level1TriggerScalers::lastEventCounter0 ( ) const
inline

Definition at line 96 of file Level1TriggerScalers.h.

References lastEventCounter0_.

96 { return (lastEventCounter0_); }

◆ lastHardReset()

unsigned int Level1TriggerScalers::lastHardReset ( ) const
inline

Definition at line 97 of file Level1TriggerScalers.h.

References lastHardReset_.

97 { return (lastHardReset_); }

◆ lastOrbitCounter0()

unsigned int Level1TriggerScalers::lastOrbitCounter0 ( ) const
inline

Definition at line 92 of file Level1TriggerScalers.h.

References lastOrbitCounter0_.

92 { return (lastOrbitCounter0_); }

◆ lastResync()

unsigned int Level1TriggerScalers::lastResync ( ) const
inline

Definition at line 94 of file Level1TriggerScalers.h.

References lastResync_.

94 { return (lastResync_); }

◆ lastStart()

unsigned int Level1TriggerScalers::lastStart ( ) const
inline

Definition at line 95 of file Level1TriggerScalers.h.

References lastStart_.

95 { return (lastStart_); }

◆ lastTestEnable()

unsigned int Level1TriggerScalers::lastTestEnable ( ) const
inline

Definition at line 93 of file Level1TriggerScalers.h.

References lastTestEnable_.

93 { return (lastTestEnable_); }

◆ lumiSegmentNr()

unsigned int Level1TriggerScalers::lumiSegmentNr ( ) const
inline

Definition at line 57 of file Level1TriggerScalers.h.

References lumiSegmentNr_.

57 { return (lumiSegmentNr_); }

◆ lumiSegmentNrLumiSeg()

unsigned int Level1TriggerScalers::lumiSegmentNrLumiSeg ( ) const
inline

Definition at line 74 of file Level1TriggerScalers.h.

References lumiSegmentNrLumiSeg_.

74 { return (lumiSegmentNrLumiSeg_); }
unsigned int lumiSegmentNrLumiSeg_

◆ lumiSegmentOrbits()

unsigned int Level1TriggerScalers::lumiSegmentOrbits ( ) const
inline

Definition at line 58 of file Level1TriggerScalers.h.

References lumiSegmentOrbits_.

58 { return (lumiSegmentOrbits_); }

◆ name()

std::string Level1TriggerScalers::name ( ) const
inline

name method

Definition at line 40 of file Level1TriggerScalers.h.

Referenced by config.CFG::__str__(), validation.Sample::digest(), and VIDSelectorBase.VIDSelectorBase::initialize().

40 { return "Level1TriggerScalers"; }

◆ operator!=()

int Level1TriggerScalers::operator!= ( const Level1TriggerScalers e) const
inline

inequality operator

Definition at line 120 of file Level1TriggerScalers.h.

120 { return false; }

◆ operator==()

int Level1TriggerScalers::operator== ( const Level1TriggerScalers e) const
inline

equality operator

Definition at line 117 of file Level1TriggerScalers.h.

117 { return false; }

◆ orbitNr()

unsigned int Level1TriggerScalers::orbitNr ( ) const
inline

Definition at line 59 of file Level1TriggerScalers.h.

References orbitNr_.

59 { return (orbitNr_); }

◆ percentLS() [1/2]

double Level1TriggerScalers::percentLS ( unsigned long long  counts)
static

◆ percentLS() [2/2]

double Level1TriggerScalers::percentLS ( unsigned long long  counts,
int  runNumber 
)
static

Definition at line 162 of file Level1TriggerScalers.cc.

References dqmiodumpmetadata::counts, firstShortLSRun, and convertSQLiteXML::runNumber.

162  {
163  double percent;
164  if ((runNumber >= firstShortLSRun) || (runNumber <= 1)) {
165  percent = ((double)counts) / 9342812.16;
166  } else {
167  percent = ((double)counts) / 37371248.64;
168  }
169  if (percent > 100.0000) {
170  percent = 100.0;
171  }
172  return (percent);
173 }

◆ percentLSActive() [1/2]

double Level1TriggerScalers::percentLSActive ( unsigned long long  counts)
static

◆ percentLSActive() [2/2]

double Level1TriggerScalers::percentLSActive ( unsigned long long  counts,
int  runNumber 
)
static

Definition at line 179 of file Level1TriggerScalers.cc.

References dqmiodumpmetadata::counts, firstShortLSRun, and convertSQLiteXML::runNumber.

179  {
180  double percent;
181  if ((runNumber >= firstShortLSRun) || (runNumber <= 1)) {
182  percent = ((double)counts) / 7361003.52;
183  } else {
184  percent = ((double)counts) / 29444014.08;
185  }
186  if (percent > 100.0000) {
187  percent = 100.0;
188  }
189  return (percent);
190 }

◆ prescaleIndexAlgo()

int Level1TriggerScalers::prescaleIndexAlgo ( ) const
inline

Definition at line 67 of file Level1TriggerScalers.h.

References prescaleIndexAlgo_.

◆ prescaleIndexTech()

int Level1TriggerScalers::prescaleIndexTech ( ) const
inline

Definition at line 68 of file Level1TriggerScalers.h.

References prescaleIndexTech_.

◆ rateLS() [1/4]

double Level1TriggerScalers::rateLS ( unsigned long long  counts)
static

◆ rateLS() [2/4]

double Level1TriggerScalers::rateLS ( unsigned int  counts)
static

◆ rateLS() [3/4]

double Level1TriggerScalers::rateLS ( unsigned long long  counts,
int  runNumber 
)
static

Definition at line 150 of file Level1TriggerScalers.cc.

References dqmiodumpmetadata::counts, firstShortLSRun, RPCpg::rate(), and convertSQLiteXML::runNumber.

150  {
151  double rate;
152  if ((runNumber >= firstShortLSRun) || (runNumber <= 1)) {
153  rate = ((double)counts) / 23.31040958083832;
154  } else {
155  rate = ((double)counts) / 93.24163832335329;
156  }
157  return (rate);
158 }
double rate(double x)
Definition: Constants.cc:3

◆ rateLS() [4/4]

double Level1TriggerScalers::rateLS ( unsigned int  counts,
int  runNumber 
)
static

Definition at line 145 of file Level1TriggerScalers.cc.

References dqmiodumpmetadata::counts, rateLS(), and convertSQLiteXML::runNumber.

145  {
146  unsigned long long counts64 = (unsigned long long)counts;
147  return (rateLS(counts64, runNumber));
148 }
static double rateLS(unsigned long long counts)

◆ sourceID()

unsigned int Level1TriggerScalers::sourceID ( ) const
inline

Definition at line 50 of file Level1TriggerScalers.h.

References sourceID_.

50 { return (sourceID_); }

◆ spare0()

unsigned long long Level1TriggerScalers::spare0 ( ) const
inline

Definition at line 98 of file Level1TriggerScalers.h.

References spare0_.

98 { return (spare0_); }
unsigned long long spare0_

◆ spare1()

unsigned long long Level1TriggerScalers::spare1 ( ) const
inline

Definition at line 99 of file Level1TriggerScalers.h.

References spare1_.

99 { return (spare1_); }
unsigned long long spare1_

◆ spare2()

unsigned long long Level1TriggerScalers::spare2 ( ) const
inline

Definition at line 100 of file Level1TriggerScalers.h.

References spare2_.

100 { return (spare2_); }
unsigned long long spare2_

◆ triggersPhysicsGeneratedFDL()

unsigned long long Level1TriggerScalers::triggersPhysicsGeneratedFDL ( ) const
inline

Definition at line 76 of file Level1TriggerScalers.h.

References triggersPhysicsGeneratedFDL_.

76 { return (triggersPhysicsGeneratedFDL_); }
unsigned long long triggersPhysicsGeneratedFDL_

◆ triggersPhysicsLost()

unsigned long long Level1TriggerScalers::triggersPhysicsLost ( ) const
inline

Definition at line 77 of file Level1TriggerScalers.h.

References triggersPhysicsLost_.

77 { return (triggersPhysicsLost_); }
unsigned long long triggersPhysicsLost_

◆ triggersPhysicsLostBeamActive()

unsigned long long Level1TriggerScalers::triggersPhysicsLostBeamActive ( ) const
inline

Definition at line 78 of file Level1TriggerScalers.h.

References triggersPhysicsLostBeamActive_.

unsigned long long triggersPhysicsLostBeamActive_

◆ triggersPhysicsLostBeamInactive()

unsigned long long Level1TriggerScalers::triggersPhysicsLostBeamInactive ( ) const
inline

Definition at line 79 of file Level1TriggerScalers.h.

References triggersPhysicsLostBeamInactive_.

unsigned long long triggersPhysicsLostBeamInactive_

◆ trigType()

unsigned int Level1TriggerScalers::trigType ( ) const
inline

Definition at line 48 of file Level1TriggerScalers.h.

References trigType_.

48 { return (trigType_); }

◆ version()

int Level1TriggerScalers::version ( ) const
inline

Definition at line 46 of file Level1TriggerScalers.h.

References version_.

Referenced by validation.Sample::datasetpattern(), and validation.Sample::filename().

46 { return (version_); }

Member Data Documentation

◆ bunchCrossingErrors_

unsigned int Level1TriggerScalers::bunchCrossingErrors_
protected

Definition at line 135 of file Level1TriggerScalers.h.

Referenced by bunchCrossingErrors(), and Level1TriggerScalers().

◆ bunchNumber_

unsigned int Level1TriggerScalers::bunchNumber_
protected

Definition at line 128 of file Level1TriggerScalers.h.

Referenced by bunchNumber(), and Level1TriggerScalers().

◆ collectionTime_

TimeSpec Level1TriggerScalers::collectionTime_
protected

Definition at line 130 of file Level1TriggerScalers.h.

Referenced by collectionTime(), and Level1TriggerScalers().

◆ collectionTimeLumiSeg_

TimeSpec Level1TriggerScalers::collectionTimeLumiSeg_
protected

Definition at line 143 of file Level1TriggerScalers.h.

Referenced by collectionTimeLumiSeg(), and Level1TriggerScalers().

◆ deadtime_

unsigned long long Level1TriggerScalers::deadtime_
protected

Definition at line 153 of file Level1TriggerScalers.h.

Referenced by deadtime(), and Level1TriggerScalers().

◆ deadtimeBeamActive_

unsigned long long Level1TriggerScalers::deadtimeBeamActive_
protected

Definition at line 154 of file Level1TriggerScalers.h.

Referenced by deadtimeBeamActive(), and Level1TriggerScalers().

◆ deadtimeBeamActiveCalibration_

unsigned long long Level1TriggerScalers::deadtimeBeamActiveCalibration_
protected

Definition at line 156 of file Level1TriggerScalers.h.

Referenced by deadtimeBeamActiveCalibration(), and Level1TriggerScalers().

◆ deadtimeBeamActivePartitionController_

unsigned long long Level1TriggerScalers::deadtimeBeamActivePartitionController_
protected

◆ deadtimeBeamActivePrivateOrbit_

unsigned long long Level1TriggerScalers::deadtimeBeamActivePrivateOrbit_
protected

Definition at line 157 of file Level1TriggerScalers.h.

Referenced by deadtimeBeamActivePrivateOrbit(), and Level1TriggerScalers().

◆ deadtimeBeamActiveTimeSlot_

unsigned long long Level1TriggerScalers::deadtimeBeamActiveTimeSlot_
protected

Definition at line 159 of file Level1TriggerScalers.h.

Referenced by deadtimeBeamActiveTimeSlot(), and Level1TriggerScalers().

◆ deadtimeBeamActiveTriggerRules_

unsigned long long Level1TriggerScalers::deadtimeBeamActiveTriggerRules_
protected

Definition at line 155 of file Level1TriggerScalers.h.

Referenced by deadtimeBeamActiveTriggerRules(), and Level1TriggerScalers().

◆ eventID_

unsigned int Level1TriggerScalers::eventID_
protected

Definition at line 126 of file Level1TriggerScalers.h.

Referenced by eventID(), and Level1TriggerScalers().

◆ gtAlgoCounts_

std::vector<unsigned int> Level1TriggerScalers::gtAlgoCounts_
protected

Definition at line 161 of file Level1TriggerScalers.h.

Referenced by gtAlgoCounts(), and Level1TriggerScalers().

◆ gtEvents_

unsigned long long Level1TriggerScalers::gtEvents_
protected

Definition at line 137 of file Level1TriggerScalers.h.

Referenced by gtEvents(), and Level1TriggerScalers().

◆ gtEventsRate_

float Level1TriggerScalers::gtEventsRate_
protected

Definition at line 139 of file Level1TriggerScalers.h.

Referenced by gtEventsRate(), and Level1TriggerScalers().

◆ gtResets_

unsigned int Level1TriggerScalers::gtResets_
protected

Definition at line 134 of file Level1TriggerScalers.h.

Referenced by gtResets(), and Level1TriggerScalers().

◆ gtTechCounts_

std::vector<unsigned int> Level1TriggerScalers::gtTechCounts_
protected

Definition at line 162 of file Level1TriggerScalers.h.

Referenced by gtTechCounts(), and Level1TriggerScalers().

◆ gtTriggers_

unsigned long long Level1TriggerScalers::gtTriggers_
protected

Definition at line 136 of file Level1TriggerScalers.h.

Referenced by gtTriggers(), and Level1TriggerScalers().

◆ gtTriggersRate_

float Level1TriggerScalers::gtTriggersRate_
protected

Definition at line 138 of file Level1TriggerScalers.h.

Referenced by gtTriggersRate(), and Level1TriggerScalers().

◆ l1AsCalibration_

unsigned long long Level1TriggerScalers::l1AsCalibration_
protected

Definition at line 152 of file Level1TriggerScalers.h.

Referenced by l1AsCalibration(), and Level1TriggerScalers().

◆ l1AsPhysics_

unsigned long long Level1TriggerScalers::l1AsPhysics_
protected

Definition at line 149 of file Level1TriggerScalers.h.

Referenced by l1AsPhysics(), and Level1TriggerScalers().

◆ l1AsRandom_

unsigned long long Level1TriggerScalers::l1AsRandom_
protected

Definition at line 150 of file Level1TriggerScalers.h.

Referenced by l1AsRandom(), and Level1TriggerScalers().

◆ l1AsTest_

unsigned long long Level1TriggerScalers::l1AsTest_
protected

Definition at line 151 of file Level1TriggerScalers.h.

Referenced by l1AsTest(), and Level1TriggerScalers().

◆ lastEventCounter0_

unsigned int Level1TriggerScalers::lastEventCounter0_
protected

Definition at line 171 of file Level1TriggerScalers.h.

Referenced by lastEventCounter0(), and Level1TriggerScalers().

◆ lastHardReset_

unsigned int Level1TriggerScalers::lastHardReset_
protected

Definition at line 172 of file Level1TriggerScalers.h.

Referenced by lastHardReset(), and Level1TriggerScalers().

◆ lastOrbitCounter0_

unsigned int Level1TriggerScalers::lastOrbitCounter0_
protected

Definition at line 167 of file Level1TriggerScalers.h.

Referenced by lastOrbitCounter0(), and Level1TriggerScalers().

◆ lastResync_

unsigned int Level1TriggerScalers::lastResync_
protected

Definition at line 169 of file Level1TriggerScalers.h.

Referenced by lastResync(), and Level1TriggerScalers().

◆ lastStart_

unsigned int Level1TriggerScalers::lastStart_
protected

Definition at line 170 of file Level1TriggerScalers.h.

Referenced by lastStart(), and Level1TriggerScalers().

◆ lastTestEnable_

unsigned int Level1TriggerScalers::lastTestEnable_
protected

Definition at line 168 of file Level1TriggerScalers.h.

Referenced by lastTestEnable(), and Level1TriggerScalers().

◆ lumiSegmentNr_

unsigned int Level1TriggerScalers::lumiSegmentNr_
protected

Definition at line 131 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and lumiSegmentNr().

◆ lumiSegmentNrLumiSeg_

unsigned int Level1TriggerScalers::lumiSegmentNrLumiSeg_
protected

Definition at line 144 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and lumiSegmentNrLumiSeg().

◆ lumiSegmentOrbits_

unsigned int Level1TriggerScalers::lumiSegmentOrbits_
protected

Definition at line 132 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and lumiSegmentOrbits().

◆ N_BX

const unsigned long long Level1TriggerScalers::N_BX = 3564ULL
static

Definition at line 30 of file Level1TriggerScalers.h.

◆ N_BX_ACTIVE

const unsigned long long Level1TriggerScalers::N_BX_ACTIVE = 2808ULL
static

Definition at line 31 of file Level1TriggerScalers.h.

◆ N_BX_LUMI_SECTION

const unsigned long long Level1TriggerScalers::N_BX_LUMI_SECTION = N_ORBITS_LUMI_SECTION * N_BX
static

Definition at line 33 of file Level1TriggerScalers.h.

◆ N_ORBITS_LUMI_SECTION

const unsigned long long Level1TriggerScalers::N_ORBITS_LUMI_SECTION = 0x100000ULL
static

Definition at line 32 of file Level1TriggerScalers.h.

◆ orbitNr_

unsigned int Level1TriggerScalers::orbitNr_
protected

Definition at line 133 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and orbitNr().

◆ prescaleIndexAlgo_

int Level1TriggerScalers::prescaleIndexAlgo_
protected

Definition at line 140 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and prescaleIndexAlgo().

◆ prescaleIndexTech_

int Level1TriggerScalers::prescaleIndexTech_
protected

Definition at line 141 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and prescaleIndexTech().

◆ sourceID_

unsigned int Level1TriggerScalers::sourceID_
protected

Definition at line 127 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and sourceID().

◆ spare0_

unsigned long long Level1TriggerScalers::spare0_
protected

Definition at line 175 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and spare0().

◆ spare1_

unsigned long long Level1TriggerScalers::spare1_
protected

Definition at line 176 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and spare1().

◆ spare2_

unsigned long long Level1TriggerScalers::spare2_
protected

Definition at line 177 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and spare2().

◆ triggersPhysicsGeneratedFDL_

unsigned long long Level1TriggerScalers::triggersPhysicsGeneratedFDL_
protected

Definition at line 145 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and triggersPhysicsGeneratedFDL().

◆ triggersPhysicsLost_

unsigned long long Level1TriggerScalers::triggersPhysicsLost_
protected

Definition at line 146 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and triggersPhysicsLost().

◆ triggersPhysicsLostBeamActive_

unsigned long long Level1TriggerScalers::triggersPhysicsLostBeamActive_
protected

Definition at line 147 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and triggersPhysicsLostBeamActive().

◆ triggersPhysicsLostBeamInactive_

unsigned long long Level1TriggerScalers::triggersPhysicsLostBeamInactive_
protected

◆ trigType_

unsigned int Level1TriggerScalers::trigType_
protected

Definition at line 125 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and trigType().

◆ version_

int Level1TriggerScalers::version_
protected

Definition at line 123 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and version().