21 return StatusCode::SUCCESS;
25 return StatusCode::SUCCESS;
36 const int bcid = ei->bcid();
37 float avgInteractionsPerCrossingMC = 1;
39 avgInteractionsPerCrossingMC = ei->averageInteractionsPerCrossing();
50 bcidLumi->calc (bcid, avgInteractionsPerCrossingMC, avgEshift);
51 auto result = std::make_unique<CaloBCIDAverage>(mcSym, std::move(avgEshift));
54 std::cout <<
"BCIDAlg corrections for BCID : " << bcid << std::endl;
55 for (
size_t i = 0; i < mcSym->
symIds().size(); i++) {
57 float eshift=avgEshift[i];
58 if ( fabsf(1e9*(eshift)) > 0.001 ){
60 std::cout <<
"Alg BCID " << bcid <<
", cell [" << id32 <<
"] = " <<(double)eshift << std::endl;
68 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Header file to be included by clients of the Monitored infrastructure.
std::vector with extra alignment.
SG::ReadCondHandleKey< CaloBCIDLumi > m_bcidLumiKey
virtual StatusCode finalize() override
ToolHandle< GenericMonitoringTool > m_monTool
virtual StatusCode initialize() override
SG::ReadCondHandleKey< LArMCSym > m_mcSym
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
virtual StatusCode execute(const EventContext &ctx) const override
Gaudi::Property< bool > m_isSC
Property: m_isSC.
SG::WriteHandleKey< CaloBCIDAverage > m_bcidAvgKey
value_type get_compact() const
Get the compact id.
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
Helper class to handle z-phi symmetry of calibration constants in MC.
const std::vector< HWIdentifier > & symIds() const
Return the list of symmetric hashes.
Group of local monitoring quantities and retain correlation when filling histograms
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
@ IS_SIMULATION
true: simulation, false: data
aligned_vector< T, 64 > vec_aligned_vector
A std::vector with alignment sufficient for any vector instructions on this platform.