CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 27 of file Level1TriggerScalers.h.

Member Enumeration Documentation

anonymous enum
Enumerator
nLevel1Triggers 
nLevel1TestTriggers 
firstShortLSRun 

Definition at line 31 of file Level1TriggerScalers.h.

Constructor & Destructor Documentation

Level1TriggerScalers::Level1TriggerScalers ( )

Definition at line 12 of file Level1TriggerScalers.cc.

Referenced by Level1TriggerScalers().

12  :
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)
58 {
59 }
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::Level1TriggerScalers ( const unsigned char *  rawData)

Definition at line 61 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, 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, 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_, 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_.

62 {
64 
65  struct ScalersEventRecordRaw_v5 const * raw
66  = reinterpret_cast<struct ScalersEventRecordRaw_v5 const *>(rawData);
67 
68  trigType_ = ( raw->header >> 56 ) & 0xFULL;
69  eventID_ = ( raw->header >> 32 ) & 0x00FFFFFFULL;
70  sourceID_ = ( raw->header >> 8 ) & 0x00000FFFULL;
71  bunchNumber_ = ( raw->header >> 20 ) & 0xFFFULL;
72 
73  version_ = raw->version;
74  if ( version_ >= 3 )
75  {
76  collectionTime_.set_tv_sec( static_cast<long>(
77  raw->trig.collectionTime_sec));
80 
83  orbitNr_ = raw->trig.orbitNr;
84  gtResets_ = raw->trig.gtResets;
87  gtEvents_ = raw->trig.gtEvents;
92 
93  collectionTimeLumiSeg_.set_tv_sec( static_cast<long>(
97 
104 
106  l1AsRandom_ = raw->trig.l1AsRandom;
107  l1AsTest_ = raw->trig.l1AsTest;
109  deadtime_ = raw->trig.deadtime;
117 
118  for ( int i=0; i<ScalersRaw::N_L1_TRIGGERS_v1; i++)
119  { gtAlgoCounts_.push_back( raw->trig.gtAlgoCounts[i]);}
120 
121  for ( int i=0; i<ScalersRaw::N_L1_TEST_TRIGGERS_v1; i++)
122  { gtTechCounts_.push_back( raw->trig.gtTechCounts[i]);}
123 
124  if ( version_ >= 5 )
125  {
128  lastResync_ = raw->lastResync;
129  lastStart_ = raw->lastStart;
132  spare0_ = raw->spare[0];
133  spare1_ = raw->spare[1];
134  spare2_ = raw->spare[2];
135  }
136  else
137  {
138  lastOrbitCounter0_ = 0UL;
139  lastTestEnable_ = 0UL;
140  lastResync_ = 0UL;
141  lastStart_ = 0UL;
142  lastEventCounter0_ = 0UL;
143  lastHardReset_ = 0UL;
144  spare0_ = 0ULL;
145  spare1_ = 0ULL;
146  spare2_ = 0ULL;
147  }
148  }
149 }
unsigned long long deadtimeBeamActivePartitionController_
unsigned int gtTechCounts[ScalersRaw::N_L1_TEST_TRIGGERS_v1]
Definition: ScalersRaw.h:117
unsigned long long l1AsTest
Definition: ScalersRaw.h:106
unsigned long long spare1_
int i
Definition: DBlmapReader.cc:9
unsigned int orbitNr
Definition: ScalersRaw.h:87
unsigned long long deadtimeBeamActiveTriggerRules_
void set_tv_nsec(long value)
Definition: TimeSpec.h:27
unsigned int lastResync
Definition: ScalersRaw.h:243
unsigned long long spare[ScalersRaw::N_SPARE_v5]
Definition: ScalersRaw.h:247
unsigned long long triggersPhysicsLostBeamInactive_
unsigned long long deadtimeBeamActiveTimeSlot_
unsigned long long l1AsRandom
Definition: ScalersRaw.h:105
unsigned int collectionTime_sec
Definition: ScalersRaw.h:83
unsigned int collectionTime_nsec
Definition: ScalersRaw.h:84
unsigned long long gtTriggers_
std::vector< unsigned int > gtTechCounts_
std::vector< unsigned int > gtAlgoCounts_
unsigned long long l1AsCalibration
Definition: ScalersRaw.h:107
unsigned long long deadtimeBeamActivePartitionController
Definition: ScalersRaw.h:113
unsigned long long deadtimeBeamActiveTimeSlot
Definition: ScalersRaw.h:114
unsigned long long triggersPhysicsLostBeamInactive
Definition: ScalersRaw.h:103
unsigned long long deadtime_
unsigned long long deadtimeBeamActiveTriggerRules
Definition: ScalersRaw.h:110
unsigned long long l1AsTest_
struct TriggerScalersRaw_v3 trig
Definition: ScalersRaw.h:237
unsigned int collectionTimeLumiSeg_nsec
Definition: ScalersRaw.h:98
unsigned long long triggersPhysicsLost_
unsigned int lumiSegmentOrbits
Definition: ScalersRaw.h:86
unsigned long long l1AsCalibration_
unsigned int lastHardReset
Definition: ScalersRaw.h:246
unsigned long long deadtimeBeamActivePrivateOrbit_
unsigned int lastStart
Definition: ScalersRaw.h:244
unsigned int lumiSegmentNrLumiSeg_
unsigned int lastEventCounter0
Definition: ScalersRaw.h:245
unsigned long long deadtimeBeamActive_
unsigned long long deadtimeBeamActivePrivateOrbit
Definition: ScalersRaw.h:112
unsigned int gtAlgoCounts[ScalersRaw::N_L1_TRIGGERS_v1]
Definition: ScalersRaw.h:116
unsigned int lastTestEnable
Definition: ScalersRaw.h:242
unsigned long long triggersPhysicsLostBeamActive
Definition: ScalersRaw.h:102
string const
Definition: compareJSON.py:14
unsigned long long l1AsPhysics_
unsigned long long gtEvents
Definition: ScalersRaw.h:91
unsigned long long deadtime
Definition: ScalersRaw.h:108
unsigned long long gtTriggers
Definition: ScalersRaw.h:90
unsigned long long triggersPhysicsLostBeamActive_
unsigned int collectionTimeLumiSeg_sec
Definition: ScalersRaw.h:97
unsigned int lastOrbitCounter0
Definition: ScalersRaw.h:241
unsigned long long deadtimeBeamActiveCalibration
Definition: ScalersRaw.h:111
unsigned int gtResets
Definition: ScalersRaw.h:88
unsigned long long spare2_
void set_tv_sec(long value)
Definition: TimeSpec.h:26
unsigned long long header
Definition: ScalersRaw.h:235
unsigned int lumiSegmentNrLumiSeg
Definition: ScalersRaw.h:99
unsigned long long spare0_
unsigned long long deadtimeBeamActiveCalibration_
unsigned long long deadtimeBeamActive
Definition: ScalersRaw.h:109
unsigned long long triggersPhysicsGeneratedFDL
Definition: ScalersRaw.h:100
unsigned long long triggersPhysicsLost
Definition: ScalersRaw.h:101
unsigned long long triggersPhysicsGeneratedFDL_
unsigned int bunchCrossingErrors
Definition: ScalersRaw.h:89
unsigned int lumiSegmentNr
Definition: ScalersRaw.h:85
unsigned long long l1AsPhysics
Definition: ScalersRaw.h:104
unsigned long long gtEvents_
unsigned long long l1AsRandom_
Level1TriggerScalers::~Level1TriggerScalers ( )
virtual

Definition at line 151 of file Level1TriggerScalers.cc.

151 { }

Member Function Documentation

unsigned int Level1TriggerScalers::bunchCrossingErrors ( ) const
inline

Definition at line 69 of file Level1TriggerScalers.h.

References bunchCrossingErrors_.

Referenced by operator<<().

69 { return(bunchCrossingErrors_);}
unsigned int Level1TriggerScalers::bunchNumber ( ) const
inline

Definition at line 59 of file Level1TriggerScalers.h.

References bunchNumber_.

Referenced by operator<<().

59 { return(bunchNumber_);}
struct timespec Level1TriggerScalers::collectionTime ( ) const
inline

Definition at line 61 of file Level1TriggerScalers.h.

References collectionTime_, and TimeSpec::get_timespec().

Referenced by Level1TriggerRates::computeRates(), and operator<<().

62  { return(collectionTime_.get_timespec());}
timespec get_timespec() const
Definition: TimeSpec.cc:4
struct timespec Level1TriggerScalers::collectionTimeLumiSeg ( ) const
inline

Definition at line 77 of file Level1TriggerScalers.h.

References collectionTimeLumiSeg_, and TimeSpec::get_timespec().

Referenced by Level1TriggerRates::computeRates(), and operator<<().

timespec get_timespec() const
Definition: TimeSpec.cc:4
unsigned long long Level1TriggerScalers::deadtime ( ) const
inline

Definition at line 99 of file Level1TriggerScalers.h.

References deadtime_.

Referenced by generateEDF.LumiInfo::__str__(), Level1TriggerRates::computeRates(), and operator<<().

100  { return(deadtime_);}
unsigned long long deadtime_
unsigned long long Level1TriggerScalers::deadtimeBeamActive ( ) const
inline

Definition at line 101 of file Level1TriggerScalers.h.

References deadtimeBeamActive_.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

102  { return(deadtimeBeamActive_);}
unsigned long long deadtimeBeamActive_
unsigned long long Level1TriggerScalers::deadtimeBeamActiveCalibration ( ) const
inline

Definition at line 105 of file Level1TriggerScalers.h.

References deadtimeBeamActiveCalibration_.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

unsigned long long deadtimeBeamActiveCalibration_
unsigned long long Level1TriggerScalers::deadtimeBeamActivePartitionController ( ) const
inline
unsigned long long Level1TriggerScalers::deadtimeBeamActivePrivateOrbit ( ) const
inline

Definition at line 107 of file Level1TriggerScalers.h.

References deadtimeBeamActivePrivateOrbit_.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

unsigned long long deadtimeBeamActivePrivateOrbit_
unsigned long long Level1TriggerScalers::deadtimeBeamActiveTimeSlot ( ) const
inline

Definition at line 111 of file Level1TriggerScalers.h.

References deadtimeBeamActiveTimeSlot_.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

112  { return(deadtimeBeamActiveTimeSlot_);}
unsigned long long deadtimeBeamActiveTimeSlot_
unsigned long long Level1TriggerScalers::deadtimeBeamActiveTriggerRules ( ) const
inline

Definition at line 103 of file Level1TriggerScalers.h.

References deadtimeBeamActiveTriggerRules_.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

unsigned long long deadtimeBeamActiveTriggerRules_
bool Level1TriggerScalers::empty ( ) const
inline

empty method (= false)

Definition at line 51 of file Level1TriggerScalers.h.

Referenced by Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().

51 { return false; }
unsigned int Level1TriggerScalers::eventID ( ) const
inline

Definition at line 57 of file Level1TriggerScalers.h.

References eventID_.

Referenced by operator<<().

57 { return(eventID_);}
std::vector<unsigned int> Level1TriggerScalers::gtAlgoCounts ( ) const
inline

Definition at line 134 of file Level1TriggerScalers.h.

References gtAlgoCounts_.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

135  { return(gtAlgoCounts_);}
std::vector< unsigned int > gtAlgoCounts_
unsigned long long Level1TriggerScalers::gtEvents ( ) const
inline

Definition at line 71 of file Level1TriggerScalers.h.

References gtEvents_.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

71 { return(gtEvents_);}
unsigned long long gtEvents_
float Level1TriggerScalers::gtEventsRate ( ) const
inline

Definition at line 73 of file Level1TriggerScalers.h.

References gtEventsRate_.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

73 { return(gtEventsRate_);}
unsigned int Level1TriggerScalers::gtResets ( ) const
inline

Definition at line 68 of file Level1TriggerScalers.h.

References gtResets_.

Referenced by operator<<().

68 { return(gtResets_);}
std::vector<unsigned int> Level1TriggerScalers::gtTechCounts ( ) const
inline

Definition at line 137 of file Level1TriggerScalers.h.

References gtTechCounts_.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

138  { return(gtTechCounts_);}
std::vector< unsigned int > gtTechCounts_
unsigned long long Level1TriggerScalers::gtTriggers ( ) const
inline

Definition at line 70 of file Level1TriggerScalers.h.

References gtTriggers_.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

70 { return(gtTriggers_);}
unsigned long long gtTriggers_
float Level1TriggerScalers::gtTriggersRate ( ) const
inline

Definition at line 72 of file Level1TriggerScalers.h.

References gtTriggersRate_.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

72 { return(gtTriggersRate_);}
unsigned long long Level1TriggerScalers::l1AsCalibration ( ) const
inline

Definition at line 97 of file Level1TriggerScalers.h.

References l1AsCalibration_.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

98  { return(l1AsCalibration_);}
unsigned long long l1AsCalibration_
unsigned long long Level1TriggerScalers::l1AsPhysics ( ) const
inline

Definition at line 91 of file Level1TriggerScalers.h.

References l1AsPhysics_.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

92  { return(l1AsPhysics_);}
unsigned long long l1AsPhysics_
unsigned long long Level1TriggerScalers::l1AsRandom ( ) const
inline

Definition at line 93 of file Level1TriggerScalers.h.

References l1AsRandom_.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

94  { return(l1AsRandom_);}
unsigned long long l1AsRandom_
unsigned long long Level1TriggerScalers::l1AsTest ( ) const
inline

Definition at line 95 of file Level1TriggerScalers.h.

References l1AsTest_.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

96  { return(l1AsTest_);}
unsigned long long l1AsTest_
unsigned int Level1TriggerScalers::lastEventCounter0 ( ) const
inline

Definition at line 118 of file Level1TriggerScalers.h.

References lastEventCounter0_.

Referenced by operator<<().

118 { return(lastEventCounter0_);}
unsigned int Level1TriggerScalers::lastHardReset ( ) const
inline

Definition at line 119 of file Level1TriggerScalers.h.

References lastHardReset_.

Referenced by operator<<().

119 { return(lastHardReset_);}
unsigned int Level1TriggerScalers::lastOrbitCounter0 ( ) const
inline

Definition at line 114 of file Level1TriggerScalers.h.

References lastOrbitCounter0_.

Referenced by operator<<().

114 { return(lastOrbitCounter0_);}
unsigned int Level1TriggerScalers::lastResync ( ) const
inline

Definition at line 116 of file Level1TriggerScalers.h.

References lastResync_.

Referenced by operator<<().

116 { return(lastResync_);}
unsigned int Level1TriggerScalers::lastStart ( ) const
inline

Definition at line 117 of file Level1TriggerScalers.h.

References lastStart_.

Referenced by operator<<().

117 { return(lastStart_);}
unsigned int Level1TriggerScalers::lastTestEnable ( ) const
inline

Definition at line 115 of file Level1TriggerScalers.h.

References lastTestEnable_.

Referenced by operator<<().

115 { return(lastTestEnable_);}
unsigned int Level1TriggerScalers::lumiSegmentNr ( ) const
inline

Definition at line 64 of file Level1TriggerScalers.h.

References lumiSegmentNr_.

Referenced by operator<<().

64 { return(lumiSegmentNr_);}
unsigned int Level1TriggerScalers::lumiSegmentNrLumiSeg ( ) const
inline

Definition at line 80 of file Level1TriggerScalers.h.

References lumiSegmentNrLumiSeg_.

Referenced by operator<<().

81  { return(lumiSegmentNrLumiSeg_);}
unsigned int lumiSegmentNrLumiSeg_
unsigned int Level1TriggerScalers::lumiSegmentOrbits ( ) const
inline

Definition at line 65 of file Level1TriggerScalers.h.

References lumiSegmentOrbits_.

Referenced by operator<<().

65 { return(lumiSegmentOrbits_);}
std::string Level1TriggerScalers::name ( ) const
inline
int Level1TriggerScalers::operator!= ( const Level1TriggerScalers e) const
inline

inequality operator

Definition at line 144 of file Level1TriggerScalers.h.

144 { return false; }
int Level1TriggerScalers::operator== ( const Level1TriggerScalers e) const
inline

equality operator

Definition at line 141 of file Level1TriggerScalers.h.

141 { return false; }
unsigned int Level1TriggerScalers::orbitNr ( ) const
inline

Definition at line 66 of file Level1TriggerScalers.h.

References orbitNr_.

Referenced by operator<<().

66 { return(orbitNr_);}
double Level1TriggerScalers::percentLS ( unsigned long long  counts)
static

Definition at line 181 of file Level1TriggerScalers.cc.

References firstShortLSRun.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

182 { return(percentLS(counts,firstShortLSRun));}
static double percentLS(unsigned long long counts)
double Level1TriggerScalers::percentLS ( unsigned long long  counts,
int  runNumber 
)
static

Definition at line 184 of file Level1TriggerScalers.cc.

References firstShortLSRun.

186 {
187  double percent;
188  if (( runNumber >= firstShortLSRun ) || ( runNumber <= 1 ))
189  {
190  percent = ((double)counts) / 9342812.16;
191  }
192  else
193  {
194  percent = ((double)counts) / 37371248.64;
195  }
196  if ( percent > 100.0000 ) { percent = 100.0;}
197  return(percent);
198 }
double Level1TriggerScalers::percentLSActive ( unsigned long long  counts)
static

Definition at line 200 of file Level1TriggerScalers.cc.

References firstShortLSRun.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

201 { return(percentLSActive(counts,firstShortLSRun));}
static double percentLSActive(unsigned long long counts)
double Level1TriggerScalers::percentLSActive ( unsigned long long  counts,
int  runNumber 
)
static

Definition at line 203 of file Level1TriggerScalers.cc.

References firstShortLSRun.

205 {
206  double percent;
207  if (( runNumber >= firstShortLSRun ) || ( runNumber <= 1 ))
208  {
209  percent = ((double)counts) / 7361003.52;
210  }
211  else
212  {
213  percent = ((double)counts) / 29444014.08;
214  }
215  if ( percent > 100.0000 ) { percent = 100.0;}
216  return(percent);
217 }
int Level1TriggerScalers::prescaleIndexAlgo ( ) const
inline

Definition at line 74 of file Level1TriggerScalers.h.

References prescaleIndexAlgo_.

Referenced by operator<<().

int Level1TriggerScalers::prescaleIndexTech ( ) const
inline

Definition at line 75 of file Level1TriggerScalers.h.

References prescaleIndexTech_.

Referenced by operator<<().

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

Definition at line 156 of file Level1TriggerScalers.cc.

References firstShortLSRun.

Referenced by Level1TriggerRates::computeRates(), operator<<(), and rateLS().

157 { return(rateLS(counts,firstShortLSRun));}
static double rateLS(unsigned long long counts)
double Level1TriggerScalers::rateLS ( unsigned int  counts)
static

Definition at line 153 of file Level1TriggerScalers.cc.

References firstShortLSRun, and rateLS().

154 { return(rateLS(counts,firstShortLSRun));}
static double rateLS(unsigned long long counts)
double Level1TriggerScalers::rateLS ( unsigned long long  counts,
int  runNumber 
)
static

Definition at line 166 of file Level1TriggerScalers.cc.

References firstShortLSRun, and RPCpg::rate().

168 {
169  double rate;
170  if (( runNumber >= firstShortLSRun ) || ( runNumber <= 1 ))
171  {
172  rate = ((double)counts) / 23.31040958083832;
173  }
174  else
175  {
176  rate = ((double)counts) / 93.24163832335329;
177  }
178  return(rate);
179 }
double rate(double x)
Definition: Constants.cc:3
double Level1TriggerScalers::rateLS ( unsigned int  counts,
int  runNumber 
)
static

Definition at line 159 of file Level1TriggerScalers.cc.

References rateLS().

161 {
162  unsigned long long counts64 = (unsigned long long)counts;
163  return(rateLS(counts64,runNumber));
164 }
static double rateLS(unsigned long long counts)
unsigned int Level1TriggerScalers::sourceID ( ) const
inline

Definition at line 58 of file Level1TriggerScalers.h.

References sourceID_.

Referenced by operator<<().

58 { return(sourceID_);}
unsigned long long Level1TriggerScalers::spare0 ( ) const
inline

Definition at line 120 of file Level1TriggerScalers.h.

References spare0_.

120 { return(spare0_);}
unsigned long long spare0_
unsigned long long Level1TriggerScalers::spare1 ( ) const
inline

Definition at line 121 of file Level1TriggerScalers.h.

References spare1_.

121 { return(spare1_);}
unsigned long long spare1_
unsigned long long Level1TriggerScalers::spare2 ( ) const
inline

Definition at line 122 of file Level1TriggerScalers.h.

References spare2_.

122 { return(spare2_);}
unsigned long long spare2_
unsigned long long Level1TriggerScalers::triggersPhysicsGeneratedFDL ( ) const
inline

Definition at line 83 of file Level1TriggerScalers.h.

References triggersPhysicsGeneratedFDL_.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

unsigned long long triggersPhysicsGeneratedFDL_
unsigned long long Level1TriggerScalers::triggersPhysicsLost ( ) const
inline

Definition at line 85 of file Level1TriggerScalers.h.

References triggersPhysicsLost_.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

86  { return(triggersPhysicsLost_);}
unsigned long long triggersPhysicsLost_
unsigned long long Level1TriggerScalers::triggersPhysicsLostBeamActive ( ) const
inline

Definition at line 87 of file Level1TriggerScalers.h.

References triggersPhysicsLostBeamActive_.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

unsigned long long triggersPhysicsLostBeamActive_
unsigned long long Level1TriggerScalers::triggersPhysicsLostBeamInactive ( ) const
inline

Definition at line 89 of file Level1TriggerScalers.h.

References triggersPhysicsLostBeamInactive_.

Referenced by Level1TriggerRates::computeRates(), and operator<<().

unsigned long long triggersPhysicsLostBeamInactive_
unsigned int Level1TriggerScalers::trigType ( ) const
inline

Definition at line 56 of file Level1TriggerScalers.h.

References trigType_.

Referenced by operator<<().

56 { return(trigType_);}
int Level1TriggerScalers::version ( ) const
inline

Member Data Documentation

unsigned int Level1TriggerScalers::bunchCrossingErrors_
protected

Definition at line 159 of file Level1TriggerScalers.h.

Referenced by bunchCrossingErrors(), and Level1TriggerScalers().

unsigned int Level1TriggerScalers::bunchNumber_
protected

Definition at line 152 of file Level1TriggerScalers.h.

Referenced by bunchNumber(), and Level1TriggerScalers().

TimeSpec Level1TriggerScalers::collectionTime_
protected

Definition at line 154 of file Level1TriggerScalers.h.

Referenced by collectionTime(), and Level1TriggerScalers().

TimeSpec Level1TriggerScalers::collectionTimeLumiSeg_
protected

Definition at line 167 of file Level1TriggerScalers.h.

Referenced by collectionTimeLumiSeg(), and Level1TriggerScalers().

unsigned long long Level1TriggerScalers::deadtime_
protected

Definition at line 177 of file Level1TriggerScalers.h.

Referenced by deadtime(), and Level1TriggerScalers().

unsigned long long Level1TriggerScalers::deadtimeBeamActive_
protected

Definition at line 178 of file Level1TriggerScalers.h.

Referenced by deadtimeBeamActive(), and Level1TriggerScalers().

unsigned long long Level1TriggerScalers::deadtimeBeamActiveCalibration_
protected

Definition at line 180 of file Level1TriggerScalers.h.

Referenced by deadtimeBeamActiveCalibration(), and Level1TriggerScalers().

unsigned long long Level1TriggerScalers::deadtimeBeamActivePartitionController_
protected
unsigned long long Level1TriggerScalers::deadtimeBeamActivePrivateOrbit_
protected

Definition at line 181 of file Level1TriggerScalers.h.

Referenced by deadtimeBeamActivePrivateOrbit(), and Level1TriggerScalers().

unsigned long long Level1TriggerScalers::deadtimeBeamActiveTimeSlot_
protected

Definition at line 183 of file Level1TriggerScalers.h.

Referenced by deadtimeBeamActiveTimeSlot(), and Level1TriggerScalers().

unsigned long long Level1TriggerScalers::deadtimeBeamActiveTriggerRules_
protected

Definition at line 179 of file Level1TriggerScalers.h.

Referenced by deadtimeBeamActiveTriggerRules(), and Level1TriggerScalers().

unsigned int Level1TriggerScalers::eventID_
protected

Definition at line 150 of file Level1TriggerScalers.h.

Referenced by eventID(), and Level1TriggerScalers().

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

Definition at line 185 of file Level1TriggerScalers.h.

Referenced by gtAlgoCounts(), and Level1TriggerScalers().

unsigned long long Level1TriggerScalers::gtEvents_
protected

Definition at line 161 of file Level1TriggerScalers.h.

Referenced by gtEvents(), and Level1TriggerScalers().

float Level1TriggerScalers::gtEventsRate_
protected

Definition at line 163 of file Level1TriggerScalers.h.

Referenced by gtEventsRate(), and Level1TriggerScalers().

unsigned int Level1TriggerScalers::gtResets_
protected

Definition at line 158 of file Level1TriggerScalers.h.

Referenced by gtResets(), and Level1TriggerScalers().

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

Definition at line 186 of file Level1TriggerScalers.h.

Referenced by gtTechCounts(), and Level1TriggerScalers().

unsigned long long Level1TriggerScalers::gtTriggers_
protected

Definition at line 160 of file Level1TriggerScalers.h.

Referenced by gtTriggers(), and Level1TriggerScalers().

float Level1TriggerScalers::gtTriggersRate_
protected

Definition at line 162 of file Level1TriggerScalers.h.

Referenced by gtTriggersRate(), and Level1TriggerScalers().

unsigned long long Level1TriggerScalers::l1AsCalibration_
protected

Definition at line 176 of file Level1TriggerScalers.h.

Referenced by l1AsCalibration(), and Level1TriggerScalers().

unsigned long long Level1TriggerScalers::l1AsPhysics_
protected

Definition at line 173 of file Level1TriggerScalers.h.

Referenced by l1AsPhysics(), and Level1TriggerScalers().

unsigned long long Level1TriggerScalers::l1AsRandom_
protected

Definition at line 174 of file Level1TriggerScalers.h.

Referenced by l1AsRandom(), and Level1TriggerScalers().

unsigned long long Level1TriggerScalers::l1AsTest_
protected

Definition at line 175 of file Level1TriggerScalers.h.

Referenced by l1AsTest(), and Level1TriggerScalers().

unsigned int Level1TriggerScalers::lastEventCounter0_
protected

Definition at line 195 of file Level1TriggerScalers.h.

Referenced by lastEventCounter0(), and Level1TriggerScalers().

unsigned int Level1TriggerScalers::lastHardReset_
protected

Definition at line 196 of file Level1TriggerScalers.h.

Referenced by lastHardReset(), and Level1TriggerScalers().

unsigned int Level1TriggerScalers::lastOrbitCounter0_
protected

Definition at line 191 of file Level1TriggerScalers.h.

Referenced by lastOrbitCounter0(), and Level1TriggerScalers().

unsigned int Level1TriggerScalers::lastResync_
protected

Definition at line 193 of file Level1TriggerScalers.h.

Referenced by lastResync(), and Level1TriggerScalers().

unsigned int Level1TriggerScalers::lastStart_
protected

Definition at line 194 of file Level1TriggerScalers.h.

Referenced by lastStart(), and Level1TriggerScalers().

unsigned int Level1TriggerScalers::lastTestEnable_
protected

Definition at line 192 of file Level1TriggerScalers.h.

Referenced by lastTestEnable(), and Level1TriggerScalers().

unsigned int Level1TriggerScalers::lumiSegmentNr_
protected

Definition at line 155 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and lumiSegmentNr().

unsigned int Level1TriggerScalers::lumiSegmentNrLumiSeg_
protected

Definition at line 168 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and lumiSegmentNrLumiSeg().

unsigned int Level1TriggerScalers::lumiSegmentOrbits_
protected

Definition at line 156 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and lumiSegmentOrbits().

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

Definition at line 38 of file Level1TriggerScalers.h.

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

Definition at line 39 of file Level1TriggerScalers.h.

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

Definition at line 41 of file Level1TriggerScalers.h.

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

Definition at line 40 of file Level1TriggerScalers.h.

unsigned int Level1TriggerScalers::orbitNr_
protected

Definition at line 157 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and orbitNr().

int Level1TriggerScalers::prescaleIndexAlgo_
protected

Definition at line 164 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and prescaleIndexAlgo().

int Level1TriggerScalers::prescaleIndexTech_
protected

Definition at line 165 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and prescaleIndexTech().

unsigned int Level1TriggerScalers::sourceID_
protected

Definition at line 151 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and sourceID().

unsigned long long Level1TriggerScalers::spare0_
protected

Definition at line 199 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and spare0().

unsigned long long Level1TriggerScalers::spare1_
protected

Definition at line 200 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and spare1().

unsigned long long Level1TriggerScalers::spare2_
protected

Definition at line 201 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and spare2().

unsigned long long Level1TriggerScalers::triggersPhysicsGeneratedFDL_
protected

Definition at line 169 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and triggersPhysicsGeneratedFDL().

unsigned long long Level1TriggerScalers::triggersPhysicsLost_
protected

Definition at line 170 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and triggersPhysicsLost().

unsigned long long Level1TriggerScalers::triggersPhysicsLostBeamActive_
protected

Definition at line 171 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and triggersPhysicsLostBeamActive().

unsigned long long Level1TriggerScalers::triggersPhysicsLostBeamInactive_
protected
unsigned int Level1TriggerScalers::trigType_
protected

Definition at line 149 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and trigType().

int Level1TriggerScalers::version_
protected

Definition at line 147 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and version().