CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes

Level1TriggerScalers Class Reference

#include <Level1TriggerScalers.h>

List of all members.

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)
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
int operator!= (const Level1TriggerScalers &e) const
 inequality operator
int operator== (const Level1TriggerScalers &e) const
 equality operator
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, int runNumber)
static double rateLS (unsigned long long counts)
static double rateLS (unsigned int counts)
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 ( )
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_.

{ 
  Level1TriggerScalers();

  struct ScalersEventRecordRaw_v5 * raw 
    = (struct ScalersEventRecordRaw_v5 *)rawData;

  trigType_     = ( raw->header >> 56 ) &        0xFULL;
  eventID_      = ( raw->header >> 32 ) & 0x00FFFFFFULL;
  sourceID_     = ( raw->header >>  8 ) & 0x00000FFFULL;
  bunchNumber_  = ( raw->header >> 20 ) &      0xFFFULL;

  version_      = raw->version;
  if ( version_ >= 3 )
  {
    collectionTime_.set_tv_sec( static_cast<long>(
      raw->trig.collectionTime_sec));
    collectionTime_.set_tv_nsec( 
      raw->trig.collectionTime_nsec);

    lumiSegmentNr_        = raw->trig.lumiSegmentNr;
    lumiSegmentOrbits_    = raw->trig.lumiSegmentOrbits;
    orbitNr_              = raw->trig.orbitNr;
    gtResets_             = raw->trig.gtResets;
    bunchCrossingErrors_  = raw->trig.bunchCrossingErrors;
    gtTriggers_           = raw->trig.gtTriggers;
    gtEvents_             = raw->trig.gtEvents;
    gtTriggersRate_       = raw->trig.gtTriggersRate;
    gtEventsRate_         = raw->trig.gtEventsRate;
    prescaleIndexAlgo_    = raw->trig.prescaleIndexAlgo;
    prescaleIndexTech_    = raw->trig.prescaleIndexTech;

    collectionTimeLumiSeg_.set_tv_sec( static_cast<long>(
      raw->trig.collectionTimeLumiSeg_sec));
    collectionTimeLumiSeg_.set_tv_nsec( 
      raw->trig.collectionTimeLumiSeg_nsec);

    lumiSegmentNrLumiSeg_           = raw->trig.lumiSegmentNrLumiSeg;
    triggersPhysicsGeneratedFDL_    = raw->trig.triggersPhysicsGeneratedFDL;
    triggersPhysicsLost_            = raw->trig.triggersPhysicsLost;
    triggersPhysicsLostBeamActive_  = raw->trig.triggersPhysicsLostBeamActive;
    triggersPhysicsLostBeamInactive_ = 
      raw->trig.triggersPhysicsLostBeamInactive;

    l1AsPhysics_                    = raw->trig.l1AsPhysics;
    l1AsRandom_                     = raw->trig.l1AsRandom;
    l1AsTest_                       = raw->trig.l1AsTest;
    l1AsCalibration_                = raw->trig.l1AsCalibration;
    deadtime_                       = raw->trig.deadtime;
    deadtimeBeamActive_             = raw->trig.deadtimeBeamActive;
    deadtimeBeamActiveTriggerRules_ = raw->trig.deadtimeBeamActiveTriggerRules;
    deadtimeBeamActiveCalibration_  = raw->trig.deadtimeBeamActiveCalibration;
    deadtimeBeamActivePrivateOrbit_ = raw->trig.deadtimeBeamActivePrivateOrbit;
    deadtimeBeamActivePartitionController_ = 
      raw->trig.deadtimeBeamActivePartitionController;
    deadtimeBeamActiveTimeSlot_ = raw->trig.deadtimeBeamActiveTimeSlot;

    for ( int i=0; i<ScalersRaw::N_L1_TRIGGERS_v1; i++)
    { gtAlgoCounts_.push_back( raw->trig.gtAlgoCounts[i]);}

    for ( int i=0; i<ScalersRaw::N_L1_TEST_TRIGGERS_v1; i++)
    { gtTechCounts_.push_back( raw->trig.gtTechCounts[i]);}

    if ( version_ >= 5 )
    {
      lastOrbitCounter0_ = raw->lastOrbitCounter0;
      lastTestEnable_    = raw->lastTestEnable;
      lastResync_        = raw->lastResync;
      lastStart_         = raw->lastStart;
      lastEventCounter0_ = raw->lastEventCounter0;
      lastHardReset_     = raw->lastHardReset;
      spare0_            = raw->spare[0];
      spare1_            = raw->spare[1];
      spare2_            = raw->spare[2];
    }
    else
    {
      lastOrbitCounter0_ = 0UL;
      lastTestEnable_    = 0UL;
      lastResync_        = 0UL;
      lastStart_         = 0UL;
      lastEventCounter0_ = 0UL;
      lastHardReset_     = 0UL;
      spare0_            = 0ULL;
      spare1_            = 0ULL;
      spare2_            = 0ULL;
    }
  }
}
Level1TriggerScalers::~Level1TriggerScalers ( ) [virtual]

Definition at line 151 of file Level1TriggerScalers.cc.

{ } 

Member Function Documentation

unsigned int Level1TriggerScalers::bunchCrossingErrors ( ) const [inline]

Definition at line 69 of file Level1TriggerScalers.h.

References bunchCrossingErrors_.

Referenced by operator<<().

unsigned int Level1TriggerScalers::bunchNumber ( ) const [inline]

Definition at line 59 of file Level1TriggerScalers.h.

References bunchNumber_.

Referenced by operator<<().

{ return(bunchNumber_);}
struct timespec Level1TriggerScalers::collectionTime ( ) const [inline, read]
struct timespec Level1TriggerScalers::collectionTimeLumiSeg ( ) const [inline, read]
unsigned long long Level1TriggerScalers::deadtime ( ) const [inline]

Definition at line 99 of file Level1TriggerScalers.h.

References deadtime_.

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

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

Definition at line 101 of file Level1TriggerScalers.h.

References deadtimeBeamActive_.

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

  { return(deadtimeBeamActive_);}
unsigned long long Level1TriggerScalers::deadtimeBeamActiveCalibration ( ) const [inline]
unsigned long long Level1TriggerScalers::deadtimeBeamActivePartitionController ( ) const [inline]
unsigned long long Level1TriggerScalers::deadtimeBeamActivePrivateOrbit ( ) const [inline]
unsigned long long Level1TriggerScalers::deadtimeBeamActiveTimeSlot ( ) const [inline]
unsigned long long Level1TriggerScalers::deadtimeBeamActiveTriggerRules ( ) const [inline]
bool Level1TriggerScalers::empty ( ) const [inline]

empty method (= false)

Definition at line 51 of file Level1TriggerScalers.h.

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

Definition at line 57 of file Level1TriggerScalers.h.

References eventID_.

Referenced by operator<<().

{ 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<<().

  { return(gtAlgoCounts_);}
unsigned long long Level1TriggerScalers::gtEvents ( ) const [inline]

Definition at line 71 of file Level1TriggerScalers.h.

References gtEvents_.

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

{ return(gtEvents_);}
float Level1TriggerScalers::gtEventsRate ( ) const [inline]

Definition at line 73 of file Level1TriggerScalers.h.

References gtEventsRate_.

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

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

Definition at line 68 of file Level1TriggerScalers.h.

References gtResets_.

Referenced by operator<<().

{ 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<<().

  { return(gtTechCounts_);}
unsigned long long Level1TriggerScalers::gtTriggers ( ) const [inline]

Definition at line 70 of file Level1TriggerScalers.h.

References gtTriggers_.

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

{ return(gtTriggers_);}
float Level1TriggerScalers::gtTriggersRate ( ) const [inline]

Definition at line 72 of file Level1TriggerScalers.h.

References gtTriggersRate_.

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

{ 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<<().

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

Definition at line 91 of file Level1TriggerScalers.h.

References l1AsPhysics_.

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

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

Definition at line 93 of file Level1TriggerScalers.h.

References l1AsRandom_.

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

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

Definition at line 95 of file Level1TriggerScalers.h.

References l1AsTest_.

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

  { return(l1AsTest_);}
unsigned int Level1TriggerScalers::lastEventCounter0 ( ) const [inline]

Definition at line 118 of file Level1TriggerScalers.h.

References lastEventCounter0_.

Referenced by operator<<().

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

Definition at line 119 of file Level1TriggerScalers.h.

References lastHardReset_.

Referenced by operator<<().

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

Definition at line 114 of file Level1TriggerScalers.h.

References lastOrbitCounter0_.

Referenced by operator<<().

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

Definition at line 116 of file Level1TriggerScalers.h.

References lastResync_.

Referenced by operator<<().

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

Definition at line 117 of file Level1TriggerScalers.h.

References lastStart_.

Referenced by operator<<().

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

Definition at line 115 of file Level1TriggerScalers.h.

References lastTestEnable_.

Referenced by operator<<().

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

Definition at line 64 of file Level1TriggerScalers.h.

References lumiSegmentNr_.

Referenced by operator<<().

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

Definition at line 80 of file Level1TriggerScalers.h.

References lumiSegmentNrLumiSeg_.

Referenced by operator<<().

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

Definition at line 65 of file Level1TriggerScalers.h.

References lumiSegmentOrbits_.

Referenced by operator<<().

{ return(lumiSegmentOrbits_);}
std::string Level1TriggerScalers::name ( ) const [inline]

name method

Definition at line 48 of file Level1TriggerScalers.h.

{ return "Level1TriggerScalers"; }
int Level1TriggerScalers::operator!= ( const Level1TriggerScalers e) const [inline]

inequality operator

Definition at line 144 of file Level1TriggerScalers.h.

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

equality operator

Definition at line 141 of file Level1TriggerScalers.h.

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

Definition at line 66 of file Level1TriggerScalers.h.

References orbitNr_.

Referenced by operator<<().

{ return(orbitNr_);}
double Level1TriggerScalers::percentLS ( unsigned long long  counts,
int  runNumber 
) [static]

Definition at line 184 of file Level1TriggerScalers.cc.

References firstShortLSRun.

{ 
  double percent;
  if (( runNumber >= firstShortLSRun ) || ( runNumber <= 1 ))
  {
    percent = ((double)counts) /  9342812.16;
  }
  else
  {
    percent = ((double)counts) / 37371248.64;
  }
  if ( percent > 100.0000 ) { percent = 100.0;}
  return(percent);
}
double Level1TriggerScalers::percentLS ( unsigned long long  counts) [static]

Definition at line 181 of file Level1TriggerScalers.cc.

References firstShortLSRun.

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

{ return(percentLS(counts,firstShortLSRun));}
double Level1TriggerScalers::percentLSActive ( unsigned long long  counts) [static]

Definition at line 200 of file Level1TriggerScalers.cc.

References firstShortLSRun.

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

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

Definition at line 203 of file Level1TriggerScalers.cc.

References firstShortLSRun.

{ 
  double percent;
  if (( runNumber >= firstShortLSRun ) || ( runNumber <= 1 ))
  {
    percent = ((double)counts) /  7361003.52;
  }
  else
  {
    percent = ((double)counts) / 29444014.08;
  }
  if ( percent > 100.0000 ) { percent = 100.0;}
  return(percent);
}
int Level1TriggerScalers::prescaleIndexAlgo ( ) const [inline]

Definition at line 74 of file Level1TriggerScalers.h.

References prescaleIndexAlgo_.

Referenced by operator<<().

{ return(prescaleIndexAlgo_);}
int Level1TriggerScalers::prescaleIndexTech ( ) const [inline]

Definition at line 75 of file Level1TriggerScalers.h.

References prescaleIndexTech_.

Referenced by operator<<().

{ return(prescaleIndexTech_);}
double Level1TriggerScalers::rateLS ( unsigned int  counts) [static]

Definition at line 153 of file Level1TriggerScalers.cc.

References firstShortLSRun, and rateLS().

{ return(rateLS(counts,firstShortLSRun));}
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().

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

Definition at line 159 of file Level1TriggerScalers.cc.

References rateLS().

{ 
  unsigned long long counts64 = (unsigned long long)counts;
  return(rateLS(counts64,runNumber));
}
double Level1TriggerScalers::rateLS ( unsigned long long  counts,
int  runNumber 
) [static]

Definition at line 166 of file Level1TriggerScalers.cc.

References firstShortLSRun, and scaleCards::rate.

{ 
  double rate;
  if (( runNumber >= firstShortLSRun ) || ( runNumber <= 1 ))
  {
    rate = ((double)counts) / 23.31040958083832;
  }
  else
  {
    rate = ((double)counts) / 93.24163832335329;
  }
  return(rate);
}
unsigned int Level1TriggerScalers::sourceID ( ) const [inline]

Definition at line 58 of file Level1TriggerScalers.h.

References sourceID_.

Referenced by operator<<().

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

Definition at line 120 of file Level1TriggerScalers.h.

References spare0_.

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

Definition at line 121 of file Level1TriggerScalers.h.

References spare1_.

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

Definition at line 122 of file Level1TriggerScalers.h.

References spare2_.

{ return(spare2_);}
unsigned long long Level1TriggerScalers::triggersPhysicsGeneratedFDL ( ) const [inline]
unsigned long long Level1TriggerScalers::triggersPhysicsLost ( ) const [inline]

Definition at line 85 of file Level1TriggerScalers.h.

References triggersPhysicsLost_.

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

  { return(triggersPhysicsLost_);}
unsigned long long Level1TriggerScalers::triggersPhysicsLostBeamActive ( ) const [inline]
unsigned long long Level1TriggerScalers::triggersPhysicsLostBeamInactive ( ) const [inline]
unsigned int Level1TriggerScalers::trigType ( ) const [inline]

Definition at line 56 of file Level1TriggerScalers.h.

References trigType_.

Referenced by operator<<().

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

Definition at line 54 of file Level1TriggerScalers.h.

References version_.

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

{ return(version_);}

Member Data Documentation

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().

Definition at line 154 of file Level1TriggerScalers.h.

Referenced by collectionTime(), and Level1TriggerScalers().

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().

Definition at line 180 of file Level1TriggerScalers.h.

Referenced by deadtimeBeamActiveCalibration(), and Level1TriggerScalers().

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().

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().

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().

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().

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.

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().

Definition at line 164 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and prescaleIndexAlgo().

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().

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().

Definition at line 171 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and triggersPhysicsLostBeamActive().

unsigned int Level1TriggerScalers::trigType_ [protected]

Definition at line 149 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and trigType().

Definition at line 147 of file Level1TriggerScalers.h.

Referenced by Level1TriggerScalers(), and version().