ATLAS Offline Software
LArHVFraction.h
Go to the documentation of this file.
1 //Dear emacs, this is -*-c++-*-
2 /*
3  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
4 */
5 
6 
12 #include "Gaudi/Property.h"
14 
15 
16 
18  virtual public ILArHVFraction,
19  public AthAlgTool {
20 
21  public:
22  LArHVFraction(const std::string& type,
23  const std::string& name,
24  const IInterface* parent);
25 
26 
27  StatusCode initialize() override;
28 
29 
30  std::pair<double,unsigned> getLArHVFrac(const CaloClusterCellLink* cclc,const EventContext& ctx) const override;
31 
32 private:
33  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this, "LArCablingKey","LArOnOffIdMap","SG Key of LAr Cabling object"};
34 
35  SG::ReadCondHandleKey<ILArHVScaleCorr> m_hvScaleKey{this,"HVScaleCorrKey","LArHVScaleCorr","SG key of HVScaleCorr conditions object"};
36 
37  Gaudi::Property<float> m_threshold{this,"Threshold",0.2,"Threshold to consider a cell 'affected' by HV issues"};
38 
39 };
LArHVFraction::m_hvScaleKey
SG::ReadCondHandleKey< ILArHVScaleCorr > m_hvScaleKey
Definition: LArHVFraction.h:35
LArHVFraction::getLArHVFrac
std::pair< double, unsigned > getLArHVFrac(const CaloClusterCellLink *cclc, const EventContext &ctx) const override
Definition: LArHVFraction.cxx:21
LArOnOffIdMapping.h
ILArHVScaleCorr.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
LArHVFraction
Definition: LArHVFraction.h:19
test_pyathena.parent
parent
Definition: test_pyathena.py:15
LArHVFraction::initialize
StatusCode initialize() override
Definition: LArHVFraction.cxx:15
ReadCondHandleKey.h
LArHVFraction::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArHVFraction.h:33
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
LArHVFraction::LArHVFraction
LArHVFraction(const std::string &type, const std::string &name, const IInterface *parent)
Definition: LArHVFraction.cxx:7
SG::ReadCondHandleKey< LArOnOffIdMapping >
LArHVFraction::m_threshold
Gaudi::Property< float > m_threshold
Definition: LArHVFraction.h:37
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
ILArHVFraction
Definition: ILArHVFraction.h:26
AthAlgTool
Definition: AthAlgTool.h:26
ILArHVFraction.h