ATLAS Offline Software
RoiUpdaterTool.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef DECISIONHANDLING_ROIUPDATERTOOL_H
6 #define DECISIONHANDLING_ROIUPDATERTOOL_H
7 
9 
14 
21 class RoiUpdaterTool: public extends<AthAlgTool, IRoiUpdaterTool>
22 {
23 public:
24 
25  RoiUpdaterTool(const std::string& type, const std::string& name, const IInterface* parent);
26 
27  virtual ~RoiUpdaterTool() = default;
28 
29  virtual StatusCode initialize() override;
30 
31  std::unique_ptr<TrigRoiDescriptor> execute( const EventContext& ctx ) const override;
32 
33  std::unique_ptr<TrigRoiDescriptor> execute( const IRoiDescriptor* iroi, const EventContext& ctx ) const override;
34 
37  bool m_update;
38 
42  Gaudi::Property<double> m_etaWidth { this, "EtaWidth", -999, "FS Roi eta half width" };
43  Gaudi::Property<double> m_phiWidth { this, "PhiWidth", -999, "FS Roi phi half width" };
44  Gaudi::Property<double> m_zedWidth { this, "ZedWidth", -999, "FS Roi zed half width" };
45 
46  Gaudi::Property<bool> m_useBeamspot { this, "useBeamSpot", false, "use beamspot for zed width" };
48  Gaudi::Property<double> m_nsigma { this, "NSigma", 3, "width (in simga) for the beamspot Roi width" };
49  Gaudi::Property<double> m_fence { this, "Fance", 10, "fence width for the beamspot Roi width" };
50 
51  SG::ReadCondHandleKey<InDet::BeamSpotData> m_beamspotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" };
52 
53 };
54 
55 #endif //> !DECISIONHANDLING_ROIUPDATERTOOL_H
RoiUpdaterTool::m_useBeamspot
Gaudi::Property< bool > m_useBeamspot
Definition: RoiUpdaterTool.h:46
RoiUpdaterTool::m_update
bool m_update
whether to update the RoiDescritor or not - determiuned from whether any of update parameters are set
Definition: RoiUpdaterTool.h:37
RoiUpdaterTool::RoiUpdaterTool
RoiUpdaterTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: RoiUpdaterTool.cxx:11
RoiUpdaterTool::m_phiWidth
Gaudi::Property< double > m_phiWidth
Definition: RoiUpdaterTool.h:43
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IRoiDescriptor
Describes the API of the Region of Ineterest geometry.
Definition: IRoiDescriptor.h:23
IRoiUpdaterTool.h
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
RoiUpdaterTool::m_etaWidth
Gaudi::Property< double > m_etaWidth
don't want these parameters used if not set
Definition: RoiUpdaterTool.h:42
RoiUpdaterTool::m_nsigma
Gaudi::Property< double > m_nsigma
default settings - should be retuned with data
Definition: RoiUpdaterTool.h:48
RoiUpdaterTool::~RoiUpdaterTool
virtual ~RoiUpdaterTool()=default
RoiUpdaterTool
Definition: RoiUpdaterTool.h:22
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
RoiUpdaterTool::m_zedWidth
Gaudi::Property< double > m_zedWidth
Definition: RoiUpdaterTool.h:44
RoiUpdaterTool::m_beamspotKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamspotKey
do we need an mm unit here ?
Definition: RoiUpdaterTool.h:51
SG::ReadCondHandleKey< InDet::BeamSpotData >
RoiUpdaterTool::m_fence
Gaudi::Property< double > m_fence
Definition: RoiUpdaterTool.h:49
RoiUpdaterTool::initialize
virtual StatusCode initialize() override
Definition: RoiUpdaterTool.cxx:17
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
BeamSpotData.h
TrigRoiDescriptorCollection.h
RoiUpdaterTool::execute
std::unique_ptr< TrigRoiDescriptor > execute(const EventContext &ctx) const override
Definition: RoiUpdaterTool.cxx:58