 |
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "GaudiKernel/IToolSvc.h"
10 #include "GaudiKernel/StatusCode.h"
41 return StatusCode::FAILURE;
49 return StatusCode::SUCCESS;
62 std::unique_ptr<TrigRoiDescriptorCollection> roiCollection = std::make_unique<TrigRoiDescriptorCollection>();
73 ATH_MSG_ERROR(
"No track container found, the Track RoI updater should not be scheduled");
74 return StatusCode::FAILURE;
76 ATH_MSG_DEBUG(
"Found " << foundTracks->
size() <<
" FTF tracks, updating the RoI");
86 float eta = roiDescriptor->
eta();
87 float phi = roiDescriptor->
phi();
89 float zed = roiDescriptor->
zed();
90 float zedMinus = roiDescriptor->
zedMinus();
91 float zedPlus = roiDescriptor->
zedPlus();
137 zed = leadTrack->
z0() + leadTrack->
vz();
138 ATH_MSG_DEBUG(
"Track z0 " << leadTrack->
z0() <<
" vz: " << leadTrack->
vz() <<
" zed:" << zed);
152 outputRoIHandle->
push_back(std::make_unique<TrigRoiDescriptor>(
154 eta, etaMinus, etaPlus,
155 phi, phiMinus, phiPlus,
156 zed, zedMinus, zedPlus
163 return StatusCode::SUCCESS;
@ numberOfPixelHoles
number of pixel layers on track with absence of hits [unit8_t].
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_tracksKey
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
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
T wrapToPi(T phi)
Wrap angle in radians to [-pi, pi].
float vz() const
The z origin for the parameters.
virtual unsigned int roiWord() const override final
float z0() const
Returns the parameter.
Gaudi::Property< int > m_nHitPix
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
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
#define ATH_MSG_VERBOSE(x)
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.
@ numberOfSCTHoles
number of SCT holes [unit8_t].
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)
float phi0() const
Returns the parameter, which has range to .
virtual double zed() const override final
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.
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
Class describing a TrackParticle.
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