|
ATLAS Offline Software
|
InDet::SiSPGNNTrackMaker is an algorithm that uses the GNN-based track finding tool to reconstruct tracks and the use track fitter to obtain track parameters. It turns a collection of Trk::Tracks.
More...
#include <SiSPGNNTrackMaker.h>
|
| SiSPGNNTrackMaker (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute (const EventContext &ctx) const override |
|
virtual bool | isClonable () const override |
| Make this algorithm clonable. More...
|
|
MsgStream & | dump (MsgStream &out) const |
|
std::ostream & | dump (std::ostream &out) const |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual unsigned int | cardinality () const override |
| Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
|
|
virtual StatusCode | sysExecute (const EventContext &ctx) override |
| Execute an algorithm. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
virtual bool | filterPassed (const EventContext &ctx) const |
|
virtual void | setFilterPassed (bool state, const EventContext &ctx) const |
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
MsgStream & | dumptools (MsgStream &out) const |
|
MsgStream & | dumpevent (MsgStream &out) const |
|
int | passEtaDepCuts (const Trk::Track &track) const |
|
std::tuple< bool, int, std::unique_ptr< Trk::Track > > | doFitAndCut (const EventContext &ctx, std::vector< const Trk::SpacePoint * > &spacePoints, std::vector< const Trk::PrepRawData * > &clusters, int &trackCounter) const |
| Fits a track and applies quality cuts to determine if it should be kept. More...
|
|
int | passEtaDepCuts (const Trk::Track *track, int nClusters, int nFreeClusters, int nPixels) const |
|
bool | prefitCheck (int nPix, int nStrip, int nClusters, int nSpacePoints) const |
|
std::unique_ptr< Trk::Track > | fitTrack (const EventContext &ctx, std::vector< const Trk::PrepRawData * > clusters, const Trk::TrackParameters &initial_params, int trackCounter) const |
|
std::vector< const Trk::SpacePoint * > | getSpacePoints (std::vector< uint32_t > trackIndices, std::vector< const Trk::SpacePoint * > allSpacePoints) const |
|
std::vector< const Trk::PrepRawData * > | spacePointsToClusters (std::vector< const Trk::SpacePoint * > spacePoints) const |
|
std::vector< const Trk::PrepRawData * > | getClusters (std::vector< std::vector< uint32_t >> clusterTracks, std::vector< const Trk::PrepRawData * > allClusters, int trackNumber) const |
|
std::vector< const Trk::SpacePoint * > | getSpacePointsInEvent (const EventContext &ctx, int eventNumber) const |
|
std::vector< const Trk::SpacePoint * > | getSpacePointsInEvent (const EventContext &ctx, const SG::ReadHandleKey< SpacePointContainer > &containerKey) const |
|
std::vector< const Trk::SpacePoint * > | getSpacePointsInEvent (const EventContext &ctx, const SG::ReadHandleKey< SpacePointOverlapCollection > &containerKey) const |
|
std::vector< const Trk::PrepRawData * > | getClustersInEvent (const EventContext &ctx, int eventNumber) const |
|
void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution More...
|
|
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
|
void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| Add StoreName to extra input/output deps as needed. More...
|
|
|
SG::ReadHandleKey< SpacePointContainer > | m_SpacePointsPixelKey |
|
SG::ReadHandleKey< SpacePointContainer > | m_SpacePointsSCTKey |
|
SG::ReadHandleKey< SpacePointOverlapCollection > | m_SpacePointsOverlapKey {this, "SpacePointsOverlapName", "ITkOverlapSpacePoints"} |
|
SG::ReadHandleKey< InDet::PixelClusterContainer > | m_ClusterPixelKey |
|
SG::ReadHandleKey< InDet::SCT_ClusterContainer > | m_ClusterStripKey |
|
SG::WriteHandleKey< TrackCollection > | m_outputTracksKey |
|
ToolHandle< IGNNTrackFinder > | m_gnnTrackFinder |
| GNN-based track finding tool that produces track candidates. More...
|
|
ToolHandle< ISeedFitter > | m_seedFitter |
|
ToolHandle< Trk::ITrackFitter > | m_trackFitter |
| Track Fitter. More...
|
|
ToolHandle< Trk::IExtendedTrackSummaryTool > | m_trackSummaryTool |
|
ToolHandle< IGNNTrackReaderTool > | m_gnnTrackReader |
|
BooleanProperty | m_areInputClusters |
|
BooleanProperty | m_doRecoTrackCuts |
|
ServiceHandle< IInDetEtaDependentCutsSvc > | m_etaDependentCutsSvc |
|
IntegerProperty | m_minClusters {this, "minClusters", 6, "Min number clusters"} |
|
IntegerProperty | m_minPixelClusters {this, "minPixelClusters", 1, "min pixel clusters"} |
|
IntegerProperty | m_minStripClusters |
|
DoubleProperty | m_pTmin {this, "pTmin", 400., "min pT"} |
|
DoubleProperty | m_etamax {this, "etamax", 4., "max reco eta"} |
|
InDet::SiSPGNNTrackMaker is an algorithm that uses the GNN-based track finding tool to reconstruct tracks and the use track fitter to obtain track parameters. It turns a collection of Trk::Tracks.
- Author
- xiang.nosp@m.yang.nosp@m..ju@c.nosp@m.ern..nosp@m.ch
Definition at line 43 of file SiSPGNNTrackMaker.h.
◆ StoreGateSvc_t
◆ SiSPGNNTrackMaker()
InDet::SiSPGNNTrackMaker::SiSPGNNTrackMaker |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ cardinality()
unsigned int AthReentrantAlgorithm::cardinality |
( |
| ) |
const |
|
overridevirtualinherited |
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Override this to return 0 for reentrant algorithms.
Definition at line 55 of file AthReentrantAlgorithm.cxx.
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ doFitAndCut()
Fits a track and applies quality cuts to determine if it should be kept.
- Parameters
-
ctx | Event context for conditions access |
clusters | Vector of cluster measurements used to fit the track |
initial_params | Initial track parameters from seed finding |
trackCounter | Index/ID of the track candidate being processed |
- Returns
- std::tuple<bool, int, std::unique_ptr<Trk::Track>>
- bool: Whether the fit was successful
- int: Error/status code (0 for success, >0 for specific failure modes)
- Track: The fitted track (nullptr if fit fails or track rejected)
This function performs the following steps:
- Fits the track using the provided clusters and initial parameters
- Checks basic kinematic cuts (pT, eta)
- Computes track summary (hits, holes)
- Applies eta-dependent quality cuts if configured
Error codes:
- 0: Success, track passes all cuts
- 1: Failed minimum silicon hits requirement
- 2: Failed minimum pixel hits requirement
- 3: Failed minimum pT requirement
- 4: Failed maximum z0 requirement
- 5: Failed maximum d0 requirement
- 6: Failed maximum holes requirement
- 999: Track fit failed
- Note
- The track fitting is performed using the configured track fitter tool
-
Quality cuts are configurable via job options
Definition at line 467 of file SiSPGNNTrackMaker.cxx.
482 ATH_MSG_DEBUG(
"Track " << trackCounter <<
" has " << spacePoints.size()
483 <<
" space points, " <<
clusters.size()
484 <<
" clusters, " << nPIX <<
" pixel clusters, "
485 <<
nStrip <<
" strip clusters");
489 ATH_MSG_DEBUG(
"Track " << trackCounter <<
" does not pass prefit cuts, skipping");
490 return std::make_tuple(
false, 999,
nullptr);
495 if (trkParameters ==
nullptr) {
497 return std::make_tuple(
false, 999,
nullptr);
502 if (
track ==
nullptr ||
track->perigeeParameters() ==
nullptr) {
504 <<
" fails the third chi2 fit, skipping");
505 return std::make_tuple(
false, 999,
nullptr);
511 <<
"with pt = " <<
track->perigeeParameters()->pT()
512 <<
" has pT too low, skipping track!");
513 return std::make_tuple(
false, 999,
nullptr);
517 if (std::abs(
track->perigeeParameters()->eta()) >
m_etamax) {
519 << std::abs(
track->perigeeParameters()->eta())
520 <<
" has eta too high, skipping track!");
521 return std::make_tuple(
false, 999,
nullptr);
530 return std::make_tuple(
true, passTrackCut, std::move(
track));
◆ dump() [1/2]
MsgStream & InDet::SiSPGNNTrackMaker::dump |
( |
MsgStream & |
out | ) |
const |
◆ dump() [2/2]
std::ostream & InDet::SiSPGNNTrackMaker::dump |
( |
std::ostream & |
out | ) |
const |
◆ dumpevent()
MsgStream & InDet::SiSPGNNTrackMaker::dumpevent |
( |
MsgStream & |
out | ) |
const |
|
protected |
◆ dumptools()
MsgStream & InDet::SiSPGNNTrackMaker::dumptools |
( |
MsgStream & |
out | ) |
const |
|
protected |
Definition at line 612 of file SiSPGNNTrackMaker.cxx.
614 out<<
"| Location of output tracks | "
616 out<<
"|----------------------------------------------------------------"
617 <<
"----------------------------------------------------|"
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode InDet::SiSPGNNTrackMaker::execute |
( |
const EventContext & |
ctx | ) |
const |
|
overridevirtual |
Definition at line 84 of file SiSPGNNTrackMaker.cxx.
87 ATH_CHECK(outputTracks.record(std::make_unique<TrackCollection>()));
100 std::vector<std::vector<uint32_t> >
TT;
101 std::vector<std::vector<uint32_t> > clusterTracks;
110 ATH_MSG_ERROR(
"Both GNNTrackFinder and GNNTrackReader are not set");
111 return StatusCode::FAILURE;
118 int trackCounter = -1;
119 std::vector<int> status_codes;
121 for (
auto& trackIndices :
TT) {
126 std::vector<const Trk::SpacePoint*> trackCandidate =
getSpacePoints(trackIndices, spacePoints);
131 getClusters (clusterTracks, allClusters, trackCounter)
144 if (not fitSuccess) {
148 if (passTrackCut <= 0) {
149 outputTracks->push_back(
track.release());
152 status_codes.push_back(passTrackCut);
158 <<
std::count(status_codes.begin(), status_codes.end(), 0)
159 <<
" tracks remains after applying track cuts");
161 ATH_MSG_INFO(
"Event " <<
eventNumber <<
" has " << status_codes.size() <<
" tracks found, all tracks are kept");
164 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 79 of file AthReentrantAlgorithm.cxx.
86 return Algorithm::extraOutputDeps();
◆ filterPassed()
virtual bool AthReentrantAlgorithm::filterPassed |
( |
const EventContext & |
ctx | ) |
const |
|
inlinevirtualinherited |
◆ fitTrack()
Definition at line 534 of file SiSPGNNTrackMaker.cxx.
544 std::unique_ptr<Trk::Track>
track =
547 if (
track ==
nullptr ||
track->perigeeParameters() ==
nullptr) {
549 <<
" fails the first chi2 fit, skipping");
556 <<
" fails the first chi2 fit, skipping");
566 if (
track ==
nullptr ||
track->perigeeParameters() ==
nullptr) {
568 <<
" fails the second chi2 fit, skipping");
◆ getClusters()
Definition at line 416 of file SiSPGNNTrackMaker.cxx.
421 std::vector<uint32_t> clusterIndices = clusterTracks[
trackNumber];
422 std::vector<const Trk::PrepRawData*>
clusters;
423 clusters.reserve(clusterIndices.size());
424 for (
uint32_t id : clusterIndices) {
425 if (
id > allClusters.size()) {
429 clusters.push_back(allClusters[
id]);
◆ getClustersInEvent()
std::vector< const Trk::PrepRawData * > InDet::SiSPGNNTrackMaker::getClustersInEvent |
( |
const EventContext & |
ctx, |
|
|
int |
eventNumber |
|
) |
| const |
|
protected |
Definition at line 299 of file SiSPGNNTrackMaker.cxx.
303 std::vector<const Trk::PrepRawData*> allClusters;
310 if (!pixcontainer.isValid()) {
315 if (!strip_container.isValid()) {
320 auto pixcollection = pixcontainer->begin();
321 auto pixcollectionEnd = pixcontainer->end();
322 for (; pixcollection != pixcollectionEnd; ++pixcollection) {
323 if ((*pixcollection)->empty()) {
327 auto const* clusterCollection = (*pixcollection);
328 auto thisCluster = clusterCollection->begin();
329 auto clusterEnd = clusterCollection->end();
330 for (; thisCluster != clusterEnd; ++thisCluster) {
332 allClusters.push_back(
cl);
336 auto strip_collection = strip_container->begin();
337 auto strip_collectionEnd = strip_container->end();
338 for (; strip_collection != strip_collectionEnd; ++strip_collection) {
339 if ((*strip_collection)->empty()) {
343 auto const* clusterCollection = (*strip_collection);
344 auto thisCluster = clusterCollection->begin();
345 auto clusterEnd = clusterCollection->end();
346 for (; thisCluster != clusterEnd; ++thisCluster) {
348 allClusters.push_back(
cl);
◆ getSpacePoints()
Definition at line 359 of file SiSPGNNTrackMaker.cxx.
364 std::vector<const Trk::SpacePoint*> trackCandidate;
365 trackCandidate.reserve(trackIndices.size());
367 std::vector<std::pair<double, const Trk::SpacePoint*> > distanceSortedSPs;
371 for (
auto&
id : trackIndices) {
373 if (
id > allSpacePoints.size()) {
375 <<
id <<
" out of range: " << allSpacePoints.size());
383 distanceSortedSPs.push_back(
393 std::sort(distanceSortedSPs.begin(), distanceSortedSPs.end());
396 for (
size_t i = 0;
i < distanceSortedSPs.size();
i++) {
397 trackCandidate.push_back(distanceSortedSPs[
i].
second);
400 return trackCandidate;
◆ getSpacePointsInEvent() [1/3]
Definition at line 250 of file SiSPGNNTrackMaker.cxx.
254 std::vector<const Trk::SpacePoint*> spacePoints;
255 if (not containerKey.
empty()){
259 if (container.isValid()){
261 auto spc = container->begin();
262 auto spce = container->end();
263 for(; spc != spce; ++spc){
265 auto sp = spCollection->
begin();
266 auto spe = spCollection->
end();
267 for(; sp != spe; ++sp) {
269 spacePoints.push_back(spacePoint);
◆ getSpacePointsInEvent() [2/3]
Definition at line 278 of file SiSPGNNTrackMaker.cxx.
283 std::vector<const Trk::SpacePoint*> spacePoints;
285 if (not containerKey.
empty()){
289 if (collection.isValid()){
291 spacePoints.push_back(sp);
◆ getSpacePointsInEvent() [3/3]
std::vector< const Trk::SpacePoint * > InDet::SiSPGNNTrackMaker::getSpacePointsInEvent |
( |
const EventContext & |
ctx, |
|
|
int |
eventNumber |
|
) |
| const |
|
protected |
Definition at line 222 of file SiSPGNNTrackMaker.cxx.
226 std::vector<const Trk::SpacePoint*> spacePoints;
228 int npixsp(0), nstrip(0), n_overlap(0);
230 spacePoints.push_back(sp);
234 spacePoints.push_back(sp);
238 spacePoints.push_back(sp);
242 <<
" pixel space points, " << nstrip
243 <<
" strips space points" << n_overlap
244 <<
" overlapping spacepoints" << spacePoints.size()
◆ initialize()
StatusCode InDet::SiSPGNNTrackMaker::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 20 of file SiSPGNNTrackMaker.cxx.
35 ATH_MSG_ERROR(
"Use either track finder or track reader, not both.");
36 return StatusCode::FAILURE;
53 ATH_MSG_INFO(
"Applying the following cuts during GNN-based track reconstruction: ");
62 ATH_MSG_INFO(
"Applying the following eta dependant track cuts after GNN-based track reconstruction: ");
81 return StatusCode::SUCCESS;
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ isClonable()
virtual bool InDet::SiSPGNNTrackMaker::isClonable |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ passEtaDepCuts() [1/2]
int InDet::SiSPGNNTrackMaker::passEtaDepCuts |
( |
const Trk::Track & |
track | ) |
const |
|
protected |
Definition at line 173 of file SiSPGNNTrackMaker.cxx.
176 double pt = origPerigee->pT();
178 double eta = std::abs(origPerigee->eta());
180 double d0 = std::abs(origPerigee->parameters()[
Trk::d0]);
182 double z0 = std::abs(origPerigee->parameters()[
Trk::z0]);
189 int nClusters = nPixels +
nStrips;
196 if (nClusters < m_etaDependentCutsSvc->getMinSiHitsAtEta(
eta))
200 if (nPixels < m_etaDependentCutsSvc->getMinPixelHitsAtEta(
eta))
204 if (pt < m_etaDependentCutsSvc->getMinPtAtEta(
eta))
◆ passEtaDepCuts() [2/2]
int InDet::SiSPGNNTrackMaker::passEtaDepCuts |
( |
const Trk::Track * |
track, |
|
|
int |
nClusters, |
|
|
int |
nFreeClusters, |
|
|
int |
nPixels |
|
) |
| const |
|
protected |
◆ prefitCheck()
bool InDet::SiSPGNNTrackMaker::prefitCheck |
( |
int |
nPix, |
|
|
int |
nStrip, |
|
|
int |
nClusters, |
|
|
int |
nSpacePoints |
|
) |
| const |
|
protected |
◆ renounce()
◆ renounceArray()
◆ setFilterPassed()
virtual void AthReentrantAlgorithm::setFilterPassed |
( |
bool |
state, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
inlinevirtualinherited |
◆ spacePointsToClusters()
Definition at line 403 of file SiSPGNNTrackMaker.cxx.
406 std::vector<const Trk::PrepRawData*>
clusters;
408 clusters.push_back(sp->clusterList().first);
409 if (sp->clusterList().second !=
nullptr) {
410 clusters.push_back(sp->clusterList().second);
◆ sysExecute()
StatusCode AthReentrantAlgorithm::sysExecute |
( |
const EventContext & |
ctx | ) |
|
|
overridevirtualinherited |
Execute an algorithm.
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.
Definition at line 67 of file AthReentrantAlgorithm.cxx.
69 return Gaudi::Algorithm::sysExecute (ctx);
◆ sysInitialize()
StatusCode AthReentrantAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
Override sysInitialize.
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc
Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.
Reimplemented in InputMakerBase, and HypoBase.
Definition at line 96 of file AthReentrantAlgorithm.cxx.
107 if ( cs.retrieve().isFailure() ) {
109 return StatusCode::SUCCESS;
111 if (cs->regHandle(
this,*
h).isFailure()) {
112 sc = StatusCode::FAILURE;
113 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_areInputClusters
BooleanProperty InDet::SiSPGNNTrackMaker::m_areInputClusters |
|
protected |
Initial value:{
this, "areInputClusters", false,
"Read track candidates as list of clusters"}
Definition at line 105 of file SiSPGNNTrackMaker.h.
◆ m_ClusterPixelKey
Initial value:{
this, "PixelClusterContainer", "ITkPixelClusters"}
Definition at line 68 of file SiSPGNNTrackMaker.h.
◆ m_ClusterStripKey
Initial value:{
this, "StripClusterContainer", "ITkStripClusters"}
Definition at line 70 of file SiSPGNNTrackMaker.h.
◆ m_detStore
◆ m_doRecoTrackCuts
BooleanProperty InDet::SiSPGNNTrackMaker::m_doRecoTrackCuts |
|
protected |
Initial value:{this, "doRecoTrackCuts", false,
"Apply Loose track cuts"}
Definition at line 108 of file SiSPGNNTrackMaker.h.
◆ m_etaDependentCutsSvc
Initial value:{
this, "InDetEtaDependentCutsSvc", "InDetEtaDependentCutsSvc"}
Definition at line 111 of file SiSPGNNTrackMaker.h.
◆ m_etamax
DoubleProperty InDet::SiSPGNNTrackMaker::m_etamax {this, "etamax", 4., "max reco eta"} |
|
protected |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects |
|
privateinherited |
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 153 of file AthReentrantAlgorithm.h.
◆ m_gnnTrackFinder
Initial value:{
this, "GNNTrackFinderTool",
"InDet::SiGNNTrackFinderTool", "Track Finder"
}
GNN-based track finding tool that produces track candidates.
@name Tool handles
Definition at line 82 of file SiSPGNNTrackMaker.h.
◆ m_gnnTrackReader
Initial value:{
this, "GNNTrackReaderTool",
"InDet::GNNTrackReaderTool", "Track Reader"
}
Definition at line 97 of file SiSPGNNTrackMaker.h.
◆ m_minClusters
IntegerProperty InDet::SiSPGNNTrackMaker::m_minClusters {this, "minClusters", 6, "Min number clusters"} |
|
protected |
◆ m_minPixelClusters
IntegerProperty InDet::SiSPGNNTrackMaker::m_minPixelClusters {this, "minPixelClusters", 1, "min pixel clusters"} |
|
protected |
◆ m_minStripClusters
IntegerProperty InDet::SiSPGNNTrackMaker::m_minStripClusters |
|
protected |
Initial value:{this, "minStripClusters", 0,
"Minimum number of strip clusters"}
Definition at line 116 of file SiSPGNNTrackMaker.h.
◆ m_outputTracksKey
Initial value:{
this, "TracksLocation", "SiSPGNNTracks"}
Definition at line 74 of file SiSPGNNTrackMaker.h.
◆ m_pTmin
DoubleProperty InDet::SiSPGNNTrackMaker::m_pTmin {this, "pTmin", 400., "min pT"} |
|
protected |
◆ m_seedFitter
ToolHandle<ISeedFitter> InDet::SiSPGNNTrackMaker::m_seedFitter |
|
protected |
Initial value:{
this, "SeedFitterTool",
"InDet::SiSeedFitterTool", "Seed Fitter"
}
Definition at line 86 of file SiSPGNNTrackMaker.h.
◆ m_SpacePointsOverlapKey
◆ m_SpacePointsPixelKey
Initial value:{
this, "SpacePointsPixelName", "ITkPixelSpacePoints"}
@name Data handles
Definition at line 62 of file SiSPGNNTrackMaker.h.
◆ m_SpacePointsSCTKey
Initial value:{
this, "SpacePointsSCTName", "ITkStripSpacePoints"}
Definition at line 64 of file SiSPGNNTrackMaker.h.
◆ m_trackFitter
Initial value:{
this, "TrackFitter",
"Trk::GlobalChi2Fitter/InDetTrackFitter", "Track Fitter"
}
Track Fitter.
Definition at line 91 of file SiSPGNNTrackMaker.h.
◆ m_trackSummaryTool
Initial value:{
this, "TrackSummaryTool", "InDetTrackSummaryTool"}
Definition at line 95 of file SiSPGNNTrackMaker.h.
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
@ numberOfPixelHits
number of pixel layers on track with absence of hits
std::vector< const Trk::PrepRawData * > getClustersInEvent(const EventContext &ctx, int eventNumber) const
BooleanProperty m_doRecoTrackCuts
ToolHandle< IGNNTrackFinder > m_gnnTrackFinder
GNN-based track finding tool that produces track candidates.
SG::ReadHandleKey< SpacePointContainer > m_SpacePointsPixelKey
virtual const Amg::Vector3D & globalPosition() const override final
Interface method to get the global Position.
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool msgLvl(const MSG::Level lvl) const
IntegerProperty m_minPixelClusters
ServiceHandle< IInDetEtaDependentCutsSvc > m_etaDependentCutsSvc
SG::ReadHandleKey< SpacePointOverlapCollection > m_SpacePointsOverlapKey
int passEtaDepCuts(const Trk::Track &track) const
bool empty() const
Test if the key is blank.
@ numberOfSCTHoles
number of Holes in both sides of a SCT module
SG::WriteHandleKey< TrackCollection > m_outputTracksKey
virtual void setOwner(IDataHandleHolder *o)=0
std::vector< const Trk::SpacePoint * > getSpacePoints(std::vector< uint32_t > trackIndices, std::vector< const Trk::SpacePoint * > allSpacePoints) const
AthReentrantAlgorithm()
Default constructor:
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
SG::ReadHandleKey< InDet::SCT_ClusterContainer > m_ClusterStripKey
MsgStream & dumpevent(MsgStream &out) const
::StatusCode StatusCode
StatusCode definition for legacy code.
@ numberOfSCTHits
number of SCT holes
ToolHandle< Trk::ITrackFitter > m_trackFitter
Track Fitter.
std::vector< const Trk::PrepRawData * > getClusters(std::vector< std::vector< uint32_t >> clusterTracks, std::vector< const Trk::PrepRawData * > allClusters, int trackNumber) const
bool prefitCheck(int nPix, int nStrip, int nClusters, int nSpacePoints) const
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
BooleanProperty m_areInputClusters
@ numberOfPixelHoles
number of pixels which have a ganged ambiguity.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
int nStrips(const MuonGM::TgcReadoutElement &readoutEle, int layer)
std::unique_ptr< Trk::Track > fitTrack(const EventContext &ctx, std::vector< const Trk::PrepRawData * > clusters, const Trk::TrackParameters &initial_params, int trackCounter) const
IntegerProperty m_minClusters
ToolHandle< ISeedFitter > m_seedFitter
virtual StatusCode sysInitialize() override
Override sysInitialize.
@ nStrip
Get number of strips.
ToolHandle< Trk::IExtendedTrackSummaryTool > m_trackSummaryTool
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
#define ATH_MSG_WARNING(x)
IntegerProperty m_minStripClusters
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
MsgStream & dumptools(MsgStream &out) const
std::vector< const Trk::PrepRawData * > spacePointsToClusters(std::vector< const Trk::SpacePoint * > spacePoints) const
std::tuple< bool, int, std::unique_ptr< Trk::Track > > doFitAndCut(const EventContext &ctx, std::vector< const Trk::SpacePoint * > &spacePoints, std::vector< const Trk::PrepRawData * > &clusters, int &trackCounter) const
Fits a track and applies quality cuts to determine if it should be kept.
SG::ReadHandleKey< InDet::PixelClusterContainer > m_ClusterPixelKey
std::vector< const Trk::SpacePoint * > getSpacePointsInEvent(const EventContext &ctx, int eventNumber) const
constexpr int pow(int base, int exp) noexcept
SG::ReadHandleKey< SpacePointContainer > m_SpacePointsSCTKey
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
ToolHandle< IGNNTrackReaderTool > m_gnnTrackReader