 |
ATLAS Offline Software
|
Go to the documentation of this file.
22 return StatusCode::SUCCESS;
30 const std::vector<LinkInfo<xAOD::IParticleContainer>> myFeature = findLinks<xAOD::IParticleContainer>(outputDecision,
m_iParticleLinkName, TrigDefs::lastFeatureOfType);
32 if(myFeature.size()==0){
34 auto metFeature = findLinks<xAOD::TrigMissingETContainer>(outputDecision,
m_iParticleLinkName, TrigDefs::lastFeatureOfType);
35 if(metFeature.size()==1){
36 ATH_MSG_DEBUG(
"Encountered a MET feature in the CentredOnIParticle ROITool. Cannot centre an ROI on this. Attaching a FullScan RoI");
39 outputDecision->setObjectLink(
roiString(), roiEL);
44 return StatusCode::FAILURE;
47 else if (myFeature.size() != 1) {
49 <<
", found " << myFeature.size());
50 return StatusCode::FAILURE;
56 const double reta = (*p4EL)->eta();
59 const double rphi = (*p4EL)->phi();
70 bool update_z_width =
true;
73 if (
muon &&
muon->primaryTrackParticle() ) {
74 zed0 =
muon->primaryTrackParticle()->z0();
77 else update_z_width =
false;
80 if ( update_z_width ) {
87 double cosheta = std::cosh( (*p4EL)->eta() );
92 ATH_MSG_DEBUG(
"New ROI for xAOD::Particle ET="<< (*p4EL)->p4().Et()
115 outputDecision->setObjectLink(
roiString(), roiEL);
118 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
SG::WriteHandle< CONT > createAndStoreNoAux(const SG::WriteHandleKey< CONT > &key, const EventContext &ctx)
Creates and right away records the Container CONT with the key.
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.
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
static constexpr bool FULLSCAN
convenient
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.