 |
ATLAS Offline Software
|
Go to the documentation of this file.
22 return StatusCode::SUCCESS;
31 std::set<const Decision*> cache;
32 std::vector<SG::sgkey_t>
keys;
33 std::vector<uint32_t> clids;
34 std::vector<Decision::index_type>
indices;
35 std::vector<const Decision*> sources;
41 return StatusCode::FAILURE;
46 ATH_MSG_DEBUG(
"Encountered a MET feature in the CentredOnIParticle ROITool. Cannot centre an ROI on this. Attaching a FullScan RoI");
49 outputDecision->setObjectLink(
roiString(), roiEL);
57 const double reta = (*p4EL)->eta();
60 const double rphi = (*p4EL)->phi();
71 bool update_z_width =
true;
74 if (
muon &&
muon->primaryTrackParticle() ) {
75 zed0 =
muon->primaryTrackParticle()->z0();
78 else update_z_width =
false;
81 if ( update_z_width ) {
88 double cosheta = std::cosh( (*p4EL)->eta() );
93 ATH_MSG_DEBUG(
"New ROI for xAOD::Particle ET="<< (*p4EL)->p4().Et()
100 zed0, zed0m, zed0p );
116 outputDecision->setObjectLink(
roiString(), roiEL);
119 return StatusCode::SUCCESS;
std::pair< long int, long int > indices
nope - should be used for standalone also, perhaps need to protect the class def bits #ifndef XAOD_AN...
const std::string & roiString()
bool isValid() const
Test to see if the link can be dereferenced.
Gaudi::Property< std::string > m_iParticleLinkName
Gaudi::Property< double > m_roiZedWidth
Gaudi::Property< bool > m_useZedPosition
bool typelessFindLinks(const Decision *start, const std::string &linkName, std::vector< sgkey_t > &keyVec, std::vector< uint32_t > &clidVec, std::vector< Decision::index_type > &indexVec, std::vector< const Decision * > &sourceVec, const unsigned int behaviour, std::set< const Decision * > *fullyExploredFrom)
search back the TC links for the object of type T linked to the one of TC (recursively) Returns the l...
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< bool > m_useBeamspot
Default, invalid implementation of ClassID_traits.
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
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.