![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
14 m_secVertexFinderToolHandle(this)
41 return StatusCode::SUCCESS;
48 if (!h_JetCollectionName.
isValid()) {
50 return StatusCode::FAILURE;
55 ATH_CHECK( h_VxSecVertexInfoName.
record(std::make_unique<Trk::VxSecVertexInfoContainer>()));
57 if (h_JetCollectionName->
empty()) {
59 return StatusCode::SUCCESS;
66 ATH_MSG_ERROR(
"cannot retrieve jet container particle EL decoration with key " << h_TracksToTag.
decorKey() );
67 return StatusCode::FAILURE;
74 if (!h_VertexCollectionName.
isValid()) {
76 return StatusCode::FAILURE;
78 unsigned int nVertexes = h_VertexCollectionName->
size();
81 return StatusCode::SUCCESS;
83 for (
const auto *fz : *h_VertexCollectionName) {
91 if (! primaryVertex) {
102 for (
const auto *jetIter : *h_JetCollectionName) {
105 const std::vector<ElementLink< xAOD::IParticleContainer > >& tracksInJet
106 = h_TracksToTag(jetToTag);
108 if(tracksInJet.empty()){
110 h_VxSecVertexInfoName->
push_back(
nullptr);
114 std::vector<const xAOD::IParticle*> inputIParticles;
117 inputIParticles.reserve(tracksInJet.size());
118 for (
const auto& iparticle : tracksInJet)
120 inputIParticles.push_back(*iparticle);
126 h_VxSecVertexInfoName->
push_back(myVertexInfo);
129 return StatusCode::SUCCESS;
Const iterator class for DataVector/DataList.
size_t nTrackParticles() const
Get the number of tracks associated with this vertex.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual StatusCode execute(const EventContext &ctx) const override final
const std::vector< xAOD::Vertex * > & vertices() const
ToolHandle< InDet::ISecVertexInJetFinder > m_secVertexFinderToolHandle
SG::WriteHandleKey< Trk::VxSecVertexInfoContainer > m_VxSecVertexInfoName
SG::ReadHandleKey< xAOD::JetContainer > m_JetCollectionName
An algorithm that can be simultaneously executed in multiple threads.
Handle class for reading a decoration on an object.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode initialize() override final
Main routines specific to an ATHENA algorithm.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
SG::ReadHandleKey< xAOD::VertexContainer > m_VertexCollectionName
The namespace of all packages in PhysicsAnalysis/JetTagging.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
JetSecVtxFindingAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructors and destructors.
Class describing a Vertex.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_TracksToTag
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
std::string decorKey() const
Return the name of the decoration alias (CONT.DECOR).
Handle class for reading a decoration on an object.
Handle class for reading from StoreGate.
bool isAvailable()
Test to see if this variable exists in the store, for the referenced object.
size_type size() const noexcept
Returns the number of elements in the collection.
bool empty() const noexcept
Returns true if the collection is empty.