Skip to content
Snippets Groups Projects
Commit 4f8402d0 authored by Walter Lampl's avatar Walter Lampl
Browse files

CaloNoise CDO: Explicitly delete accessor by HWIdentifier

parent 15c174ff
No related branches found
No related tags found
7 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!41882aligning "tracktwoef_nonrnn_chain" with master branch,!41640CaloNoise CDO: Explicitly delete accessor by HWIdentifier
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
#include "CaloIdentifier/CaloCell_ID.h" #include "CaloIdentifier/CaloCell_ID.h"
#include "CaloCondBlobObjs/CaloCondUtils.h" #include "CaloCondBlobObjs/CaloCondUtils.h"
#include "CaloCondBlobObjs/CaloCondBlobFlt.h" #include "CaloCondBlobObjs/CaloCondBlobFlt.h"
#include "Identifier/HWIdentifier.h"
class CaloNoise { class CaloNoise {
///Conditions Data Object holding the calorimeter noise per cell and per gain ///Conditions Data Object holding the calorimeter noise per cell and per gain
...@@ -45,6 +47,12 @@ class CaloNoise { ...@@ -45,6 +47,12 @@ class CaloNoise {
return getNoise(h,gain); return getNoise(h,gain);
} }
/// Safety net: Disallow access by HWIdentifier
float getNoise(const HWIdentifier /*hwid*/, const int /*gain*/) const = delete;
float getEffectiveSigma(const Identifier id, const int gain, const float energy) const { float getEffectiveSigma(const Identifier id, const int gain, const float energy) const {
IdentifierHash h=m_caloCellId->calo_cell_hash(id); IdentifierHash h=m_caloCellId->calo_cell_hash(id);
if (h<m_tileHashOffset) { if (h<m_tileHashOffset) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment