|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "GaudiKernel/IToolSvc.h"
10 #include "GaudiKernel/StatusCode.h"
43 return StatusCode::FAILURE;
51 return StatusCode::SUCCESS;
64 std::unique_ptr<TrigRoiDescriptorCollection> roiCollection = std::make_unique<TrigRoiDescriptorCollection>();
75 ATH_MSG_ERROR(
"No track container found, the Track RoI updater should not be scheduled");
76 return StatusCode::FAILURE;
78 ATH_MSG_DEBUG(
"Found " << foundTracks->
size() <<
" FTF tracks, updating the RoI");
88 float eta = roiDescriptor->
eta();
89 float phi = roiDescriptor->
phi();
91 float zed = roiDescriptor->
zed();
92 float zedMinus = roiDescriptor->
zedMinus();
93 float zedPlus = roiDescriptor->
zedPlus();
109 ATH_MSG_WARNING(
"Track summary not available in RoI updater" <<
name() <<
". Skipping track...");
116 if(nPix < 0) nPix = 0;
123 if(nPixHoles < 0) nPixHoles = 0;
159 outputRoIHandle->
push_back(std::make_unique<TrigRoiDescriptor>(
161 eta, etaMinus, etaPlus,
162 phi, phiMinus, phiPlus,
163 zed, zedMinus, zedPlus
170 return StatusCode::SUCCESS;
@ numberOfPixelHits
number of pixel layers on track with absence of hits
Scalar phi() const
phi method
virtual double zedMinus() const override final
z at the most backward end of the RoI
Scalar eta() const
pseudorapidity method
T wrapToPi(T phi)
Wrap angle in radians to [-pi, pi].
virtual unsigned int roiWord() const override final
Gaudi::Property< int > m_nHitPix
nope - should be used for standalone also, perhaps need to protect the class def bits #ifndef XAOD_AN...
SG::ReadHandleKey< TrigRoiDescriptorCollection > m_roIInputKey
SG::WriteHandleKey< TrigRoiDescriptorCollection > m_roIOutputKey
@ numberOfSCTHoles
number of Holes in both sides of a SCT module
Gaudi::Property< float > m_phiHalfWidth
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Gaudi::Property< float > m_z0HalfWidth
~TrigTauTrackRoiUpdater()
::StatusCode StatusCode
StatusCode definition for legacy code.
const_pointer_type get() const
Dereference the pointer, but don't cache anything.
virtual unsigned int l1Id() const override final
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
const T * back() const
Access the last element in the collection as an rvalue.
float nSCTHoles(const U &p)
virtual bool isValid() override final
Can the handle be successfully dereferenced?
bool trackPt(const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
@ numberOfPixelHoles
number of pixels which have a ganged ambiguity.
const Perigee * perigeeParameters() const
return Perigee.
SG::ReadHandleKey< TrackCollection > m_tracksKey
virtual double zed() const override final
A summary of the information contained by a track.
Helper for azimuthal angle calculations.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
virtual unsigned int roiId() const override final
these quantities probably don't need to be used any more
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
#define ATH_MSG_WARNING(x)
virtual double phi() const override final
Methods to retrieve data members.
Gaudi::Property< float > m_etaHalfWidth
TrigTauTrackRoiUpdater(const std::string &, ISvcLocator *)
Gaudi::Property< int > m_nSiHoles
virtual double eta() const override final
const T * at(size_type n) const
Access an element, as an rvalue.
size_type size() const noexcept
Returns the number of elements in the collection.
virtual StatusCode execute(const EventContext &) const override
virtual StatusCode initialize() override
virtual double zedPlus() const override final
z at the most forward end of the RoI