|
ATLAS Offline Software
|
Go to the documentation of this file.
12 m_muTool(
"LumiBlockMuTool")
32 return StatusCode::SUCCESS;
45 return StatusCode::FAILURE;
49 unsigned int bcid = eventInfo->
bcid();
66 ATH_MSG_INFO(
"LB: " <<
lumiblock <<
" BCID: " <<
bcid <<
" <mu>: " << avgmu <<
" mu: " << instmu <<
" livefraction: " << live <<
" lumiavg livefraction: " << lumilive );
68 avgmu =
m_muTool->averageInteractionsPerCrossing(ctx);
69 instmu =
m_muTool->actualInteractionsPerCrossing(ctx);
70 ATH_MSG_INFO(
"From muTool - <mu>: " << avgmu <<
" mu: " << instmu);
74 ATH_MSG_INFO(
"From EvInfo - <mu>: " << avgmu <<
" mu: " << instmu);
77 return StatusCode::SUCCESS;
const std::vector< float > & lbLuminosityPerBCIDVector() const
SG::ReadCondHandleKey< TrigLiveFractionCondData > m_trigLiveFractionCondDataKey
virtual StatusCode initialize() override
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
LumiBlockTester(const std::string &name, ISvcLocator *pSvcLocator)
const std::string & key() const
Return the StoreGate ID for the referenced object.
float lbAverageLiveFraction(bool highPriority=true) const
Luminosity-averaged live fraction over all physics BCIDs.
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
::StatusCode StatusCode
StatusCode definition for legacy code.
ToolHandle< ILumiBlockMuTool > m_muTool
#define CHECK(...)
Evaluate an expression and check for errors.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
uint32_t lumiBlock() const
The current event's luminosity block number.
const std::vector< float > & l1LiveFractionVector(bool highPriority=true) const
Return vector with all BCIDs indexed by BCID number.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
float averageInteractionsPerCrossing() const
Average interactions per crossing for all BCIDs - for out-of-time pile-up.
float lbAverageInteractionsPerCrossing() const
Helpers for checking error return status codes and reporting errors.
StatusCode initialize(bool used=true)
setEventNumber setTimeStamp bcid
SG::ReadCondHandleKey< LuminosityCondData > m_luminosityCondDataKey
virtual StatusCode execute(const EventContext &ctx) const override
uint32_t bcid() const
The bunch crossing ID of the event.
float actualInteractionsPerCrossing() const
Average interactions per crossing for the current BCID - for in-time pile-up.