ATLAS Offline Software
egammaOQFlagsBuilder.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef EGAMMATOOLS_EGAMMAOQFLAGSBUILDER_H
6 #define EGAMMATOOLS_EGAMMAOQFLAGSBUILDER_H
7 
24 
26 
30 #include "CaloUtils/CaloCellList.h"
31 #include "GaudiKernel/EventContext.h"
32 #include "GaudiKernel/ToolHandle.h"
33 
40 
42 #include "xAODEgamma/EgammaFwd.h"
43 
44 class CaloCellContainer;
45 class HWIdentifier;
46 class LArEM_ID;
47 class CaloCell_ID;
48 
50  : public AthAlgTool
51  , virtual public IegammaOQFlagsBuilder
52 {
53 public:
55  egammaOQFlagsBuilder(const std::string& type,
56  const std::string& name,
57  const IInterface* parent);
58 
60  ~egammaOQFlagsBuilder() = default;
64  virtual StatusCode execute(const EventContext& ctx,
65  xAOD::Egamma& egamma) const;
68 
69 private:
72  this,
73  "LArBadChannelKey",
74  "LArBadChannel",
75  "Key of the LArBadChannelCont CDO"
76  };
77 
79  this,
80  "LArAffectedRegionKey",
81  "LArAffectedRegionInfo",
82  "SG key for affected regions cond object"
83  };
84 
85  ToolHandle<ICaloAffectedTool> m_affectedTool{ this,
86  "affectedTool",
87  "CaloAffectedTool",
88  "CaloAffectedTool" };
89 
92 
94  this,
95  "CellsName",
96  "AllCalo",
97  "Names of container which contain cells"
98  };
99 
100  Gaudi::Property<double> m_QCellCut{ this, "QCellCut", 4000. };
101  Gaudi::Property<double> m_QCellHECCut{ this, "QCellHECCut", 60000. };
102  Gaudi::Property<double> m_QCellSporCut{ this, "QCellSporCut", 4000. };
103  Gaudi::Property<double> m_LArQCut{ this, "LArQCut", 0.8 };
104  Gaudi::Property<double> m_TCut{ this, "TCut", 10.0 };
105  Gaudi::Property<double> m_TCutVsE{ this, "TCutVsE", 2.0 };
106  Gaudi::Property<double> m_RcellCut{ this, "RcellCut", 0.8 };
107 };
108 
109 #endif
110 
CaloAffectedRegionInfoVec.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
EgammaFwd.h
egammaOQFlagsBuilder::m_affKey
SG::ReadCondHandleKey< CaloAffectedRegionInfoVec > m_affKey
Definition: egammaOQFlagsBuilder.h:78
LArEM_ID.h
egammaOQFlagsBuilder::~egammaOQFlagsBuilder
~egammaOQFlagsBuilder()=default
Destructor.
egammaOQFlagsBuilder
Definition: egammaOQFlagsBuilder.h:52
egammaOQFlagsBuilder::m_affectedTool
ToolHandle< ICaloAffectedTool > m_affectedTool
Definition: egammaOQFlagsBuilder.h:85
CaloCellList.h
egammaOQFlagsBuilder::finalize
StatusCode finalize()
finalize method
Definition: egammaOQFlagsBuilder.cxx:197
egammaOQFlagsBuilder::m_LArQCut
Gaudi::Property< double > m_LArQCut
Definition: egammaOQFlagsBuilder.h:103
egammaOQFlagsBuilder::m_QCellSporCut
Gaudi::Property< double > m_QCellSporCut
Definition: egammaOQFlagsBuilder.h:102
egammaOQFlagsBuilder::m_calocellId
const CaloCell_ID * m_calocellId
Definition: egammaOQFlagsBuilder.h:91
egammaOQFlagsBuilder::m_bcContKey
SG::ReadCondHandleKey< LArBadChannelCont > m_bcContKey
Handle to bad-channel CDO.
Definition: egammaOQFlagsBuilder.h:71
IegammaOQFlagsBuilder.h
xAOD::Egamma_v1
Definition: Egamma_v1.h:56
SG::ReadHandleKey< CaloCellContainer >
HWIdentifier
Definition: HWIdentifier.h:13
egammaOQFlagsBuilder::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::Egamma &egamma) const
standard execute method
Definition: egammaOQFlagsBuilder.cxx:203
egammaOQFlagsBuilder::m_emHelper
const LArEM_ID * m_emHelper
Definition: egammaOQFlagsBuilder.h:90
egammaOQFlagsBuilder::m_QCellHECCut
Gaudi::Property< double > m_QCellHECCut
Definition: egammaOQFlagsBuilder.h:101
egammaOQFlagsBuilder::m_RcellCut
Gaudi::Property< double > m_RcellCut
Definition: egammaOQFlagsBuilder.h:106
CaloCell_ID.h
egamma
Definition: egamma.h:58
egammaOQFlagsBuilder::m_TCut
Gaudi::Property< double > m_TCut
Definition: egammaOQFlagsBuilder.h:104
LArBadChannelCont.h
IegammaOQFlagsBuilder
Definition: IegammaOQFlagsBuilder.h:28
LArOnOffIdMapping.h
CaloClusterFwd.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
egammaOQFlagsBuilder::egammaOQFlagsBuilder
egammaOQFlagsBuilder(const std::string &type, const std::string &name, const IInterface *parent)
Default constructor.
Definition: egammaOQFlagsBuilder.cxx:171
ReadCondHandleKey.h
egammaOQFlagsBuilder::m_cellsKey
SG::ReadHandleKey< CaloCellContainer > m_cellsKey
Definition: egammaOQFlagsBuilder.h:93
HWIdentifier.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
egammaOQFlagsBuilder::initialize
StatusCode initialize()
initialize method
Definition: egammaOQFlagsBuilder.cxx:182
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
SG::ReadCondHandleKey
Definition: ReadCondHandleKey.h:20
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
LArEM_ID
Helper class for LArEM offline identifiers.
Definition: LArEM_ID.h:118
AthAlgTool
Definition: AthAlgTool.h:26
ICaloAffectedTool.h
egammaOQFlagsBuilder::m_QCellCut
Gaudi::Property< double > m_QCellCut
Definition: egammaOQFlagsBuilder.h:100
egammaOQFlagsBuilder::m_TCutVsE
Gaudi::Property< double > m_TCutVsE
Definition: egammaOQFlagsBuilder.h:105