#include <DataFormats/Scalers/interface/LumiScalers.h>
Public Types | |
enum | { nOcc = 2 } |
Public Member Functions | |
unsigned int | bunchNumber () const |
struct timespec | collectionTime () const |
float | deadTimeNormalization () const |
bool | empty () const |
empty method (= false) | |
unsigned int | eventID () const |
float | instantETLumi () const |
float | instantETLumiErr () const |
unsigned char | instantETLumiQlty () const |
float | instantLumi () const |
float | instantLumiErr () const |
unsigned char | instantLumiQlty () const |
std::vector< float > | instantOccLumi () const |
std::vector< float > | instantOccLumiErr () const |
std::vector< unsigned char > | instantOccLumiQlty () const |
float | liveLumiETFill () const |
float | liveLumiETRun () const |
float | liveLumiFill () const |
std::vector< float > | liveLumiOccFill () const |
std::vector< float > | liveLumiOccRun () const |
float | liveLumiRun () const |
float | lumiETFill () const |
float | lumiETRun () const |
float | lumiFill () const |
std::vector< float > | lumiNoise () const |
std::vector< float > | lumiOccFill () const |
std::vector< float > | lumiOccRun () const |
float | lumiRun () const |
LumiScalers (const unsigned char *rawData) | |
LumiScalers () | |
std::string | name () const |
name method | |
float | normalization () const |
unsigned int | numOrbits () const |
int | operator!= (const LumiScalers &e) const |
inequality operator | |
int | operator== (const LumiScalers &e) const |
equality operator | |
unsigned int | sectionNumber () const |
unsigned int | sourceID () const |
unsigned int | startOrbit () const |
unsigned int | trigType () const |
int | version () const |
virtual | ~LumiScalers () |
Protected Attributes | |
unsigned int | bunchNumber_ |
struct timespec | collectionTime_ |
float | deadTimeNormalization_ |
unsigned int | eventID_ |
float | instantETLumi_ |
float | instantETLumiErr_ |
unsigned char | instantETLumiQlty_ |
float | instantLumi_ |
float | instantLumiErr_ |
unsigned char | instantLumiQlty_ |
std::vector< float > | instantOccLumi_ |
std::vector< float > | instantOccLumiErr_ |
std::vector< unsigned char > | instantOccLumiQlty_ |
float | liveLumiETFill_ |
float | liveLumiETRun_ |
float | liveLumiFill_ |
std::vector< float > | liveLumiOccFill_ |
std::vector< float > | liveLumiOccRun_ |
float | liveLumiRun_ |
float | lumiETFill_ |
float | lumiETRun_ |
float | lumiFill_ |
std::vector< float > | lumiNoise_ |
std::vector< float > | lumiOccFill_ |
std::vector< float > | lumiOccRun_ |
float | lumiRun_ |
float | normalization_ |
unsigned int | numOrbits_ |
unsigned int | sectionNumber_ |
unsigned int | sourceID_ |
unsigned int | startOrbit_ |
unsigned int | trigType_ |
int | version_ |
Definition at line 25 of file LumiScalers.h.
anonymous enum |
LumiScalers::LumiScalers | ( | ) |
Definition at line 9 of file LumiScalers.cc.
Referenced by LumiScalers().
00009 : 00010 trigType_(0), 00011 eventID_(0), 00012 sourceID_(0), 00013 bunchNumber_(0), 00014 version_(0), 00015 normalization_(0.0), 00016 deadTimeNormalization_(0.0), 00017 lumiFill_(0.0), 00018 lumiRun_(0.0), 00019 liveLumiFill_(0.0), 00020 liveLumiRun_(0.0), 00021 instantLumi_(0.0), 00022 instantLumiErr_(0.0), 00023 instantLumiQlty_(0), 00024 lumiETFill_(0.0), 00025 lumiETRun_(0.0), 00026 liveLumiETFill_(0.0), 00027 liveLumiETRun_(0.0), 00028 instantETLumi_(0.0), 00029 instantETLumiErr_(0.0), 00030 instantETLumiQlty_(0), 00031 lumiOccFill_(nOcc), 00032 lumiOccRun_(nOcc), 00033 liveLumiOccFill_(nOcc), 00034 liveLumiOccRun_(nOcc), 00035 instantOccLumi_(nOcc), 00036 instantOccLumiErr_(nOcc), 00037 instantOccLumiQlty_(nOcc), 00038 lumiNoise_(nOcc), 00039 sectionNumber_(0), 00040 startOrbit_(0), 00041 numOrbits_(0) 00042 { 00043 }
LumiScalers::LumiScalers | ( | const unsigned char * | rawData | ) |
Definition at line 45 of file LumiScalers.cc.
References bunchNumber_, LumiScalersRaw_v1::collectionTime, collectionTime_, LumiScalersRaw_v1::DeadtimeNormalization, deadTimeNormalization_, eventID_, ScalersEventRecordRaw_v1::header, i, LumiScalersRaw_v1::InstantETLumi, instantETLumi_, LumiScalersRaw_v1::InstantETLumiErr, instantETLumiErr_, LumiScalersRaw_v1::InstantETLumiQlty, instantETLumiQlty_, LumiScalersRaw_v1::InstantLumi, instantLumi_, LumiScalersRaw_v1::InstantLumiErr, instantLumiErr_, LumiScalersRaw_v1::InstantLumiQlty, instantLumiQlty_, LumiScalersRaw_v1::InstantOccLumi, instantOccLumi_, LumiScalersRaw_v1::InstantOccLumiErr, instantOccLumiErr_, LumiScalersRaw_v1::InstantOccLumiQlty, instantOccLumiQlty_, LumiScalersRaw_v1::LiveLumiETFill, liveLumiETFill_, LumiScalersRaw_v1::LiveLumiETRun, liveLumiETRun_, LumiScalersRaw_v1::LiveLumiFill, liveLumiFill_, LumiScalersRaw_v1::LiveLumiOccFill, liveLumiOccFill_, LumiScalersRaw_v1::LiveLumiOccRun, liveLumiOccRun_, LumiScalersRaw_v1::LiveLumiRun, liveLumiRun_, ScalersEventRecordRaw_v1::lumi, LumiScalersRaw_v1::LumiETFill, lumiETFill_, LumiScalersRaw_v1::LumiETRun, lumiETRun_, LumiScalersRaw_v1::LumiFill, lumiFill_, LumiScalersRaw_v1::lumiNoise, lumiNoise_, LumiScalersRaw_v1::LumiOccFill, lumiOccFill_, LumiScalersRaw_v1::LumiOccRun, lumiOccRun_, LumiScalersRaw_v1::LumiRun, lumiRun_, LumiScalers(), ScalersRaw::N_LUMI_OCC_v1, LumiScalersRaw_v1::Normalization, normalization_, LumiScalersRaw_v1::numOrbits, numOrbits_, LumiScalersRaw_v1::sectionNumber, sectionNumber_, sourceID_, LumiScalersRaw_v1::startOrbit, startOrbit_, trigType_, ScalersEventRecordRaw_v1::version, and version_.
00046 { 00047 LumiScalers(); 00048 00049 ScalersEventRecordRaw_v1 * raw 00050 = (struct ScalersEventRecordRaw_v1 *)rawData; 00051 trigType_ = ( raw->header >> 56 ) & 0xFULL; 00052 eventID_ = ( raw->header >> 32 ) & 0x00FFFFFFULL; 00053 sourceID_ = ( raw->header >> 8 ) & 0x00000FFFULL; 00054 bunchNumber_ = ( raw->header >> 20 ) & 0xFFFULL; 00055 00056 version_ = raw->version; 00057 if ( version_ >= 1 ) 00058 { 00059 collectionTime_.tv_sec = raw->lumi.collectionTime.tv_sec; 00060 collectionTime_.tv_nsec = raw->lumi.collectionTime.tv_nsec; 00061 deadTimeNormalization_ = raw->lumi.DeadtimeNormalization; 00062 normalization_ = raw->lumi.Normalization; 00063 lumiFill_ = raw->lumi.LumiFill; 00064 lumiRun_ = raw->lumi.LumiRun; 00065 liveLumiFill_ = raw->lumi.LiveLumiFill; 00066 liveLumiRun_ = raw->lumi.LiveLumiRun; 00067 instantLumi_ = raw->lumi.InstantLumi; 00068 instantLumiErr_ = raw->lumi.InstantLumiErr; 00069 instantLumiQlty_ = raw->lumi.InstantLumiQlty; 00070 lumiETFill_ = raw->lumi.LumiETFill; 00071 lumiETRun_ = raw->lumi.LumiETRun; 00072 liveLumiETFill_ = raw->lumi.LiveLumiETFill; 00073 liveLumiETRun_ = raw->lumi.LiveLumiETRun; 00074 instantETLumi_ = raw->lumi.InstantETLumi; 00075 instantETLumiErr_ = raw->lumi.InstantETLumiErr; 00076 instantETLumiQlty_ = raw->lumi.InstantETLumiQlty; 00077 for ( int i=0; i<ScalersRaw::N_LUMI_OCC_v1; i++) 00078 { 00079 lumiOccFill_.push_back(raw->lumi.LumiOccFill[i]); 00080 lumiOccRun_.push_back(raw->lumi.LumiOccRun[i]); 00081 liveLumiOccFill_.push_back(raw->lumi.LiveLumiOccFill[i]); 00082 liveLumiOccRun_.push_back(raw->lumi.LiveLumiOccRun[i]); 00083 instantOccLumi_.push_back(raw->lumi.InstantOccLumi[i]); 00084 instantOccLumiErr_.push_back(raw->lumi.InstantOccLumiErr[i]); 00085 instantOccLumiQlty_.push_back(raw->lumi.InstantOccLumiQlty[i]); 00086 lumiNoise_.push_back(raw->lumi.lumiNoise[i]); 00087 } 00088 sectionNumber_ = raw->lumi.sectionNumber; 00089 startOrbit_ = raw->lumi.startOrbit; 00090 numOrbits_ = raw->lumi.numOrbits; 00091 } 00092 }
LumiScalers::~LumiScalers | ( | ) | [virtual] |
unsigned int LumiScalers::bunchNumber | ( | ) | const [inline] |
Definition at line 47 of file LumiScalers.h.
References bunchNumber_.
Referenced by operator<<().
00047 { return(bunchNumber_);}
struct timespec LumiScalers::collectionTime | ( | ) | const [inline, read] |
Definition at line 50 of file LumiScalers.h.
References collectionTime_.
Referenced by operator<<().
00050 { return(collectionTime_);}
float LumiScalers::deadTimeNormalization | ( | ) | const [inline] |
Definition at line 52 of file LumiScalers.h.
References deadTimeNormalization_.
Referenced by operator<<().
00053 { return(deadTimeNormalization_);}
bool LumiScalers::empty | ( | ) | const [inline] |
unsigned int LumiScalers::eventID | ( | ) | const [inline] |
Definition at line 45 of file LumiScalers.h.
References eventID_.
Referenced by operator<<().
00045 { return(eventID_);}
float LumiScalers::instantETLumi | ( | ) | const [inline] |
Definition at line 67 of file LumiScalers.h.
References instantETLumi_.
Referenced by operator<<().
00067 { return(instantETLumi_);}
float LumiScalers::instantETLumiErr | ( | ) | const [inline] |
Definition at line 68 of file LumiScalers.h.
References instantETLumiErr_.
Referenced by operator<<().
00068 { return(instantETLumiErr_);}
unsigned char LumiScalers::instantETLumiQlty | ( | ) | const [inline] |
Definition at line 69 of file LumiScalers.h.
References instantETLumiQlty_.
Referenced by operator<<().
00069 { return(instantETLumiQlty_);}
float LumiScalers::instantLumi | ( | ) | const [inline] |
Definition at line 59 of file LumiScalers.h.
References instantLumi_.
Referenced by operator<<().
00059 { return(instantLumi_);}
float LumiScalers::instantLumiErr | ( | ) | const [inline] |
Definition at line 60 of file LumiScalers.h.
References instantLumiErr_.
Referenced by operator<<().
00060 { return(instantLumiErr_);}
unsigned char LumiScalers::instantLumiQlty | ( | ) | const [inline] |
Definition at line 61 of file LumiScalers.h.
References instantLumiQlty_.
Referenced by operator<<().
00061 { return(instantLumiQlty_);}
std::vector<float> LumiScalers::instantOccLumi | ( | ) | const [inline] |
Definition at line 79 of file LumiScalers.h.
References instantOccLumi_.
Referenced by operator<<().
00080 { return(instantOccLumi_);}
std::vector<float> LumiScalers::instantOccLumiErr | ( | ) | const [inline] |
Definition at line 81 of file LumiScalers.h.
References instantOccLumiErr_.
Referenced by operator<<().
00082 { return(instantOccLumiErr_);}
std::vector<unsigned char> LumiScalers::instantOccLumiQlty | ( | ) | const [inline] |
Definition at line 83 of file LumiScalers.h.
References instantOccLumiQlty_.
Referenced by operator<<().
00084 { return(instantOccLumiQlty_);}
float LumiScalers::liveLumiETFill | ( | ) | const [inline] |
Definition at line 65 of file LumiScalers.h.
References liveLumiETFill_.
Referenced by operator<<().
00065 { return(liveLumiETFill_);}
float LumiScalers::liveLumiETRun | ( | ) | const [inline] |
Definition at line 66 of file LumiScalers.h.
References liveLumiETRun_.
Referenced by operator<<().
00066 { return(liveLumiETRun_);}
float LumiScalers::liveLumiFill | ( | ) | const [inline] |
Definition at line 57 of file LumiScalers.h.
References liveLumiFill_.
Referenced by operator<<().
00057 { return(liveLumiFill_);}
std::vector<float> LumiScalers::liveLumiOccFill | ( | ) | const [inline] |
Definition at line 75 of file LumiScalers.h.
References liveLumiOccFill_.
Referenced by operator<<().
00076 { return(liveLumiOccFill_);}
std::vector<float> LumiScalers::liveLumiOccRun | ( | ) | const [inline] |
Definition at line 77 of file LumiScalers.h.
References liveLumiOccRun_.
Referenced by operator<<().
00078 { return(liveLumiOccRun_);}
float LumiScalers::liveLumiRun | ( | ) | const [inline] |
Definition at line 58 of file LumiScalers.h.
References liveLumiRun_.
Referenced by operator<<().
00058 { return(liveLumiRun_);}
float LumiScalers::lumiETFill | ( | ) | const [inline] |
float LumiScalers::lumiETRun | ( | ) | const [inline] |
float LumiScalers::lumiFill | ( | ) | const [inline] |
Definition at line 55 of file LumiScalers.h.
References lumiFill_.
Referenced by operator<<().
00055 { return(lumiFill_);}
std::vector<float> LumiScalers::lumiNoise | ( | ) | const [inline] |
Definition at line 85 of file LumiScalers.h.
References lumiNoise_.
Referenced by operator<<().
00085 { return(lumiNoise_);}
std::vector<float> LumiScalers::lumiOccFill | ( | ) | const [inline] |
Definition at line 71 of file LumiScalers.h.
References lumiOccFill_.
Referenced by operator<<().
00072 { return(lumiOccFill_);}
std::vector<float> LumiScalers::lumiOccRun | ( | ) | const [inline] |
Definition at line 73 of file LumiScalers.h.
References lumiOccRun_.
Referenced by operator<<().
00074 { return(lumiOccRun_);}
float LumiScalers::lumiRun | ( | ) | const [inline] |
Definition at line 56 of file LumiScalers.h.
References lumiRun_.
Referenced by operator<<().
00056 { return(lumiRun_);}
std::string LumiScalers::name | ( | ) | const [inline] |
float LumiScalers::normalization | ( | ) | const [inline] |
Definition at line 51 of file LumiScalers.h.
References normalization_.
Referenced by operator<<().
00051 { return(normalization_);}
unsigned int LumiScalers::numOrbits | ( | ) | const [inline] |
Definition at line 89 of file LumiScalers.h.
References numOrbits_.
Referenced by operator<<().
00089 { return(numOrbits_);}
int LumiScalers::operator!= | ( | const LumiScalers & | e | ) | const [inline] |
int LumiScalers::operator== | ( | const LumiScalers & | e | ) | const [inline] |
unsigned int LumiScalers::sectionNumber | ( | ) | const [inline] |
Definition at line 87 of file LumiScalers.h.
References sectionNumber_.
Referenced by operator<<().
00087 { return(sectionNumber_);}
unsigned int LumiScalers::sourceID | ( | ) | const [inline] |
Definition at line 46 of file LumiScalers.h.
References sourceID_.
Referenced by operator<<().
00046 { return(sourceID_);}
unsigned int LumiScalers::startOrbit | ( | ) | const [inline] |
Definition at line 88 of file LumiScalers.h.
References startOrbit_.
Referenced by operator<<().
00088 { return(startOrbit_);}
unsigned int LumiScalers::trigType | ( | ) | const [inline] |
Definition at line 44 of file LumiScalers.h.
References trigType_.
Referenced by operator<<().
00044 { return(trigType_);}
int LumiScalers::version | ( | ) | const [inline] |
Definition at line 49 of file LumiScalers.h.
References version_.
Referenced by operator<<().
00049 { return(version_);}
unsigned int LumiScalers::bunchNumber_ [protected] |
struct timespec LumiScalers::collectionTime_ [read, protected] |
float LumiScalers::deadTimeNormalization_ [protected] |
Definition at line 109 of file LumiScalers.h.
Referenced by deadTimeNormalization(), and LumiScalers().
unsigned int LumiScalers::eventID_ [protected] |
float LumiScalers::instantETLumi_ [protected] |
float LumiScalers::instantETLumiErr_ [protected] |
unsigned char LumiScalers::instantETLumiQlty_ [protected] |
float LumiScalers::instantLumi_ [protected] |
float LumiScalers::instantLumiErr_ [protected] |
unsigned char LumiScalers::instantLumiQlty_ [protected] |
std::vector<float> LumiScalers::instantOccLumi_ [protected] |
std::vector<float> LumiScalers::instantOccLumiErr_ [protected] |
std::vector<unsigned char> LumiScalers::instantOccLumiQlty_ [protected] |
Definition at line 134 of file LumiScalers.h.
Referenced by instantOccLumiQlty(), and LumiScalers().
float LumiScalers::liveLumiETFill_ [protected] |
float LumiScalers::liveLumiETRun_ [protected] |
float LumiScalers::liveLumiFill_ [protected] |
std::vector<float> LumiScalers::liveLumiOccFill_ [protected] |
std::vector<float> LumiScalers::liveLumiOccRun_ [protected] |
float LumiScalers::liveLumiRun_ [protected] |
float LumiScalers::lumiETFill_ [protected] |
float LumiScalers::lumiETRun_ [protected] |
float LumiScalers::lumiFill_ [protected] |
std::vector<float> LumiScalers::lumiNoise_ [protected] |
std::vector<float> LumiScalers::lumiOccFill_ [protected] |
std::vector<float> LumiScalers::lumiOccRun_ [protected] |
float LumiScalers::lumiRun_ [protected] |
float LumiScalers::normalization_ [protected] |
unsigned int LumiScalers::numOrbits_ [protected] |
unsigned int LumiScalers::sectionNumber_ [protected] |
unsigned int LumiScalers::sourceID_ [protected] |
unsigned int LumiScalers::startOrbit_ [protected] |
unsigned int LumiScalers::trigType_ [protected] |
int LumiScalers::version_ [protected] |