#include <LumiInfo.h>
Public Member Functions | |
float | getDeadFraction () const |
const std::vector< float > & | getErrorLumiAllBX () const |
const std::vector< float > & | getInstLumiAllBX () const |
float | getInstLumiBX (int bx) const |
float | getLiveFraction () const |
float | getTotalInstLumi () const |
float | getTotalInstStatError () const |
float | instLuminosityBXSum () const |
float | integLuminosity () const |
bool | isProductEqual (LumiInfo const &next) const |
LumiInfo () | |
LumiInfo (float deadtimeFraction, const std::vector< float > &instLumiByBX) | |
LumiInfo (float deadtimeFraction, const std::vector< float > &instLumiByBX, float totalInstLumi) | |
LumiInfo (float deadtimeFraction, const std::vector< float > &instLumiByBX, float totalInstLumi, const std::vector< float > &instLumiErrByBX, float totalInstLumiErr) | |
float | lumiSectionLength () const |
float | recordedLuminosity () const |
void | setDeadFraction (float deadtimeFraction) |
void | setErrorLumiAllBX (std::vector< float > &errLumiByBX) |
void | setInstLumiAllBX (std::vector< float > &instLumiByBX) |
void | setTotalInstLumi (float totalLumi) |
void | setTotalInstStatError (float statError) |
void | setTotalInstToBXSum () |
~LumiInfo () | |
Private Attributes | |
float | deadtimeFraction_ |
std::vector< float > | instLumiByBX_ |
std::vector< float > | instLumiStatErrByBX_ |
float | totalInstLuminosity_ |
float | totalInstLumiStatErr_ |
LumiInfo has been created by merging the content of the old LumiSummary and LumiDetails classes to streamline the lumi information. Many old member variables have been removed.
Definition at line 28 of file LumiInfo.h.
|
inline |
default constructor
Definition at line 33 of file LumiInfo.h.
References instLumiByBX_, instLumiStatErrByBX_, LumiConstants::numBX, totalInstLuminosity_, and totalInstLumiStatErr_.
|
inline |
constructor with fill; if total algo is the same as summing
Definition at line 46 of file LumiInfo.h.
References instLumiStatErrByBX_, LumiConstants::numBX, setTotalInstToBXSum(), and totalInstLumiStatErr_.
|
inline |
constructor with fill; if total algo DIFFERS from summing
Definition at line 58 of file LumiInfo.h.
References instLumiStatErrByBX_, LumiConstants::numBX, and totalInstLumiStatErr_.
|
inline |
constructor with fill; if total algo DIFFERS from summing and adding including stats
Definition at line 70 of file LumiInfo.h.
|
inline |
|
inline |
Deadtime fraction
Definition at line 112 of file LumiInfo.h.
References deadtimeFraction_.
Referenced by operator<<().
|
inline |
Returns statistical error of instantaneous luminosity for all bunches
Definition at line 104 of file LumiInfo.h.
References instLumiStatErrByBX_.
Referenced by CorrPCCProducer::endLuminosityBlock().
|
inline |
Returns instantaneous luminosity of all bunches
Definition at line 100 of file LumiInfo.h.
References instLumiByBX_.
Referenced by CorrPCCProducer::endLuminosityBlock(), and operator<<().
|
inline |
Returns instantaneous luminosity of one bunch
Definition at line 108 of file LumiInfo.h.
References instLumiByBX_.
|
inline |
Livetime fraction (1-deadtime frac)
Definition at line 116 of file LumiInfo.h.
References deadtimeFraction_.
|
inline |
Returns total instantanious luminosity in hz/uB
Definition at line 92 of file LumiInfo.h.
References totalInstLuminosity_.
Referenced by integLuminosity(), and operator<<().
|
inline |
Returns statistical error on total instantanious luminosity in hz/uB
Definition at line 96 of file LumiInfo.h.
References totalInstLumiStatErr_.
float LumiInfo::instLuminosityBXSum | ( | ) | const |
Returns the sum of the instantaneous luminosity in Hz/uB, which not always the same as totalInstLuminosity_.
Definition at line 8 of file LumiInfo.cc.
References instLumiByBX_.
Referenced by setTotalInstStatError(), and setTotalInstToBXSum().
float LumiInfo::integLuminosity | ( | ) | const |
Integrated (delivered) luminosity (in ub^-1)
Definition at line 17 of file LumiInfo.cc.
References getTotalInstLumi(), and lumiSectionLength().
Referenced by operator<<(), recordedLuminosity(), and setTotalInstStatError().
bool LumiInfo::isProductEqual | ( | LumiInfo const & | next | ) | const |
This method checks if all the essential values of this LumiInfo are the same as the ones in the LumiInfo given as an argument.
Definition at line 34 of file LumiInfo.cc.
References deadtimeFraction_, and instLumiByBX_.
Referenced by setTotalInstStatError().
float LumiInfo::lumiSectionLength | ( | ) | const |
lumi section length in seconds = numorbits*3564*25e-09
Definition at line 29 of file LumiInfo.cc.
References LumiConstants::bxSpacingExact, LumiConstants::numBX, and LumiConstants::numOrbits.
Referenced by integLuminosity(), and setTotalInstStatError().
float LumiInfo::recordedLuminosity | ( | ) | const |
Recorded (integrated) luminosity (in ub^-1) (==integLuminosity * (1-deadtimeFraction))
Definition at line 25 of file LumiInfo.cc.
References deadtimeFraction_, and integLuminosity().
Referenced by operator<<(), and setTotalInstStatError().
|
inline |
void LumiInfo::setErrorLumiAllBX | ( | std::vector< float > & | errLumiByBX | ) |
Set statistical error of instantaneous luminosity for all bunches
Definition at line 43 of file LumiInfo.cc.
References instLumiStatErrByBX_.
Referenced by setTotalInstStatError().
void LumiInfo::setInstLumiAllBX | ( | std::vector< float > & | instLumiByBX | ) |
Set statistical error of instantaneous luminosity for all bunches
Definition at line 39 of file LumiInfo.cc.
References instLumiByBX_.
Referenced by setTotalInstStatError().
|
inline |
Set total instantanious luminosity in hz/uB
Definition at line 130 of file LumiInfo.h.
References totalInstLuminosity_.
Referenced by setTotalInstToBXSum().
|
inline |
Set statistical error on total instantanious luminosity in hz/uB
Definition at line 134 of file LumiInfo.h.
References instLuminosityBXSum(), integLuminosity(), isProductEqual(), lumiSectionLength(), GetRecoTauVFromDQM_MC_cff::next, recordedLuminosity(), setErrorLumiAllBX(), setInstLumiAllBX(), setTotalInstToBXSum(), and totalInstLumiStatErr_.
void LumiInfo::setTotalInstToBXSum | ( | ) |
Resets totalInstLuminosity_ to be the sum of instantaneous luminosity
Definition at line 21 of file LumiInfo.cc.
References instLuminosityBXSum(), and setTotalInstLumi().
Referenced by LumiInfo(), and setTotalInstStatError().
|
private |
Definition at line 177 of file LumiInfo.h.
Referenced by getDeadFraction(), getLiveFraction(), isProductEqual(), recordedLuminosity(), and setDeadFraction().
|
private |
Definition at line 180 of file LumiInfo.h.
Referenced by getInstLumiAllBX(), getInstLumiBX(), instLuminosityBXSum(), isProductEqual(), LumiInfo(), and setInstLumiAllBX().
|
private |
Definition at line 181 of file LumiInfo.h.
Referenced by getErrorLumiAllBX(), LumiInfo(), and setErrorLumiAllBX().
|
private |
Definition at line 178 of file LumiInfo.h.
Referenced by getTotalInstLumi(), LumiInfo(), and setTotalInstLumi().
|
private |
Definition at line 179 of file LumiInfo.h.
Referenced by getTotalInstStatError(), LumiInfo(), and setTotalInstStatError().