|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ACTSTRKSEEDINGTOOL_SISPACEPOINTSSEEDMAKER_H
6 #define ACTSTRKSEEDINGTOOL_SISPACEPOINTSSEEDMAKER_H
11 #include "GaudiKernel/ToolHandle.h"
36 class SiSpacePointsSeedMakerEventData;
42 static constexpr
float s_toTesla = 0.299785832;
45 public extends<AthAlgTool, InDet::ISiSpacePointsSeedMaker> {
59 int iteration=-1)
const override;
62 find3Sp(
const EventContext& ctx,
64 const std::list<Trk::Vertex>& lv)
const override;
67 next(
const EventContext& ctx,
81 MsgStream&
out)
const override;
90 const std::vector<IdentifierHash>&,
91 const std::vector<IdentifierHash>&)
const override;
96 const std::vector<IdentifierHash>&,
97 const std::vector<IdentifierHash>&,
105 const std::list<Trk::Vertex>&)
const override
115 const std::list<Trk::Vertex>&,
116 const double*)
const override
126 const std::list<Trk::Vertex>&)
const override
137 MsgStream&
out)
const;
178 const std::vector<IdentifierHash>&
ids,
183 const std::vector<IdentifierHash>&
ids,
187 const std::vector<IdentifierHash>&
ids,
198 ToolHandle< ActsTrk::ISeedingTool >
m_seedsToolPixel {
this,
"SeedToolPixel",
"",
"Seed Tool for Pixel detector"};
199 ToolHandle< ActsTrk::ISeedingTool >
m_seedsToolStrip {
this,
"SeedToolStrip",
"",
"Seed Tool for Strip detector"};
209 "Name of the Magnetic Field conditions object key"};
212 "Key of input SiDetectorElementCollection"};
214 "Key of input SiDetectorElementCollection"};
216 Gaudi::Property< bool >
m_pixel {
this,
"usePixel",
true};
217 Gaudi::Property< bool >
m_strip {
this,
"useStrip",
true };
218 Gaudi::Property< bool >
m_useOverlap {
this,
"useOverlapSpCollection",
true};
220 Gaudi::Property< bool >
m_doSeedConversion {
this,
"doSeedConversion",
true,
"Convert ActsTrk::Seed into ITk::SiSpacePointsProSeed"};
221 Gaudi::Property< bool >
m_useClusters {
this,
"useClustersForSeedConversion",
false};
270 if (!
d || !prd_to_track_map.
isUsed(*
d))
return false;
273 if (!
d || prd_to_track_map.
isUsed(*
d))
return true;
293 }
else if ( stripOverlapLinkacc.
isAvailable(*sp) ) {
300 return isUsed(indetSp, prd_to_track_map);
const std::pair< const PrepRawData *, const PrepRawData * > & clusterList() const
return the pair of cluster pointers by reference
virtual StatusCode initialize() override
char data[hepevt_bytes_allocation_ATLAS]
ToolHandle< ActsTrk::ISeedingTool > m_seedsToolPixel
Gaudi::Property< bool > m_useOverlap
virtual const InDet::SiSpacePointsSeed * next(const EventContext &ctx, InDet::SiSpacePointsSeedMakerEventData &data) const override
static void stripInform(InDet::SiSpacePointsSeedMakerEventData &data, const Trk::SpacePoint *const &sp, float *r)
Gaudi::Property< bool > m_doSeedConversion
Gaudi::Property< bool > m_writeNtuple
static void pixInform(const Trk::SpacePoint *const &sp, float *r)
SG::ReadHandleKey< xAOD::SpacePointContainer > m_actsSpacepointsStrip
Helper class to provide constant type-safe access to aux data.
bool convertPixelSeed(const EventContext &ctx, InDet::SiSpacePointsSeedMakerEventData &data, const ActsTrk::SeedContainer &seedPtrs) const
Gaudi::Property< bool > m_pixel
virtual void newRegion(const EventContext &, InDet::SiSpacePointsSeedMakerEventData &, const std::vector< IdentifierHash > &, const std::vector< IdentifierHash > &) const override
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Gaudi::Property< bool > m_strip
SG::ReadHandleKey< Trk::PRDtoTrackMap > m_prdToTrackMap
virtual void newEvent(const EventContext &ctx, InDet::SiSpacePointsSeedMakerEventData &data, int iteration=-1) const override
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCondObjInputKey
virtual void find2Sp(InDet::SiSpacePointsSeedMakerEventData &, const std::list< Trk::Vertex > &) const override
StatusCode retrieveStrip(const EventContext &ctx, InDet::SiSpacePointsSeedMakerEventData &data, const Trk::PRDtoTrackMap *prd_to_track_map_cptr) const
virtual void findVSp(const EventContext &, InDet::SiSpacePointsSeedMakerEventData &, const std::list< Trk::Vertex > &) const override
with variable number space points with or without vertex constraint Variable means (2,...
Gaudi::Property< bool > m_fastTracking
virtual void find3Sp(const EventContext &, InDet::SiSpacePointsSeedMakerEventData &, const std::list< Trk::Vertex > &, const double *) const override
with three space points with or without vertex constraint with information about min and max Z of the...
::StatusCode StatusCode
StatusCode definition for legacy code.
Describes the API of the Region of Ineterest geometry.
void newSpacePoint(InDet::SiSpacePointsSeedMakerEventData &data, const xAOD::SpacePoint *const &sp) const
ToolHandle< ActsTrk::ISeedingTool > m_seedsToolStrip
virtual void find3Sp(const EventContext &ctx, InDet::SiSpacePointsSeedMakerEventData &data, const std::list< Trk::Vertex > &lv) const override
ServiceHandle< ITHistSvc > m_thistSvc
void buildBeamFrameWork(const EventContext &ctx, InDet::SiSpacePointsSeedMakerEventData &data) const
virtual void newRegion(const EventContext &, InDet::SiSpacePointsSeedMakerEventData &, const std::vector< IdentifierHash > &, const std::vector< IdentifierHash > &, const IRoiDescriptor &) const override
bool isUsed(const PrepRawData &prd) const
does this PRD belong to at least one track?
SG::ReadHandleKey< xAOD::SpacePointContainer > m_actsSpacepointsPixel
ElementLink implementation for ROOT usage.
virtual ~SiSpacePointsSeedMaker() override=default
Gaudi::Property< bool > m_useClusters
StatusCode retrieveOverlap(const EventContext &ctx, InDet::SiSpacePointsSeedMakerEventData &data, const Trk::PRDtoTrackMap *prd_to_track_map_cptr) const
MsgStream & dumpConditions(InDet::SiSpacePointsSeedMakerEventData &data, MsgStream &out) const
virtual bool getWriteNtupleBoolProperty() const override
bool isUsed(const Trk::SpacePoint *, const Trk::PRDtoTrackMap &prd_to_track_map) const
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_stripDetEleCollKey
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
virtual MsgStream & dump(InDet::SiSpacePointsSeedMakerEventData &data, MsgStream &out) const override
SiSpacePointsSeedMaker(const std::string &t, const std::string &n, const IInterface *p)
static MsgStream & dumpEvent(InDet::SiSpacePointsSeedMakerEventData &data, MsgStream &out)
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
std::string m_treeName ATLAS_THREAD_SAFE
bool convertStripSeed(const EventContext &ctx, InDet::SiSpacePointsSeedMakerEventData &data, const ActsTrk::SeedContainer &seedPtrs) const
StatusCode retrievePixel(const EventContext &ctx, InDet::SiSpacePointsSeedMakerEventData &data, const Trk::PRDtoTrackMap *prd_to_track_map_cptr) const
SG::ReadHandleKey< xAOD::SpacePointContainer > m_actsSpacepointsOverlap
virtual void writeNtuple(const InDet::SiSpacePointsSeed *seed, const Trk::Track *track, int seedType, long eventNumber) const override