#include <DataFormats/Luminosity/interface/LumiSummary.h>
Public Member Functions | |
float | avgInsDelLumi () const |
float | avgInsDelLumiErr () const |
float | avgInsRecLumi () const |
float | avgInsRecLumiErr () const |
float | deadFrac () const |
const std::vector< int > & | hltInput () const |
int | hltInput (int line) const |
const std::vector< int > & | hltRateCounter () const |
int | hltRateCounter (int line) const |
const std::vector< int > & | hltScaler () const |
int | hltScaler (int line) const |
bool | isProductEqual (LumiSummary const &next) |
bool | isValid () const |
const std::vector< int > & | l1RateCounter () const |
int | l1RateCounter (int line) const |
const std::vector< int > & | l1Scaler () const |
int | l1Scaler (int line) const |
float | liveFrac () const |
int | lsNumber () const |
int | lumiSecQual () const |
LumiSummary (float avginsdellumi, float avginsdellumierr, int lumisecqual, float deadfrac, int lsnumber, const std::vector< int > &l1ratecounter, const std::vector< int > &l1scaler, const std::vector< int > &hltratecounter, const std::vector< int > &hltscaler, const std::vector< int > &hltinput) | |
set default constructor | |
LumiSummary () | |
default constructor | |
~LumiSummary () | |
destructor | |
Private Attributes | |
float | avginsdellumi_ |
float | avginsdellumierr_ |
float | deadfrac_ |
std::vector< int > | hltinput_ |
std::vector< int > | hltratecounter_ |
std::vector< int > | hltscaler_ |
std::vector< int > | l1ratecounter_ |
std::vector< int > | l1scaler_ |
int | lsnumber_ |
int | lumisecqual_ |
Definition at line 20 of file LumiSummary.h.
LumiSummary::LumiSummary | ( | ) | [inline] |
default constructor
Definition at line 24 of file LumiSummary.h.
00024 : 00025 avginsdellumi_(-99.), 00026 avginsdellumierr_(-99.), 00027 lumisecqual_(-1), 00028 deadfrac_(-99.), 00029 lsnumber_(-1) 00030 { }
LumiSummary::LumiSummary | ( | float | avginsdellumi, | |
float | avginsdellumierr, | |||
int | lumisecqual, | |||
float | deadfrac, | |||
int | lsnumber, | |||
const std::vector< int > & | l1ratecounter, | |||
const std::vector< int > & | l1scaler, | |||
const std::vector< int > & | hltratecounter, | |||
const std::vector< int > & | hltscaler, | |||
const std::vector< int > & | hltinput | |||
) | [inline] |
set default constructor
Definition at line 33 of file LumiSummary.h.
00038 : 00039 avginsdellumi_(avginsdellumi), avginsdellumierr_(avginsdellumierr), 00040 lumisecqual_(lumisecqual), 00041 deadfrac_(deadfrac), lsnumber_(lsnumber), 00042 l1ratecounter_(l1ratecounter), l1scaler_(l1scaler), 00043 hltratecounter_(hltratecounter), hltscaler_(hltscaler), 00044 hltinput_(hltinput) 00045 { }
LumiSummary::~LumiSummary | ( | ) | [inline] |
float LumiSummary::avgInsDelLumi | ( | ) | const [inline] |
Definition at line 50 of file LumiSummary.h.
References avginsdellumi_.
Referenced by operator<<().
00050 { return avginsdellumi_; }
float LumiSummary::avgInsDelLumiErr | ( | ) | const [inline] |
Definition at line 52 of file LumiSummary.h.
References avginsdellumierr_.
Referenced by operator<<().
00052 { return avginsdellumierr_; }
float LumiSummary::avgInsRecLumi | ( | ) | const [inline] |
Definition at line 78 of file LumiSummary.h.
References avginsdellumi_, and liveFrac().
Referenced by operator<<().
00078 { return avginsdellumi_ * liveFrac(); }
float LumiSummary::avgInsRecLumiErr | ( | ) | const [inline] |
Definition at line 80 of file LumiSummary.h.
References avginsdellumierr_, and liveFrac().
Referenced by operator<<().
00080 { return avginsdellumierr_ * liveFrac(); }
float LumiSummary::deadFrac | ( | ) | const [inline] |
Definition at line 56 of file LumiSummary.h.
References deadfrac_.
Referenced by operator<<().
00056 { return deadfrac_; }
const std::vector<int>& LumiSummary::hltInput | ( | ) | const [inline] |
const std::vector<int>& LumiSummary::hltRateCounter | ( | ) | const [inline] |
Definition at line 74 of file LumiSummary.h.
References hltratecounter_.
00074 {return hltratecounter_;}
Definition at line 68 of file LumiSummary.h.
References hltratecounter_.
Referenced by operator<<().
00068 {return hltratecounter_.at(line);}
const std::vector<int>& LumiSummary::hltScaler | ( | ) | const [inline] |
Definition at line 69 of file LumiSummary.h.
References hltscaler_.
Referenced by operator<<().
00069 {return hltscaler_.at(line);}
bool LumiSummary::isProductEqual | ( | LumiSummary const & | next | ) |
Definition at line 11 of file LumiSummary.cc.
References avginsdellumi_, avginsdellumierr_, deadfrac_, hltinput_, hltratecounter_, hltscaler_, l1ratecounter_, l1scaler_, lsnumber_, and lumisecqual_.
00011 { 00012 return (avginsdellumi_ == next.avginsdellumi_ && 00013 avginsdellumierr_ == next.avginsdellumierr_ && 00014 lumisecqual_ == next.lumisecqual_ && 00015 deadfrac_ == next.deadfrac_ && 00016 lsnumber_ == next.lsnumber_ && 00017 l1ratecounter_ == next.l1ratecounter_ && 00018 l1scaler_ == next.l1scaler_ && 00019 hltratecounter_ == next.hltratecounter_ && 00020 hltscaler_ == next.hltscaler_ && 00021 hltinput_ == next.hltinput_); 00022 }
Definition at line 61 of file LumiSummary.h.
References lsnumber_.
00061 { return (lsnumber_ != -1); }
const std::vector<int>& LumiSummary::l1RateCounter | ( | ) | const [inline] |
Definition at line 72 of file LumiSummary.h.
References l1ratecounter_.
00072 {return l1ratecounter_;}
Definition at line 66 of file LumiSummary.h.
References l1ratecounter_.
Referenced by operator<<().
00066 {return l1ratecounter_.at(line);}
const std::vector<int>& LumiSummary::l1Scaler | ( | ) | const [inline] |
float LumiSummary::liveFrac | ( | ) | const [inline] |
Definition at line 57 of file LumiSummary.h.
Referenced by avgInsRecLumi(), avgInsRecLumiErr(), and operator<<().
int LumiSummary::lsNumber | ( | ) | const [inline] |
Definition at line 59 of file LumiSummary.h.
References lsnumber_.
Referenced by operator<<().
00059 { return lsnumber_; }
int LumiSummary::lumiSecQual | ( | ) | const [inline] |
Definition at line 54 of file LumiSummary.h.
References lumisecqual_.
Referenced by operator<<().
00054 { return lumisecqual_; }
float LumiSummary::avginsdellumi_ [private] |
Definition at line 86 of file LumiSummary.h.
Referenced by avgInsDelLumi(), avgInsRecLumi(), and isProductEqual().
float LumiSummary::avginsdellumierr_ [private] |
Definition at line 87 of file LumiSummary.h.
Referenced by avgInsDelLumiErr(), avgInsRecLumiErr(), and isProductEqual().
float LumiSummary::deadfrac_ [private] |
Definition at line 89 of file LumiSummary.h.
Referenced by deadFrac(), isProductEqual(), and liveFrac().
std::vector<int> LumiSummary::hltinput_ [private] |
std::vector<int> LumiSummary::hltratecounter_ [private] |
std::vector<int> LumiSummary::hltscaler_ [private] |
std::vector<int> LumiSummary::l1ratecounter_ [private] |
std::vector<int> LumiSummary::l1scaler_ [private] |
int LumiSummary::lsnumber_ [private] |
Definition at line 90 of file LumiSummary.h.
Referenced by isProductEqual(), isValid(), and lsNumber().
int LumiSummary::lumisecqual_ [private] |