CMS 3D CMS Logo

LumiSummary Class Reference

LumiSummary holds Summary information averaged over all bunch crossings for the given luminosity section LS. More...

#include <DataFormats/Luminosity/interface/LumiSummary.h>

List of all members.

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< inthltinput_
std::vector< inthltratecounter_
std::vector< inthltscaler_
std::vector< intl1ratecounter_
std::vector< intl1scaler_
int lsnumber_
int lumisecqual_


Detailed Description

LumiSummary holds Summary information averaged over all bunch crossings for the given luminosity section LS.

Author:
Valerie Halyo David Dagenhart
Version:
1st Version June 7 2007
Id
LumiSummary.h,v 1.4 2008/10/23 21:38:25 wdd Exp

Definition at line 20 of file LumiSummary.h.


Constructor & Destructor Documentation

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]

destructor

Definition at line 48 of file LumiSummary.h.

00048 {}


Member Function Documentation

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]

Definition at line 76 of file LumiSummary.h.

References hltinput_.

00076 {return hltinput_;}

int LumiSummary::hltInput ( int  line  )  const [inline]

Definition at line 70 of file LumiSummary.h.

References hltinput_.

Referenced by operator<<().

00070 {return hltinput_.at(line);}

const std::vector<int>& LumiSummary::hltRateCounter (  )  const [inline]

Definition at line 74 of file LumiSummary.h.

References hltratecounter_.

00074 {return hltratecounter_;}

int LumiSummary::hltRateCounter ( int  line  )  const [inline]

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 75 of file LumiSummary.h.

References hltscaler_.

00075 {return hltscaler_;}

int LumiSummary::hltScaler ( int  line  )  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 }

bool LumiSummary::isValid ( void   )  const [inline]

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_;}

int LumiSummary::l1RateCounter ( int  line  )  const [inline]

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]

Definition at line 73 of file LumiSummary.h.

References l1scaler_.

00073 {return l1scaler_;}

int LumiSummary::l1Scaler ( int  line  )  const [inline]

Definition at line 67 of file LumiSummary.h.

References l1scaler_.

Referenced by operator<<().

00067 {return l1scaler_.at(line);}

float LumiSummary::liveFrac (  )  const [inline]

Definition at line 57 of file LumiSummary.h.

References deadfrac_, and f.

Referenced by avgInsRecLumi(), avgInsRecLumiErr(), and operator<<().

00057 { return (1.0f - deadfrac_); }

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_; }


Member Data Documentation

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]

Definition at line 96 of file LumiSummary.h.

Referenced by hltInput(), and isProductEqual().

std::vector<int> LumiSummary::hltratecounter_ [private]

Definition at line 94 of file LumiSummary.h.

Referenced by hltRateCounter(), and isProductEqual().

std::vector<int> LumiSummary::hltscaler_ [private]

Definition at line 95 of file LumiSummary.h.

Referenced by hltScaler(), and isProductEqual().

std::vector<int> LumiSummary::l1ratecounter_ [private]

Definition at line 92 of file LumiSummary.h.

Referenced by isProductEqual(), and l1RateCounter().

std::vector<int> LumiSummary::l1scaler_ [private]

Definition at line 93 of file LumiSummary.h.

Referenced by isProductEqual(), and l1Scaler().

int LumiSummary::lsnumber_ [private]

Definition at line 90 of file LumiSummary.h.

Referenced by isProductEqual(), isValid(), and lsNumber().

int LumiSummary::lumisecqual_ [private]

Definition at line 88 of file LumiSummary.h.

Referenced by isProductEqual(), and lumiSecQual().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:27:56 2009 for CMSSW by  doxygen 1.5.4