ATLAS Offline Software
|
#include <RoiUpdaterTool.h>
Public Member Functions | |
RoiUpdaterTool (const std::string &type, const std::string &name, const IInterface *parent) | |
virtual | ~RoiUpdaterTool ()=default |
virtual StatusCode | initialize () override |
std::unique_ptr< TrigRoiDescriptor > | execute (const EventContext &ctx) const override |
std::unique_ptr< TrigRoiDescriptor > | execute (const IRoiDescriptor *iroi, const EventContext &ctx) const override |
Public Attributes | |
bool | m_update |
whether to update the RoiDescritor or not - determiuned from whether any of update parameters are set More... | |
Gaudi::Property< double > | m_etaWidth { this, "EtaWidth", -999, "FS Roi eta half width" } |
don't want these parameters used if not set More... | |
Gaudi::Property< double > | m_phiWidth { this, "PhiWidth", -999, "FS Roi phi half width" } |
Gaudi::Property< double > | m_zedWidth { this, "ZedWidth", -999, "FS Roi zed half width" } |
Gaudi::Property< bool > | m_useBeamspot { this, "useBeamSpot", false, "use beamspot for zed width" } |
Gaudi::Property< double > | m_nsigma { this, "NSigma", 3, "width (in simga) for the beamspot Roi width" } |
default settings - should be retuned with data More... | |
Gaudi::Property< double > | m_fence { this, "Fance", 10, "fence width for the beamspot Roi width" } |
SG::ReadCondHandleKey< InDet::BeamSpotData > | m_beamspotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" } |
do we need an mm unit here ? More... | |
Tool to create a new RoiDescriptor from an existing input5 RoiDescriptor
Definition at line 21 of file RoiUpdaterTool.h.
|
virtualdefault |
|
override |
create initial dummy FS Roi here - used to define the new Roi and is then discarded
Definition at line 58 of file RoiUpdaterTool.cxx.
|
override |
if we don't want to update, why are we even including trhe RoiUIpdater ??? will return a unique_ptr - if that causes issues down the line, so be it
should not update a composite Roi - or do we want the constituents updated ??? or what ??? Return a copy ? Who will own this stuff ?? why are you calling the updater on a composite Roi in any case ? will return a unique_ptr - if that causes issues down the line, so be it
NB: the correct mapping of phi to the range -M_PIF < phi < M_PIF is done in the RoiDescriptor constuctor so we don't bother here
do not prevent the beamspot from increasing the size of the Roi
limit to old range - no point going well outside the interaction region
don't use an actual fullscan Roi, since the parameters have been changed so may not actually include all detector elements - the FS flag, prevents the RegionSelector from actually testing the detector element containment, so could create a "fullscan" Roi with only a small number of detector elements. If you want genuine FS behaviour for the RS, use an FS Roi. If you want a restricted Roi for non RS use, even if it is FS for a specific subdetector, use a restricted Roi
Definition at line 65 of file RoiUpdaterTool.cxx.
|
overridevirtual |
Definition at line 17 of file RoiUpdaterTool.cxx.
SG::ReadCondHandleKey<InDet::BeamSpotData> RoiUpdaterTool::m_beamspotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" } |
do we need an mm unit here ?
Definition at line 51 of file RoiUpdaterTool.h.
Gaudi::Property<double> RoiUpdaterTool::m_etaWidth { this, "EtaWidth", -999, "FS Roi eta half width" } |
don't want these parameters used if not set
Definition at line 42 of file RoiUpdaterTool.h.
Gaudi::Property<double> RoiUpdaterTool::m_fence { this, "Fance", 10, "fence width for the beamspot Roi width" } |
Definition at line 49 of file RoiUpdaterTool.h.
Gaudi::Property<double> RoiUpdaterTool::m_nsigma { this, "NSigma", 3, "width (in simga) for the beamspot Roi width" } |
default settings - should be retuned with data
Definition at line 48 of file RoiUpdaterTool.h.
Gaudi::Property<double> RoiUpdaterTool::m_phiWidth { this, "PhiWidth", -999, "FS Roi phi half width" } |
Definition at line 43 of file RoiUpdaterTool.h.
bool RoiUpdaterTool::m_update |
whether to update the RoiDescritor or not - determiuned from whether any of update parameters are set
Definition at line 37 of file RoiUpdaterTool.h.
Gaudi::Property<bool> RoiUpdaterTool::m_useBeamspot { this, "useBeamSpot", false, "use beamspot for zed width" } |
Definition at line 46 of file RoiUpdaterTool.h.
Gaudi::Property<double> RoiUpdaterTool::m_zedWidth { this, "ZedWidth", -999, "FS Roi zed half width" } |
Definition at line 44 of file RoiUpdaterTool.h.