#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 43 of file LumiInfo.h.
References instLumiStatErrByBX_, LumiConstants::numBX, setTotalInstToBXSum(), and totalInstLumiStatErr_.
|
inline |
constructor with fill; if total algo DIFFERS from summing
Definition at line 53 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 62 of file LumiInfo.h.
|
inline |
|
inline |
|
inline |
Returns statistical error of instantaneous luminosity for all bunches
Definition at line 97 of file LumiInfo.h.
References instLumiStatErrByBX_.
Referenced by CorrPCCProducer::endLuminosityBlock().
|
inline |
Returns instantaneous luminosity of all bunches
Definition at line 93 of file LumiInfo.h.
References instLumiByBX_.
Referenced by CorrPCCProducer::endLuminosityBlock().
|
inline |
Returns instantaneous luminosity of one bunch
Definition at line 101 of file LumiInfo.h.
References l1GtPatternGenerator_cfi::bx, and instLumiByBX_.
|
inline |
Livetime fraction (1-deadtime frac)
Definition at line 109 of file LumiInfo.h.
References deadtimeFraction_.
|
inline |
Returns total instantanious luminosity in hz/uB
Definition at line 85 of file LumiInfo.h.
References totalInstLuminosity_.
Referenced by integLuminosity().
|
inline |
Returns statistical error on total instantanious luminosity in hz/uB
Definition at line 89 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 setTotalInstToBXSum().
float LumiInfo::integLuminosity | ( | ) | const |
Integrated (delivered) luminosity (in ub^-1)
Definition at line 16 of file LumiInfo.cc.
References getTotalInstLumi(), and lumiSectionLength().
Referenced by recordedLuminosity().
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 27 of file LumiInfo.cc.
References deadtimeFraction_, instLumiByBX_, and GetRecoTauVFromDQM_MC_cff::next.
float LumiInfo::lumiSectionLength | ( | ) | const |
lumi section length in seconds = numorbits*3564*25e-09
Definition at line 22 of file LumiInfo.cc.
References LumiConstants::bxSpacingExact, LumiConstants::numBX, and LumiConstants::numOrbits.
Referenced by integLuminosity().
float LumiInfo::recordedLuminosity | ( | ) | const |
Recorded (integrated) luminosity (in ub^-1) (==integLuminosity * (1-deadtimeFraction))
Definition at line 20 of file LumiInfo.cc.
References deadtimeFraction_, and integLuminosity().
|
inline |
void LumiInfo::setErrorLumiAllBX | ( | std::vector< float > & | errLumiByBX | ) |
Set statistical error of instantaneous luminosity for all bunches
Definition at line 35 of file LumiInfo.cc.
References instLumiStatErrByBX_.
Referenced by RawPCCProducer::globalEndLuminosityBlockProduce().
void LumiInfo::setInstLumiAllBX | ( | std::vector< float > & | instLumiByBX | ) |
Set statistical error of instantaneous luminosity for all bunches
Definition at line 31 of file LumiInfo.cc.
References instLumiByBX_.
Referenced by RawPCCProducer::globalEndLuminosityBlockProduce().
|
inline |
Set total instantanious luminosity in hz/uB
Definition at line 122 of file LumiInfo.h.
References totalInstLuminosity_.
Referenced by RawPCCProducer::globalEndLuminosityBlockProduce(), and setTotalInstToBXSum().
|
inline |
Set statistical error on total instantanious luminosity in hz/uB
Definition at line 126 of file LumiInfo.h.
References totalInstLumiStatErr_.
Referenced by RawPCCProducer::globalEndLuminosityBlockProduce().
void LumiInfo::setTotalInstToBXSum | ( | ) |
Resets totalInstLuminosity_ to be the sum of instantaneous luminosity
Definition at line 18 of file LumiInfo.cc.
References instLuminosityBXSum(), and setTotalInstLumi().
Referenced by LumiInfo().
|
private |
Definition at line 167 of file LumiInfo.h.
Referenced by getDeadFraction(), getLiveFraction(), isProductEqual(), recordedLuminosity(), and setDeadFraction().
|
private |
Definition at line 170 of file LumiInfo.h.
Referenced by getInstLumiAllBX(), getInstLumiBX(), instLuminosityBXSum(), isProductEqual(), LumiInfo(), and setInstLumiAllBX().
|
private |
Definition at line 171 of file LumiInfo.h.
Referenced by getErrorLumiAllBX(), LumiInfo(), and setErrorLumiAllBX().
|
private |
Definition at line 168 of file LumiInfo.h.
Referenced by getTotalInstLumi(), LumiInfo(), and setTotalInstLumi().
|
private |
Definition at line 169 of file LumiInfo.h.
Referenced by getTotalInstStatError(), LumiInfo(), and setTotalInstStatError().