|
ATLAS Offline Software
|
Go to the documentation of this file.
32 return StatusCode::SUCCESS;
37 return StatusCode::SUCCESS;
42 vector<TrigSiSpacePointBase> spVec;
51 for (
const auto pixSPointColl : *pixelSP)
53 if (pixSPointColl ==
nullptr)
60 const double dr = 0.01;
61 const double dz = 0.13;
63 for (
const auto pSP : *pixSPointColl)
66 spVec.push_back(
TrigSiSpacePointBase(layerId, pSP->globalPosition().perp(), pSP->globalPosition().phi(), pSP->globalPosition().z(),
79 auto zVertexContainer = std::make_unique<xAOD::TrigCompositeContainer>();
80 auto zVertexContainerAux = std::make_unique<xAOD::TrigCompositeAuxContainer>();
81 zVertexContainer->setStore(zVertexContainerAux.get());
87 ATH_MSG_DEBUG(
"Successfully retrieved size of number of vertices: " << vertices->
size());
89 for (
auto vertex: *vertices ) {
94 zVertexContainer->push_back(outputVertex);
95 outputVertex->
setDetail<
int>(
"zfinder_tool", toolIndex );
97 outputVertex->
setDetail<
float>(
"zfinder_vtx_weight",
vertex->cov()[5] );
107 if ( zVertexContainer->empty() ) {
109 zVertexContainer->push_back(emptyVertex);
110 emptyVertex->
setDetail<
int>(
"zfinder_tool", -1 );
111 emptyVertex->
setDetail<
float>(
"zfinder_vtx_z", -1000.0 );
112 emptyVertex->
setDetail<
float>(
"zfinder_vtx_weight", -1.0 );
116 ATH_CHECK(vertexHandle.
record(std::move(zVertexContainer), std::move(zVertexContainerAux)));
117 return StatusCode::SUCCESS;
SG::ReadHandleKey< SpacePointContainer > m_pixelSpKey
bool setDetail(const std::string &name, const TYPE &value)
Set an TYPE detail on the object.
Group
Properties of a chain group.
virtual StatusCode execute(const EventContext &context) const override
virtual ~TrigZFinderAlg() override
TrigComposite_v1 TrigComposite
Declare the latest version of the class.
Identifier identify(const UncalibratedMeasurement *meas)
Returns the associated identifier.
nope - should be used for standalone also, perhaps need to protect the class def bits #ifndef XAOD_AN...
virtual StatusCode initialize() override
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadHandleKey< PixelID > m_pixelHelperKey
bool is_barrel(const Identifier &id) const
Test for barrel - WARNING: id MUST be pixel id, otherwise answer is not accurate. Use SiliconID for g...
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::WriteHandleKey< xAOD::TrigCompositeContainer > m_vertexKey
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.
virtual StatusCode finalize() override
ToolHandle< GenericMonitoringTool > m_monTool
int layer_disk(const Identifier &id) const
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
ToolHandleArray< TrigZFinder > m_zFinderTools
Athena::TPCnvVers::Current TrigRoiDescriptor
Declare a monitored scalar variable.
size_type size() const noexcept
Returns the number of elements in the collection.
TrigZFinderAlg(const std::string &name, ISvcLocator *pSvcLocator)