|
ATLAS Offline Software
|
Go to the documentation of this file.
21 return StatusCode::SUCCESS;
29 const std::vector<LinkInfo<xAOD::IParticleContainer>> myFeature = findLinks<xAOD::IParticleContainer>(outputDecision,
m_iParticleLinkName, TrigDefs::lastFeatureOfType);
31 if (myFeature.size() != 1) {
33 <<
", found " << myFeature.size());
34 return StatusCode::FAILURE;
40 const double reta = (*p4EL)->eta();
43 const double rphi = (*p4EL)->phi();
54 bool update_z_width =
true;
57 if (
muon &&
muon->primaryTrackParticle() ) {
58 zed0 =
muon->primaryTrackParticle()->z0();
61 else update_z_width =
false;
64 if ( update_z_width ) {
71 double cosheta = std::cosh( (*p4EL)->eta() );
76 ATH_MSG_DEBUG(
"New ROI for xAOD::Particle ET="<< (*p4EL)->p4().Et()
99 outputDecision->setObjectLink(
roiString(), roiEL);
102 return StatusCode::SUCCESS;
nope - should be used for standalone also, perhaps need to protect the class def bits #ifndef XAOD_AN...
Gaudi::Property< std::string > m_iParticleLinkName
Gaudi::Property< double > m_roiZedWidth
Gaudi::Property< bool > m_useZedPosition
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< bool > m_useBeamspot
Gaudi::Property< double > m_roiEtaWidth
virtual StatusCode initialize() override
ViewCreatorCentredOnIParticleROITool(const std::string &type, const std::string &name, const IInterface *parent)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::WriteHandle< CONT > createAndStoreNoAux(const SG::WriteHandleKey< CONT > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Creates and right away records the Container CONT with the key.
Class used to describe composite objects in the HLT.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
Gaudi::Property< double > m_roiPhiWidth
const std::string & roiString()
Athena::TPCnvVers::Current TrigRoiDescriptor
virtual StatusCode attachROILinks(TrigCompositeUtils::DecisionContainer &decisions, const EventContext &ctx) const override
Tool interface method.
Gaudi::Property< double > m_roiZedSinThetaFlag
SG::WriteHandleKey< TrigRoiDescriptorCollection > m_roisWriteHandleKey
size_type size() const noexcept
Returns the number of elements in the collection.