|
ATLAS Offline Software
|
Go to the documentation of this file.
34 const IInterface*
p) :
36 declareInterface<DerivationFramework::IAugmentationTool>(
this);
62 return StatusCode::SUCCESS;
68 const EventContext& ctx = Gaudi::Hive::currentContext();
70 std::unique_ptr<xAOD::VertexContainer> vtxContainer = std::make_unique<xAOD::VertexContainer>();
71 std::unique_ptr<xAOD::VertexAuxContainer> vtxAuxContainer = std::make_unique<xAOD::VertexAuxContainer>();
72 vtxContainer->setStore(vtxAuxContainer.get());
77 if( !
m_jpsiFinder->performSearch(ctx, *vtxContainer).isSuccess() ) {
79 return StatusCode::FAILURE;
86 if (!pvContainer.isValid()){
88 return StatusCode::FAILURE;
95 std::unique_ptr<xAOD::VertexContainer> refPvContainer = std::make_unique<xAOD::VertexContainer>();
96 std::unique_ptr<xAOD::VertexAuxContainer> refPvAuxContainer = std::make_unique<xAOD::VertexAuxContainer>();
97 refPvContainer->setStore(refPvAuxContainer.get());
105 return StatusCode::FAILURE;
122 ATH_CHECK(outputVertices.record(std::move(vtxContainer), std::move(vtxAuxContainer)));
126 ATH_CHECK(refitVertices.record(std::move(refPvContainer), std::move(refPvAuxContainer)));
132 if ( vtxContainer->
size() > 0 ) {
138 return StatusCode::SUCCESS;
Gaudi::Property< bool > m_refitPV
Gaudi::Property< int > m_DoVertexType
ToolHandle< Analysis::ICandidateSearch > m_jpsiFinder
const std::string & key() const
Return the StoreGate ID for the referenced object.
Gaudi::Property< unsigned int > m_PV_minNTracks
Gaudi::Property< bool > m_do3d
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::ReadHandleKey< xAOD::VertexContainer > m_pvContainerKey
job options
Gaudi::Property< int > m_PV_max
virtual StatusCode addBranches() const override
Pass the thinning service
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo_key
ToolHandle< Trk::V0Tools > m_v0Tools
tools
Bmumu_reco_mumu(const std::string &t, const std::string &n, const IInterface *p)
SG::WriteHandleKey< xAOD::VertexContainer > m_refContainerKey
SG::WriteHandleKey< xAOD::VertexContainer > m_outVtxContainerKey
ToolHandle< Analysis::PrimaryVertexRefitter > m_pvRefitter
size_type size() const noexcept
Returns the number of elements in the collection.
StatusCode initialize() override