ATLAS Offline Software
Loading...
Searching...
No Matches
InDet::SiSPSeededTrackFinder Class Reference

Class-algorithm for track finding in Pixels and SCT initiated by space points seeds. More...

#include <SiSPSeededTrackFinder.h>

Inheritance diagram for InDet::SiSPSeededTrackFinder:

Classes

class  Counter_t
 For counters. More...

Public Member Functions

virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
 Get filter decision:
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 Set filter decision:
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
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.
Print internal tool parameters and status
MsgStream & dump (MSG::Level lvl, const SiSPSeededTrackFinder::Counter_t *) const
MsgStream & dumptools (MsgStream &out) const
MsgStream & dumpevent (MsgStream &out, const SiSPSeededTrackFinder::Counter_t &counter) const
bool isGoodEvent (const EventContext &ctx) const
 EventContext is used to specify which event.
void filterSharedTracks (std::multimap< double, Trk::Track * > &scoredTracks) const
 cleans up the collection of quality filtered tracks.
void filterSharedTracksFast (std::multimap< double, Trk::Track * > &scoredTracks) const
void fillZHistogram (const EventContext &ctx, const Trk::Track *Tr, const Trk::PerigeeSurface &beamlinePerigee, std::vector< int > &numberWeightedhistogram, std::vector< double > &zWeightedHistogram, std::vector< double > &ptWeightedHistogram) const
 fills three z0 histograms (non-weighted, weighted by z, and weighted by pt) with the track z at the beam line estimated using the innermost measurement.
void findZvertex (std::list< Trk::Vertex > &vertexList, std::pair< double, double > &zBoundaries, const std::vector< int > &numberWeightedhistogram, const std::vector< double > &zWeightedHistogram, const std::vector< double > &ptWeightedHistogram) const
 estimates a set of vertex positions and a z interval for the second track finding pass using the input histograms populated using fillZHistogram.
StatusCode oldStrategy (const EventContext &ctx) const
 this method performs the track finding using the old strategy
StatusCode newStrategy (const EventContext &ctx) const
 this method performs the track finding using the new strategy
StatusCode itkFastTrackingStrategy (const EventContext &ctx) const
 EventContext is used to specify which event.
StatusCode itkConvStrategy (const EventContext &ctx) const
 EventContext is used to specify which event.
void magneticFieldInit ()
bool passEtaDepCuts (const Trk::Track *track, int nClusters, int nFreeClusters, int nPixels) const
void collectGBTSTrainingData (const Trk::Track *) const
void dumpGBTSTrainingData () const

Protected Attributes

Flags to configure SiSPSeededTrackFinder
BooleanProperty m_useZvertexTool {this, "useZvertexTool", true}
BooleanProperty m_writeHolesFromPattern {this, "writeHolesFromPattern", false,"Flag to activate writing hole info from the pattern recognition"}
BooleanProperty m_useMBTS {this, "useMBTSTimeDiff", false}
BooleanProperty m_useNewStrategy {this, "useNewStrategy", false}
BooleanProperty m_useZBoundaryFinding {this, "useZBoundFinding", false}
BooleanProperty m_ITKGeometry {this, "ITKGeometry", false, "Flag to specify if it is ITK geometry"}
BooleanProperty m_useITkConvSeeded {this, "useITkConvSeeded", false, "ITk EM-seeded conversion reco"}
BooleanProperty m_doFastTracking {this, "doFastTracking", false, "ITk fast tracking reco"}
IntegerProperty m_maxNumberSeeds {this, "maxNumberSeeds", 3000000, "Max. number used seeds"}
BooleanProperty m_alwaysProtectAgainstBusyEvent {this, "alwaysProtectAgainstBusyEvents", false, "Flag that enables checking always maxNumberPIXsp and maxNumberSCTsp"}
IntegerProperty m_maxPIXsp {this, "maxNumberPIXsp", 150000, "Max. number pixels space points"}
IntegerProperty m_maxSCTsp {this, "maxNumberSCTsp", 500000, "Max. number sct space points"}
IntegerProperty m_nfreeCut {this, "FreeClustersCut", 1, "Min number free clusters"}
IntegerProperty m_histsize {this, "HistSize", 1400}
IntegerProperty m_nvertex {this, "maxVertices", 4}
DoubleProperty m_zcut {this, "Zcut", 350.}
DoubleProperty m_deltaEta {this, "dEtaCaloRoI", .1}
DoubleProperty m_deltaPhi {this, "dPhiCaloRoI", .25}
DoubleProperty m_deltaZ {this, "dZCaloRoI", 300.}
StringProperty m_fieldmode {this, "MagneticFieldMode", "MapSolenoid"}
BooleanProperty m_doDumpGBTSTrainingData {this, "doDumpGBTSTrainingData", false, "write training data used to create GBTS connection table"}
BooleanProperty m_doDumpGBTSTrainingDataLRT {this, "doDumpGBTSTrainingDataLRT", false, "write LRT training data used to create GBTS connection table"}
BooleanProperty m_removeShortSegments {this, "removeShortSegments", false, "remove short segments from GBTS connection table"}
StringProperty m_GBTSTrainingDataFileName {this, "GBTSTrainingDataFileName", "layer_connection_table.csv", "file to write training data used to create GBTS connection table"}
BooleanProperty m_useVertexPosition {this, "useVertexPosition", false}
FloatProperty m_collisionTollerance {this, "collisionTollerance", 10.}
Data members for new strategy reconstruction
double m_pTcut {500}
double m_imcut {2.}
double m_zstep {0.}
Data handles for StoreGate access in AthenaMT
SG::ReadHandleKey< xAOD::EventInfo > m_evtKey {this, "EventInfoKey", "EventInfo"}
SG::ReadHandleKey< SpacePointContainer > m_SpacePointsSCTKey {this, "SpacePointsSCTName", "SCT_SpacePoints"}
SG::ReadHandleKey< SpacePointContainer > m_SpacePointsPixelKey {this, "SpacePointsPixelName", "PixelSpacePoints"}
SG::ReadHandleKey< Trk::PRDtoTrackMap > m_prdToTrackMap {this,"PRDtoTrackMap",""}
SG::ReadHandleKey< ROIPhiRZContainer > m_caloClusterROIKey {this, "EMROIPhiRZContainer", "InDetCaloClusterROIPhiRZ15GeVUnordered", "Name of the calo cluster ROIs in Phi,R,Z parameterization"}
SG::ReadHandleKey< xAOD::VertexContainer > m_vertices {this, "Vertices", "PrimaryVertices"}
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey {this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot"}
SG::ReadDecorHandleKey< xAOD::EventInfo > m_mbtsKey {this, "MBTSKey", m_evtKey, "MBTSBackground"}
SG::WriteHandleKey< TrackCollection > m_outputTracksKey {this, "TracksLocation", "SiSPSeededTracks"}
Tool handles
ToolHandle< ISiSpacePointsSeedMaker > m_seedsmaker {this, "SeedsTool", "InDet::SiSpacePointsSeedMaker_ATLxk/InDetSpSeedsMaker", "Space poins seed maker"}
ToolHandle< ISiZvertexMaker > m_zvertexmaker {this, "ZvertexTool", "InDet::SiZvertexMaker_xk/InDetSiZvertexMaker", "Space poins z-vertex maker"}
ToolHandle< ISiTrackMaker > m_trackmaker {this, "TrackTool", "InDet::SiTrackMaker_xk/InDetSiTrackMaker", "Track maker"}
PublicToolHandle< Trk::IPatternParametersPropagator > m_proptool {this, "PropagatorTool", "Trk::RungeKuttaPropagator/InDetPropagator"}
ToolHandle< Trk::IExtendedTrackSummaryTool > m_trackSummaryTool {this, "TrackSummaryTool", "InDetTrackSummaryToolNoHoleSearch"}
ToolHandle< IRegSelTool > m_regsel_strip { this, "RegSelTool_Strip", "RegSelTool/RegSelTool_SCT" }
Magnetic field properties
Trk::MagneticFieldProperties m_fieldprop
Service handles
ServiceHandle< IInDetEtaDependentCutsSvc > m_etaDependentCutsSvc {this, "InDetEtaDependentCutsSvc", "InDetEtaDependentCutsSvc"}
 service to get cut values depending on different variable
Counters
Counter_t m_counterTotal ATLAS_THREAD_SAFE {}
std::atomic_int m_neventsTotal {0}
 Number events.
std::atomic_int m_neventsTotalV {0}
 Number events.
std::atomic_int m_problemsTotal {0}
 Number events with number seeds > maxNumber.
std::atomic_int m_problemsTotalV {0}
 Number events with number seeds > maxNumber.
std::mutex m_GBTSTrainingDataMutex
std::map< int, std::map< int, unsigned long > > m_GBTSTrainingData ATLAS_THREAD_SAFE
std::atomic_ulong m_numGBTSTrainingData {0}

Private Types

typedef ServiceHandle< StoreGateSvc > StoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default).
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default).
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Standard Algotithm methods

enum  ECounter { kNSeeds , kNTracks , kNCounter }
 enums for Counter_t More...
 SiSPSeededTrackFinder (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor.
virtual ~SiSPSeededTrackFinder ()=default
virtual StatusCode initialize () override
 Initialisation.
virtual StatusCode execute (const EventContext &ctx) const override
 Execute.
virtual StatusCode finalize () override
virtual bool isClonable () const override
 Make this algorithm clonable.

Detailed Description

Class-algorithm for track finding in Pixels and SCT initiated by space points seeds.

Definition at line 50 of file SiSPSeededTrackFinder.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 376 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ ECounter

Constructor & Destructor Documentation

◆ SiSPSeededTrackFinder()

InDet::SiSPSeededTrackFinder::SiSPSeededTrackFinder ( const std::string & name,
ISvcLocator * pSvcLocator )

Constructor.

Definition at line 70 of file SiSPSeededTrackFinder.cxx.

71 : AthReentrantAlgorithm(name, pSvcLocator)
72{
73}

◆ ~SiSPSeededTrackFinder()

virtual InDet::SiSPSeededTrackFinder::~SiSPSeededTrackFinder ( )
virtualdefault

Member Function Documentation

◆ collectGBTSTrainingData()

void InDet::SiSPSeededTrackFinder::collectGBTSTrainingData ( const Trk::Track * track) const
protected

Definition at line 1220 of file SiSPSeededTrackFinder.cxx.

1220 {
1221
1222 struct VLM_Data {
1223 int vol_id, lay_id, mod_id;
1224 float m_x, m_y, m_z;
1225 };
1226
1227 const PixelID* IDp = 0;
1228 const SCT_ID* IDs = 0;
1229
1230 if (detStore()->retrieve(IDp, "PixelID").isFailure()) {
1231 ATH_MSG_FATAL("Could not get Pixel ID helper");
1232 }
1233
1234 if (detStore()->retrieve(IDs, "SCT_ID").isFailure()) {
1235 ATH_MSG_FATAL("Could not get SCT ID helper");
1236 }
1237
1238 if (!IDs && !IDp) return;
1239
1241
1242 std::vector<VLM_Data> vlm;
1243
1244 for (const auto* s : *track->trackStateOnSurfaces()) {
1245 if (!s->type(Trk::TrackStateOnSurface::Measurement)) continue;
1246
1247 const Trk::MeasurementBase* mb = s->measurementOnTrack();
1248 if (!mb) continue;
1249
1250 const Trk::RIO_OnTrack* ri = dynamic_cast<const Trk::RIO_OnTrack*>(mb);
1251 if (!ri) continue;
1252
1253 const Trk::PrepRawData* rd = ri->prepRawData();
1254 if (!rd) continue;
1255
1256 const InDet::SiCluster* si = dynamic_cast<const InDet::SiCluster*>(rd);
1257 if (!si) continue;
1258
1259 const Amg::Vector3D& pos = s->trackParameters()->position();
1260
1261 if (dynamic_cast<const InDet::PixelCluster*>(si)) { // Pixel
1262
1263 Identifier id = si->identify();
1264
1265 int bec = IDp->barrel_ec(id);
1266
1267 int vol_id = 8;
1268
1269 if (bec == -2) vol_id = 7;
1270 if (bec == 2) vol_id = 9;
1271
1272 if (bec < -2 || bec > 2) continue;
1273
1274 int lay_id = IDp->layer_disk(id);
1275 int eta_mod = IDp->eta_module(id);
1276 int phi_mod = IDp->phi_module(id);
1277
1278 Identifier wafer_id = IDp->wafer_id(bec, lay_id, phi_mod, eta_mod);
1279
1280 int mod_id = IDp->wafer_hash(wafer_id);
1281
1282 int new_vol = 0, new_lay = 0;
1283
1284 if (vol_id == 7 || vol_id == 9) {
1285 new_vol = 10 * vol_id + lay_id;
1286 new_lay = eta_mod;
1287 } else if (vol_id == 8) {
1288 new_lay = 0;
1289 new_vol = 10 * vol_id + lay_id;
1290 }
1291 if (vol_id != 0)
1292 vlm.emplace_back(new_vol, new_lay, mod_id, pos.x(), pos.y(), pos.z());
1293 }
1294
1295 if (IDs && dynamic_cast<const InDet::SCT_Cluster*>(si)) { // SCT
1296
1297 Identifier id = si->identify();
1298
1299 int bec = IDs->barrel_ec(id);
1300
1301 int vol_id = 13;
1302
1303 if (bec < 0) vol_id = 12;
1304 if (bec > 0) vol_id = 14;
1305
1306 int lay_id = IDs->layer_disk(id);
1307 int eta_mod = IDs->eta_module(id);
1308 int phi_mod = IDs->phi_module(id);
1309 int side = IDs->side(id);
1310
1311 Identifier wafer_id = IDs->wafer_id(bec, lay_id, phi_mod, eta_mod, side);
1312
1313 int mod_id = IDs->wafer_hash(wafer_id);
1314
1315 vlm.emplace_back(vol_id, lay_id, mod_id, pos.x(), pos.y(), pos.z());
1316 }
1317 }
1318
1319 // remove single-strip cases where no spacepoint exists
1320
1321 std::vector<VLM_Data> vlm2;
1322
1323 for (std::size_t it1 = 0; it1 < vlm.size() - 1; it1++) {
1324 if (vlm.at(it1).vol_id > 14) { // Pixels
1325 vlm2.push_back(vlm.at(it1));
1326 continue;
1327 }
1328
1329 std::size_t it2 = it1 + 1;
1330
1331 int src = vlm.at(it1).vol_id * 1000 + vlm.at(it1).lay_id;
1332 int dst = vlm.at(it2).vol_id * 1000 + vlm.at(it2).lay_id;
1333
1334 if (src == dst) { // a spacepoint can be formed
1335 vlm2.push_back(vlm.at(it1));
1336 vlm2.push_back(vlm.at(it2));
1337 it1 = it2;
1338 continue;
1339 }
1340 }
1341
1342 // remove track segments which are too short
1344
1345 constexpr float minDist = 20.0;
1346
1347 for (auto it = std::next(vlm2.begin()); it != vlm2.end(); ) {
1348 auto jt = std::prev(it);
1349 float dx = it->m_x - jt->m_x;
1350 float dy = it->m_y - jt->m_y;
1351 float dz = it->m_z - jt->m_z;
1352
1353 float dist = std::sqrt(dx*dx + dy*dy + dz*dz);
1354
1355 if (dist < minDist) it = vlm2.erase(it);
1356 else ++it;
1357 }
1358 }
1359
1360 std::scoped_lock trainingDataLock(m_GBTSTrainingDataMutex);
1361
1362 for (std::size_t it1 = 0; it1 < vlm2.size() - 1; ++it1) {
1363 std::size_t it2 = it1 + 1;
1364
1365 int src = vlm2.at(it1).vol_id * 1000 + vlm2.at(it1).lay_id;
1366 int dst = vlm2.at(it2).vol_id * 1000 + vlm2.at(it2).lay_id;
1367
1368 if (src != dst) { // skip the same layer
1369 auto [im1, new1] = m_GBTSTrainingData.insert({src, {}});
1370 auto [im2, new2] = im1->second.insert({dst, 1ul});
1371 if (!new2) im2->second++;
1372 }
1373 }
1374}
#define ATH_MSG_FATAL(x,...)
const ServiceHandle< StoreGateSvc > & detStore() const
int layer_disk(const Identifier &id) const
Definition PixelID.h:602
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
Definition PixelID.h:355
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0).
Definition PixelID.h:595
IdentifierHash wafer_hash(Identifier wafer_id) const
wafer hash from id
Definition PixelID.h:378
int eta_module(const Identifier &id) const
Definition PixelID.h:627
int phi_module(const Identifier &id) const
Definition PixelID.h:620
int layer_disk(const Identifier &id) const
Definition SCT_ID.h:687
int side(const Identifier &id) const
Definition SCT_ID.h:705
IdentifierHash wafer_hash(const Identifier &wafer_id) const
wafer hash from id - optimized
Definition SCT_ID.h:487
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
Definition SCT_ID.h:459
int phi_module(const Identifier &id) const
Definition SCT_ID.h:693
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0).
Definition SCT_ID.h:681
int eta_module(const Identifier &id) const
Definition SCT_ID.h:699
Identifier identify() const
return the identifier
virtual const Trk::PrepRawData * prepRawData() const =0
returns the PrepRawData (also known as RIO) object to which this RIO_OnTrack is associated.
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.
Eigen::Matrix< double, 3, 1 > Vector3D

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ dump()

MsgStream & InDet::SiSPSeededTrackFinder::dump ( MSG::Level lvl,
const SiSPSeededTrackFinder::Counter_t * counter ) const
protected

Definition at line 811 of file SiSPSeededTrackFinder.cxx.

812{
813 msg(assign_level) <<std::endl;
814 MsgStream& out_msg=msg();
815 if (counter) dumpevent(out_msg ,*counter);
816 else dumptools(out_msg);
817 out_msg << endmsg;
818 return out_msg;
819}
#define endmsg
MsgStream & dumptools(MsgStream &out) const
MsgStream & dumpevent(MsgStream &out, const SiSPSeededTrackFinder::Counter_t &counter) const

◆ dumpevent()

MsgStream & InDet::SiSPSeededTrackFinder::dumpevent ( MsgStream & out,
const SiSPSeededTrackFinder::Counter_t & counter ) const
protected

Definition at line 865 of file SiSPSeededTrackFinder.cxx.

866{
867 out<<"|-------------------------------------------------------------------";
868 out<<"---------------------------------|"
869 <<std::endl;
870 out<<"| Investigated "
871 <<std::setw(9)<<counter[kNSeeds]<<" space points seeds and found ";
872 out<<std::setw(9)<<counter[kNTracks];
873 if (m_ITKGeometry ) out<<" tracks using new strategy for ITK |"<<std::endl;
874 else if (m_useNewStrategy ) out<<" tracks using new strategy ("<<std::setw(2)<< m_nvertex <<") |"<<std::endl;
875 else if (m_useZBoundaryFinding) out<<" tracks using old strategy with Zb |"<<std::endl;
876 else out<<" tracks using old strategy |"<<std::endl;
877
878 out<<"|-------------------------------------------------------------------";
879 out<<"---------------------------------|"
880 <<std::endl;
882 out<<"| Events "
883 <<std::setw(7)<<m_neventsTotal <<" without Z-vertz "
884 <<std::setw(7)<<m_neventsTotalV <<" with Z-vertex |"
885 <<std::endl;
886 out<<"| Problems "
887 <<std::setw(7)<<m_problemsTotal <<" without Z-vertz "
888 <<std::setw(7)<<m_problemsTotalV <<" with Z-vertex |"
889 <<std::endl;
890 out<<"|-------------------------------------------------------------------";
891 out<<"-----------------------------|"
892 <<std::endl;
893 }
894 return out;
895}
std::atomic_int m_problemsTotal
Number events with number seeds > maxNumber.
std::atomic_int m_problemsTotalV
Number events with number seeds > maxNumber.
std::atomic_int m_neventsTotalV
Number events.
std::atomic_int m_neventsTotal
Number events.

◆ dumpGBTSTrainingData()

void InDet::SiSPSeededTrackFinder::dumpGBTSTrainingData ( ) const
protected

Definition at line 1376 of file SiSPSeededTrackFinder.cxx.

1376 {
1377 std::ofstream tableFile(m_GBTSTrainingDataFileName);
1378 tableFile << "from,to,probability,flow\n";
1379
1380 unsigned long nTotal = 0;
1381 for (const auto& [src, conns] : m_GBTSTrainingData) {
1382 unsigned long nTotalDst = 0;
1383 for (const auto& [dst, n] : conns) {
1384 nTotalDst += n;
1385 }
1386 nTotal += nTotalDst;
1387 if (nTotalDst == 0) [[unlikely]] {
1388 throw std::runtime_error("InDet::SiSPSeededTrackFinder::dumpGBTSTrainingData: nTotalDst divisor is zero");
1389 }
1390 for (const auto& [dst, n] : conns) {
1391 double prob = double(n) / double(nTotalDst);
1392 tableFile << src << ", " << dst << ", " << std::fixed << std::setprecision(6) << prob << ", " << prob << '\n';
1393 }
1394 }
1395 ATH_MSG_INFO("GBTS training data from " << m_numGBTSTrainingData << " tracks with " << nTotal << " pairs written to " << m_GBTSTrainingDataFileName.value());
1396}
#define ATH_MSG_INFO(x,...)
#define unlikely(x)

◆ dumptools()

MsgStream & InDet::SiSPSeededTrackFinder::dumptools ( MsgStream & out) const
protected

Definition at line 825 of file SiSPSeededTrackFinder.cxx.

826{
827 int n = 65-m_zvertexmaker.type().size();
828 std::string s1; for (int i=0; i<n; ++i) s1.append(" "); s1.append("|");
829 n = 65-m_seedsmaker.type().size();
830 std::string s2; for (int i=0; i<n; ++i) s2.append(" "); s2.append("|");
831 n = 65-m_trackmaker.type().size();
832 std::string s3; for (int i=0; i<n; ++i) s3.append(" "); s3.append("|");
833 n = 65-m_outputTracksKey.key().size();
834 std::string s4; for (int i=0; i<n; ++i) s4.append(" "); s4.append("|");
835
836 std::string s5;
837 if (m_useZvertexTool) s5= "Yes"; else s5 = "No";
838 n = 65-s5.size(); for (int i=0; i<n; ++i) s5.append(" "); s5.append("|");
839
840 out<<"|----------------------------------------------------------------"
841 <<"----------------------------------------------------|"
842 <<std::endl;
843 out<<"| Use primary vertices z-coordinates finding?| "<<s5
844 <<std::endl;
845 if (m_useZvertexTool) {
846 out<<"| Tool for primary vertices z-coordinates finding | "<<m_zvertexmaker.type()<<s1
847 <<std::endl;
848 }
849 out<<"| Tool for space points seeds finding | "<<m_seedsmaker.type()<<s2
850 <<std::endl;
851 out<<"| Tool for space points seeded track finding | "<<m_trackmaker.type()<<s3
852 <<std::endl;
853 out<<"| Location of output tracks | "<<m_outputTracksKey.key()<<s4
854 <<std::endl;
855 out<<"|----------------------------------------------------------------"
856 <<"----------------------------------------------------|"
857 <<std::endl;
858 return out;
859}
ToolHandle< ISiTrackMaker > m_trackmaker
SG::WriteHandleKey< TrackCollection > m_outputTracksKey
ToolHandle< ISiZvertexMaker > m_zvertexmaker
ToolHandle< ISiSpacePointsSeedMaker > m_seedsmaker

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode InDet::SiSPSeededTrackFinder::execute ( const EventContext & ctx) const
overridevirtual

Execute.

Note that !m_useNewStrategy alone is NOT sufficient to trigger the oldStrategy call here! For example, run-3 central offline Si tracking has m_useNewStrategy=false, but m_useZBoundaryFinding true --> newStrategy

Definition at line 150 of file SiSPSeededTrackFinder.cxx.

151{
157 else if (m_useITkConvSeeded) return itkConvStrategy(ctx);
158 else if (not m_useNewStrategy and not m_useZBoundaryFinding and not m_ITKGeometry) {
159 return oldStrategy(ctx);
160 }
161 return newStrategy(ctx);
162}
StatusCode itkFastTrackingStrategy(const EventContext &ctx) const
EventContext is used to specify which event.
StatusCode itkConvStrategy(const EventContext &ctx) const
EventContext is used to specify which event.
StatusCode newStrategy(const EventContext &ctx) const
this method performs the track finding using the new strategy
StatusCode oldStrategy(const EventContext &ctx) const
this method performs the track finding using the old strategy

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

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 & AthCommonAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 89 of file AthCommonAlgorithm.cxx.

54{
55 // If we didn't find any symlinks to add, just return the collection
56 // from the base class. Otherwise, return the extended collection.
57 if (!m_extendedExtraObjects.empty()) {
59 }
61}
Common base class for algorithms.

◆ fillZHistogram()

void InDet::SiSPSeededTrackFinder::fillZHistogram ( const EventContext & ctx,
const Trk::Track * Tr,
const Trk::PerigeeSurface & beamlinePerigee,
std::vector< int > & numberWeightedhistogram,
std::vector< double > & zWeightedHistogram,
std::vector< double > & ptWeightedHistogram ) const
protected

fills three z0 histograms (non-weighted, weighted by z, and weighted by pt) with the track z at the beam line estimated using the innermost measurement.

the first two parameters are input, the other three output.

Parameters
[in]ctxcurrent EventContext
[in]TrTrack candidate to fill
[in]beamlinePerigeePerigee surface corresponding to the beam spot
[out]numberWeightedhistogramvector representing a histogram in z, counting the tracks per bin
[out]zWeightedHistogramvector representing a histogram in z, counting the tracks per bin weighted by their z values
[out]ptWeightedHistogramvector representing a histogram in z, counting the tracks per bin weighted by their pt values

only take into accounts tracks with a hit inside r < 60mm

propagate from innermost hit to beam spot

determine bin number - m_zstep is the inverse bin width, where the histo axis extends from -m_zcut to +m_zcut

fill histograms if we are not in the over/underflow

simple z histogram, counting tracks per z

z weighted histogram binned in z - used for vertex z calculation

pt weighted histogram binned in z - used for vertex sumpt calculation

Definition at line 1060 of file SiSPSeededTrackFinder.cxx.

1066{
1067
1068 if (Tr->measurementsOnTrack()->size() < 10) return;
1069
1070 const Trk::TrackParameters* paramsAtFirstSurface = Tr->trackStateOnSurfaces()->front()->trackParameters();
1071 Amg::Vector3D position = paramsAtFirstSurface->position() ;
1072 Amg::Vector3D momentum = paramsAtFirstSurface->momentum() ;
1073
1075 constexpr double rSquare_max_forZHisto = 60.*60.;
1076 if (position.x()*position.x()+position.y()*position.y() >= rSquare_max_forZHisto) return;
1077
1078 double pT = sqrt(momentum.x()*momentum.x()+momentum.y()*momentum.y());
1079 if (pT < m_pTcut) return;
1080
1081 Trk::PatternTrackParameters TP;
1082 if (not TP.production(paramsAtFirstSurface)) return;
1083
1084 double step;
1086 if (not m_proptool->propagate(ctx,
1087 TP, beamPosPerigee, TP, Trk::anyDirection, m_fieldprop, step, Trk::pion)) return;
1088
1089 const AmgVector(5)& parsAtBeamSpot = TP.parameters();
1090 if (std::abs(parsAtBeamSpot[0]) > m_imcut) return;
1092 int z = static_cast<int>((parsAtBeamSpot[1]+m_zcut)*m_zstep);
1094 if (z >=0 and z < m_histsize) {
1096 ++numberHistogram[z];
1098 zWeightedHistogram[z] += parsAtBeamSpot[1];
1100 ptWeightedHistogram[z] += pT;
1101 }
1102
1103}
#define AmgVector(rows)
#define z
const T * front() const
Access the first element in the collection as an rvalue.
PublicToolHandle< Trk::IPatternParametersPropagator > m_proptool
Trk::MagneticFieldProperties m_fieldprop
const Amg::Vector3D & momentum() const
Access method for the momentum.
const Amg::Vector3D & position() const
Access method for the position.
bool production(const TrackParameters *)
const TrackParameters * trackParameters() const
return ptr to trackparameters const overload
const Trk::TrackStates * trackStateOnSurfaces() const
return a pointer to a const DataVector of const TrackStateOnSurfaces.
const DataVector< const MeasurementBase > * measurementsOnTrack() const
return a pointer to a vector of MeasurementBase (NOT including any that come from outliers).
@ anyDirection
const Amg::Vector3D & position() const
Method to retrieve the position of the Intersection.
ParametersBase< TrackParametersDim, Charged > TrackParameters

◆ filterPassed()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Get filter decision:

Definition at line 93 of file AthCommonAlgorithm.h.

93 {
94 return execState( ctx ).filterPassed();
95 }
virtual bool filterPassed(const EventContext &ctx) const
Get filter decision:

◆ filterSharedTracks()

void InDet::SiSPSeededTrackFinder::filterSharedTracks ( std::multimap< double, Trk::Track * > & scoredTracks) const
protected

cleans up the collection of quality filtered tracks.

Candidates which share most of their hits (steered by m_freeCut) with higher quality candidates are erased from the multimap

Parameters
[in,out]scoredTracksTrack candidates, sorted by by score, best scored first (implemented by assigning negative sign to scores)

loop over all track candidates, sorted by quality

loop over measurements on the track candidate

get the PRD from the measurement

increase cluster count

and check if the cluster was already used in a previous ( = higher quality) track

if not, record as a free (not prevously used) cluster

check if the track has the minimum number of free clusters or if it has no shared clusters

if this is fulfilled, we keep the candidate add the free clusters to our cluster set

if we do not keep the track, clean up candidate

Definition at line 952 of file SiSPSeededTrackFinder.cxx.

953{
954 std::set<const Trk::PrepRawData*> clusters;
955
956 std::vector<const Trk::PrepRawData*> freeClusters;
957 freeClusters.reserve(15);
958
959 std::multimap<double, Trk::Track*>::iterator it_qualityAndTrack = qualitySortedTracks.begin();
960
962 while (it_qualityAndTrack!=qualitySortedTracks.end()) {
963 freeClusters.clear();
964
965 std::set<const Trk::PrepRawData*>::iterator it_clustersEnd = clusters.end();
966
967 int nClusters = 0;
969 for (const Trk::MeasurementBase* m: *((*it_qualityAndTrack).second->measurementsOnTrack())) {
970
972 const Trk::PrepRawData* pr = (static_cast<const Trk::RIO_OnTrack*>(m))->prepRawData();
973 if (pr) {
975 ++nClusters;
977 if (clusters.find(pr)==it_clustersEnd) {
979 freeClusters.push_back(pr);
980 }
981 }
982 }
983
985 int nFreeClusters = static_cast<int>(freeClusters.size());
986 if (nFreeClusters >= m_nfreeCut || nFreeClusters==nClusters) {
989 clusters.insert(freeClusters.begin(), freeClusters.end());
990 ++it_qualityAndTrack;
991 } else {
993 delete (*it_qualityAndTrack).second;
994 qualitySortedTracks.erase(it_qualityAndTrack++);
995 }
996 }
997}

◆ filterSharedTracksFast()

void InDet::SiSPSeededTrackFinder::filterSharedTracksFast ( std::multimap< double, Trk::Track * > & scoredTracks) const
protected

loop over all track candidates, sorted by quality

loop over track states on surface of the track candidate

get the PRD from the measurement

increase cluster count

and check if the cluster was already used in a previous ( = higher quality) track

if not, record as a free (not prevously used) cluster

add the free clusters to our cluster set

if this is fulfilled, we keep the candidate

if we do not keep the track, clean up candidate

Definition at line 1000 of file SiSPSeededTrackFinder.cxx.

1001{
1002 std::set<const Trk::PrepRawData*> clusters;
1003
1004 std::vector<const Trk::PrepRawData*> freeClusters;
1005 freeClusters.reserve(15);
1006
1007 std::multimap<double, Trk::Track*>::iterator it_qualityAndTrack = qualitySortedTracks.begin();
1008
1010 while (it_qualityAndTrack!=qualitySortedTracks.end()) {
1011 freeClusters.clear();
1012
1013 std::set<const Trk::PrepRawData*>::iterator it_clustersEnd = clusters.end();
1014
1015 int nClusters = 0;
1016 int nPixels = 0;
1018 for (const Trk::TrackStateOnSurface* tsos: *((*it_qualityAndTrack).second->trackStateOnSurfaces())) {
1019
1020 if(!tsos->type(Trk::TrackStateOnSurface::Measurement)) continue;
1021 const Trk::FitQualityOnSurface fq = tsos->fitQualityOnSurface();
1022 if(!fq) continue;
1023 if(fq.numberDoF() == 2) ++nPixels;
1024
1026 const Trk::MeasurementBase* mb = tsos->measurementOnTrack();
1027 const Trk::RIO_OnTrack* ri = dynamic_cast<const Trk::RIO_OnTrack*>(mb);
1028 if(!ri) continue;
1029 const Trk::PrepRawData* pr = ri->prepRawData();
1030 if (pr) {
1032 ++nClusters;
1034 if (clusters.find(pr)==it_clustersEnd) {
1036 freeClusters.push_back(pr);
1037 }
1038 }
1039 }
1040
1042 clusters.insert(freeClusters.begin(), freeClusters.end());
1043
1044 int nFreeClusters = static_cast<int>(freeClusters.size());
1045 if( passEtaDepCuts( (*it_qualityAndTrack).second, nClusters, nFreeClusters, nPixels) ){
1047 ++it_qualityAndTrack;
1048 } else {
1050 delete (*it_qualityAndTrack).second;
1051 qualitySortedTracks.erase(it_qualityAndTrack++);
1052 }
1053 }
1054}
bool passEtaDepCuts(const Trk::Track *track, int nClusters, int nFreeClusters, int nPixels) const
int numberDoF() const
returns the number of degrees of freedom of the overall track or vertex fit as integer
Definition FitQuality.h:60

◆ finalize()

StatusCode InDet::SiSPSeededTrackFinder::finalize ( )
overridevirtual

Definition at line 796 of file SiSPSeededTrackFinder.cxx.

797{
798
799 dump(MSG::INFO, &m_counterTotal);
800
803 }
804 return StatusCode::SUCCESS;
805}
MsgStream & dump(MSG::Level lvl, const SiSPSeededTrackFinder::Counter_t *) const

◆ findZvertex()

void InDet::SiSPSeededTrackFinder::findZvertex ( std::list< Trk::Vertex > & vertexList,
std::pair< double, double > & zBoundaries,
const std::vector< int > & numberWeightedhistogram,
const std::vector< double > & zWeightedHistogram,
const std::vector< double > & ptWeightedHistogram ) const
protected

estimates a set of vertex positions and a z interval for the second track finding pass using the input histograms populated using fillZHistogram.

the first two arguments serve as output, while the three histograms are input.

Parameters
[out]vertexList- will be populated with vertex candidates if m_useNewStrategy is set
[out]zBoundaries- will be populated with edges of a z interval corresponding to the estimated vertex locations
[in]numberWeightedhistogramvector representing a histogram in z, counting the tracks per bin
[in]zWeightedHistogramvector representing a histogram in z, counting the tracks per bin weighted by their z values
[in]ptWeightedHistogramvector representing a histogram in z, counting the tracks per bin weighted by their pt values

loop over the bins in z. Start with the second, end with the second to last, as we investigate triplets of bins

total entries in the three neighbouring bins

if we have at least 3 tracks in this z0 interval with the peak of the local triplet in the central bin, add a vertex candidate

vertex z estimate as the mean z0 of the tracks in the three bins

if this vertex is to the left of the lower edge or the right of the upper edge, broaden the z interval accordingly to include this vertex.

also get the sum(pt) of the vertex candidate

stop when we have collected the requested number of leading vertices

insert one vertex from the ntracks-sorted list and one from the pt-sorted list. If both are the same, only one insertion is performed

if we did not find any PV candidates, assume a very wide interval

otherwise, add a reasonable bit of space on each side of the first / last vertex candidate

Definition at line 1109 of file SiSPSeededTrackFinder.cxx.

1114{
1115 zBoundaries = {1000., -1000};
1116
1117 std::multimap<int ,double> vertexZ_sortedByNtracks;
1118 std::multimap<double,double> vertexZ_sortedBySumPt;
1119
1120 int lastBin = m_histsize-1;
1121 int minBinContentSum = 3;
1122
1124 for (int binIndex=1; binIndex<lastBin; ++binIndex) {
1125
1127 int vertexNtracks = numberHistogram.at(binIndex-1)+numberHistogram.at(binIndex)+numberHistogram.at(binIndex+1);
1128
1131 if (vertexNtracks>=minBinContentSum and (numberHistogram.at(binIndex) >= numberHistogram.at(binIndex-1) and numberHistogram.at(binIndex) >= numberHistogram.at(binIndex+1))) {
1133 double vertexZestimate = (zWeightedHistogram.at(binIndex-1)+zWeightedHistogram.at(binIndex)+zWeightedHistogram.at(binIndex+1))/static_cast<double>(vertexNtracks);
1134
1137 if (vertexZestimate < zBoundaries.first) zBoundaries.first = vertexZestimate;
1138 if (vertexZestimate > zBoundaries.second) zBoundaries.second = vertexZestimate;
1139
1140 if (m_useNewStrategy) {
1142 double vertexSumPt = ptWeightedHistogram.at(binIndex-1)+ptWeightedHistogram.at(binIndex)+ptWeightedHistogram.at(binIndex+1);
1143 vertexZ_sortedByNtracks.insert(std::make_pair(-vertexNtracks, vertexZestimate));
1144 vertexZ_sortedBySumPt.insert(std::make_pair(-vertexSumPt, vertexZestimate));
1145 }
1146 }
1147 }
1148
1149 if (m_useNewStrategy) {
1150
1151 std::set<double> leadingVertices;
1152 int n = 0;
1153 std::multimap<double, double>::iterator vertex_pt_and_z = vertexZ_sortedBySumPt.begin();
1154 for (std::pair<int, double> nTrackAndZ: vertexZ_sortedByNtracks) {
1156 if (n++ >= m_nvertex) break;
1159 leadingVertices.insert(nTrackAndZ.second);
1160 leadingVertices.insert((*vertex_pt_and_z++).second);
1161 }
1162
1163 for (double v: leadingVertices) {
1164 vertexZList.emplace_back(Amg::Vector3D{0.,0.,v});
1165 }
1166 }
1168 if (zBoundaries.first > zBoundaries.second) {
1169 zBoundaries.first = -1000.;
1170 zBoundaries.second = +1000.;
1171 } else {
1173 zBoundaries.first -= 20.;
1174 zBoundaries.second += 20.;
1175 }
1176}
unsigned int binIndex(const T &val, const std::vector< T > &partitions)
general utility function to return bin index given a value and the upper endpoints of each bin
double vertexSumPt(const TrackCollection &tracks)
Definition T2Vertex.cxx:71

◆ initialize()

StatusCode InDet::SiSPSeededTrackFinder::initialize ( )
overridevirtual

Initialisation.

optional PRD to track association map

Get tool for space points seed maker

Get track-finding tool

Get RungeKutta propagator tool

Setup for magnetic field

Setup for Z-histograms

Get output print level

Definition at line 79 of file SiSPSeededTrackFinder.cxx.

80{
81 ATH_MSG_INFO("Initializing " << name() << " ...");
82 ATH_CHECK(m_evtKey.initialize());
83 ATH_CHECK(m_mbtsKey.initialize(m_useMBTS));
86 ATH_CHECK(m_outputTracksKey.initialize());
87
89
91 ATH_CHECK( m_prdToTrackMap.initialize( !m_prdToTrackMap.key().empty() ) );
92
94
96 ATH_CHECK( m_seedsmaker.retrieve() );
97 ATH_CHECK( m_zvertexmaker.retrieve( DisableTool{ not m_useZvertexTool } ));
98
100 ATH_CHECK( m_trackmaker.retrieve());
101
102 ATH_CHECK( m_regsel_strip.retrieve( DisableTool{ not m_useITkConvSeeded } ) );
103
105
106 ATH_CHECK( m_trackSummaryTool.retrieve( DisableTool{ m_trackSummaryTool.name().empty()} ));
107
108 if (m_useNewStrategy and m_beamSpotKey.key().empty()) {
109 m_useNewStrategy = false;
110 m_useZBoundaryFinding = false;
111 }
112
115
116 if (not m_beamSpotKey.key().empty()) {
118 ATH_CHECK( m_proptool.retrieve() );
119
122
124 if (m_histsize < 100) m_histsize = 100;
125 m_zstep = static_cast<double>(m_histsize)/(2.*m_zcut);
126 } else {
127 m_proptool.disable();
128 m_useNewStrategy = false;
129 m_useZBoundaryFinding = false;
130 }
131 } else {
132 m_proptool.disable();
133 }
134
136 if (msgLvl(MSG::DEBUG)) {
137 dump(MSG::DEBUG, nullptr);
138 }
139 m_neventsTotal = 0;
140 m_neventsTotalV = 0;
141 m_problemsTotal = 0;
143 return StatusCode::SUCCESS;
144}
#define ATH_CHECK
Evaluate an expression and check for errors.
bool msgLvl(const MSG::Level lvl) const
SG::ReadHandleKey< SpacePointContainer > m_SpacePointsSCTKey
SG::ReadHandleKey< ROIPhiRZContainer > m_caloClusterROIKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
SG::ReadHandleKey< xAOD::VertexContainer > m_vertices
SG::ReadDecorHandleKey< xAOD::EventInfo > m_mbtsKey
ToolHandle< IRegSelTool > m_regsel_strip
SG::ReadHandleKey< Trk::PRDtoTrackMap > m_prdToTrackMap
SG::ReadHandleKey< xAOD::EventInfo > m_evtKey
SG::ReadHandleKey< SpacePointContainer > m_SpacePointsPixelKey
ToolHandle< Trk::IExtendedTrackSummaryTool > m_trackSummaryTool
ServiceHandle< IInDetEtaDependentCutsSvc > m_etaDependentCutsSvc
service to get cut values depending on different variable

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

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::SiSPSeededTrackFinder::isClonable ( ) const
inlineoverridevirtual

Make this algorithm clonable.

Reimplemented from AthCommonAlgorithm< Gaudi::Algorithm >.

Definition at line 70 of file SiSPSeededTrackFinder.h.

70{ return true; };

◆ isGoodEvent()

bool InDet::SiSPSeededTrackFinder::isGoodEvent ( const EventContext & ctx) const
protected

EventContext is used to specify which event.

Definition at line 901 of file SiSPSeededTrackFinder.cxx.

901 {
902
903 if ( not m_alwaysProtectAgainstBusyEvent ) { // if not enabled the protection is only applied to specific events
904 // Test MBTS information from calorimeter
905 //
906 if (not m_useMBTS) return true;
907
908 SG::ReadHandle<xAOD::EventInfo> eventInfo{m_evtKey, ctx};
909 if (not eventInfo->isEventFlagBitSet(xAOD::EventInfo::Background, xAOD::EventInfo::MBTSTimeDiffHalo) ) {
910 return true;
911 }
912 }
913
914 // Test total number pixels space points
915 //
916 unsigned int nsp = 0;
917 if (not m_SpacePointsPixelKey.empty()) {
918 SG::ReadHandle<SpacePointContainer> spacePointsPixel{m_SpacePointsPixelKey, ctx};
919 if (spacePointsPixel.isValid()) {
920 for (const SpacePointCollection* spc: *spacePointsPixel) {
921 nsp += spc->size();
922 }
923 if (static_cast<int>(nsp) > m_maxPIXsp) {
924 ATH_MSG_WARNING("Found more than "<<m_maxPIXsp<<" pixels space points in background event. Skip track finding");
925 return false;
926 }
927 }
928 }
929 // Test total number sct space points
930 //
931 nsp = 0;
932 if (not m_SpacePointsSCTKey.empty()) {
933 SG::ReadHandle<SpacePointContainer> spacePointsSCT{m_SpacePointsSCTKey, ctx};
934 if (spacePointsSCT.isValid()) {
935 for (const SpacePointCollection* spc: *spacePointsSCT) {
936 nsp += spc->size();
937 }
938 if (static_cast<int>(nsp) > m_maxSCTsp) {
939 ATH_MSG_WARNING("Found more than "<<m_maxSCTsp<<" sct space points in background event. Skip track finding");
940 return false;
941 }
942 }
943 }
944
945 return true;
946}
#define ATH_MSG_WARNING(x,...)
virtual bool isValid() override final
Can the handle be successfully dereferenced?
@ Background
The beam background detectors.

◆ itkConvStrategy()

StatusCode InDet::SiSPSeededTrackFinder::itkConvStrategy ( const EventContext & ctx) const
protected

EventContext is used to specify which event.

For HI events we can use MBTS information from calorimeter

set up the seed maker for first pass

and run seeding - starting with an empty list of vertices for the first pass

set up the track maker

prepare a collection for the quality-sorted track canddiates

Get the value of the seed maker validation ntuple writing switch

Loop through all seeds from the first pass and attempt to form track candidates

copy all the tracks into trackList

record track candidates found, using combinatorial track finding, from the given seed

Call the ntuple writing method

Remove shared tracks with worse quality

Save good tracks in track collection

Note that for run-3 the tool here is configured to not perform a hole search, regardless of the 'false' argument below

Check if we have a hole search result for this guy

If yes: Write this information into the track summary.

Definition at line 644 of file SiSPSeededTrackFinder.cxx.

645{
646 ATH_MSG_DEBUG("Executing " << name() << "::itkConvStrategy");
647
648 SG::WriteHandle<TrackCollection> outputTracks{m_outputTracksKey, ctx};
649 ATH_CHECK(outputTracks.record(std::make_unique<TrackCollection>()));
651 if (not isGoodEvent(ctx)) {
652 return StatusCode::SUCCESS;
653 }
654
655 SiSpacePointsSeedMakerEventData seedEventData;
656
657 SG::ReadHandle<ROIPhiRZContainer> calo_rois(m_caloClusterROIKey, ctx);
658 std::unique_ptr<RoiDescriptor> roiComp = std::make_unique<RoiDescriptor>(true);
659
660 if(calo_rois.isValid()) {
661 RoiDescriptor * roi =nullptr;
662 SG::ReadCondHandle<InDet::BeamSpotData> beamSpotHandle{m_beamSpotKey, ctx};
663 double beamZ = beamSpotHandle->beamVtx().position().z();
664 roiComp->clear();
665 roiComp->setComposite();
666
667 const ROIPhiRZContainer &calo_rois_ref=*calo_rois;
668 for (const ROIPhiRZ &calo_roi : calo_rois_ref) {
669 double phi = calo_roi.phi();
670 if (std::abs(phi)>=M_PI && phi!=-M_PI) continue; // skip duplicates < -pi and >pi
671 double eta = calo_roi.eta();
672 double z = beamZ;
673 double roiPhiMin = phi - m_deltaPhi;
674 double roiPhiMax = phi + m_deltaPhi;
675 double roiEtaMin = eta - m_deltaEta;
676 double roiEtaMax = eta + m_deltaEta;
677 double roiZMin = beamZ - m_deltaZ;
678 double roiZMax = beamZ + m_deltaZ;
679 roi = new RoiDescriptor( eta, roiEtaMin, roiEtaMax,phi, roiPhiMin ,roiPhiMax,z,roiZMin,roiZMax);
680 roiComp->push_back(roi);
681 }
682 }
683 else {
684 ATH_MSG_ERROR("Calo RoI is not valid: " << m_caloClusterROIKey.key());
685 return StatusCode::FAILURE;
686 }
687
688 std::vector<IdentifierHash> listOfStripIds;
689 std::vector<IdentifierHash> listOfPixIds;
690
691 m_regsel_strip->lookup(ctx)->HashIDList( *roiComp, listOfStripIds );
692
694 m_seedsmaker->newRegion(ctx, seedEventData, listOfPixIds, listOfStripIds);
695 std::list<Trk::Vertex> vertexList;
697 m_seedsmaker->find3Sp(ctx, seedEventData, vertexList);
698
699 const bool PIX = true ;
700 const bool STRIP = true ;
701 //Local variable trackEventData uses 814592 bytes of stack space
702 //coverity[STACK_USE]
703 InDet::ExtendedSiTrackMakerEventData_xk trackEventData(m_prdToTrackMap);
705 m_trackmaker->newEvent(ctx, trackEventData, PIX, STRIP);
706
707 bool ERR = false;
709 const InDet::SiSpacePointsSeed* seed = nullptr;
710
712 std::multimap<double, Trk::Track*> qualitySortedTrackCandidates;
713
715 bool doWriteNtuple = m_seedsmaker->getWriteNtupleBoolProperty();
716 long EvNumber = 0.; //Event number variable to be used for the validation ntuple
717
718 if (doWriteNtuple) {
719 SG::ReadHandle<xAOD::EventInfo> eventInfo(m_evtKey,ctx);
720 if(!eventInfo.isValid()) {EvNumber = -1.0;} else {EvNumber = eventInfo->eventNumber();}
721 }
722
724 while ((seed = m_seedsmaker->next(ctx, seedEventData))) {
725
726 ++counter[kNSeeds];
727
729 std::list<Trk::Track*> trackList = m_trackmaker->getTracks(ctx, trackEventData, seed->spacePoints());
731 for (Trk::Track* t: trackList) {
732 qualitySortedTrackCandidates.insert(std::make_pair(-trackQuality(t), t));
733 }
734
736 if(doWriteNtuple) { m_seedsmaker->writeNtuple(seed, !trackList.empty() ? trackList.front() : nullptr, ISiSpacePointsSeedMaker::StripSeed, EvNumber) ; }
737
738 if (counter[kNSeeds] >= m_maxNumberSeeds) {
739 ERR = true;
741 break;
742 }
743 }
744
745 m_trackmaker->endEvent(trackEventData);
746
748 filterSharedTracks(qualitySortedTrackCandidates);
749
751 for (const std::pair<const double, Trk::Track*> & qualityAndTrack: qualitySortedTrackCandidates) {
752 ++counter[kNTracks];
753 if (m_trackSummaryTool.isEnabled()) {
756 m_trackSummaryTool->computeAndReplaceTrackSummary(ctx, *qualityAndTrack.second,
757 false /* DO NOT suppress hole search*/);
758 InDet::PatternHoleSearchOutcome theOutcome;
760 if (m_writeHolesFromPattern && trackEventData.combinatorialData().findPatternHoleSearchOutcome(qualityAndTrack.second,theOutcome)){
762 qualityAndTrack.second->trackSummary()->update(Trk::numberOfPixelHoles, theOutcome.nPixelHoles);
763 qualityAndTrack.second->trackSummary()->update(Trk::numberOfSCTHoles, theOutcome.nSCTHoles);
764 qualityAndTrack.second->trackSummary()->update(Trk::numberOfSCTDoubleHoles, theOutcome.nSCTDoubleHoles);
765 qualityAndTrack.second->trackSummary()->update(Trk::numberOfSCTDeadSensors, theOutcome.nSCTDeads);
766 qualityAndTrack.second->trackSummary()->update(Trk::numberOfPixelDeadSensors, theOutcome.nPixelDeads);
767 }
768 }
769 outputTracks->push_back(qualityAndTrack.second);
770 }
771
772 m_counterTotal[kNSeeds] += counter[kNSeeds] ;
773
775
776 if (ERR) {
777 outputTracks->clear();
778 } else {
779 m_counterTotal[kNTracks] += counter[kNTracks];
780 }
781
782 // Print common event information
783 //
784 if (msgLvl(MSG::DEBUG)) {
785 dump(MSG::DEBUG, &counter);
786 }
787 return StatusCode::SUCCESS;
788}
#define M_PI
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
void filterSharedTracks(std::multimap< double, Trk::Track * > &scoredTracks) const
cleans up the collection of quality filtered tracks.
bool isGoodEvent(const EventContext &ctx) const
EventContext is used to specify which event.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
@ numberOfSCTHoles
number of Holes in both sides of a SCT module
@ numberOfPixelHoles
number of pixels which have a ganged ambiguity.
@ numberOfPixelDeadSensors
number of pixel hits with broad errors (width/sqrt(12))

◆ itkFastTrackingStrategy()

StatusCode InDet::SiSPSeededTrackFinder::itkFastTrackingStrategy ( const EventContext & ctx) const
protected

EventContext is used to specify which event.

set up the track maker

We run a single passe of seeding & track finding with PPP seeds

Set up the first pass (pixel seeds), and prepare to obtain a vertex Z estimate from the candidates we find

set up the seed maker for first pass

and run seeding - starting with an empty list of vertices for the first pass

prepare a collection for the quality-sorted track canddiates

Get the value of the seed maker validation ntuple writing switch

Loop through all seeds from the first pass and attempt to form track candidates

copy all the tracks into trackList

record track candidates found, using combinatorial track finding, from the given seed

Call the ntuple writing method

Remove shared tracks with worse quality

Save good tracks in track collection

Check if we have a hole search result for this guy

If yes: Write this information into the track summary.

Definition at line 526 of file SiSPSeededTrackFinder.cxx.

527{
528 SG::WriteHandle<TrackCollection> outputTracks{m_outputTracksKey, ctx};
529 ATH_CHECK(outputTracks.record(std::make_unique<TrackCollection>()));
530
531 const bool PIX = true ;
532 const bool STRIP = true ;
533 // Local variable trackEventData uses 814592 bytes of stack space
534 //coverity[STACK_USE]
535 InDet::ExtendedSiTrackMakerEventData_xk trackEventData(m_prdToTrackMap);
537 m_trackmaker->newTrigEvent(ctx, trackEventData, PIX, STRIP);
538
539 SiSpacePointsSeedMakerEventData seedEventData;
540
544
549
551 m_seedsmaker->newEvent(ctx, seedEventData, 0);
552 std::list<Trk::Vertex> vertexList;
554 m_seedsmaker->find3Sp(ctx, seedEventData, vertexList);
555
556 bool ERR = false;
558 const InDet::SiSpacePointsSeed* seed = nullptr;
559
561 std::multimap<double, Trk::Track*> qualitySortedTrackCandidates;
562
564 bool doWriteNtuple = m_seedsmaker->getWriteNtupleBoolProperty();
565 long EvNumber = 0.; //Event number variable to be used for the validation ntuple
566
567 if (doWriteNtuple) {
568 SG::ReadHandle<xAOD::EventInfo> eventInfo(m_evtKey,ctx);
569 if(!eventInfo.isValid()) {EvNumber = -1.0;} else {EvNumber = eventInfo->eventNumber();}
570 }
571
573 while ((seed = m_seedsmaker->next(ctx, seedEventData))) {
574
575 ++counter[kNSeeds];
576
578 std::list<Trk::Track*> trackList = m_trackmaker->getTracks(ctx, trackEventData, seed->spacePoints());
580 for (Trk::Track* t: trackList) {
581
582 qualitySortedTrackCandidates.insert(std::make_pair(-trackQuality(t), t));
583
584 }
586 if(doWriteNtuple) { m_seedsmaker->writeNtuple(seed, !trackList.empty() ? trackList.front() : nullptr, ISiSpacePointsSeedMaker::PixelSeed, EvNumber) ; }
587
588 if (counter[kNSeeds] >= m_maxNumberSeeds) {
589 ERR = true;
591 break;
592 }
593 }
594
595 m_trackmaker->endEvent(trackEventData);
596
598 filterSharedTracksFast(qualitySortedTrackCandidates);
599
601 for (const std::pair<const double, Trk::Track*> & qualityAndTrack: qualitySortedTrackCandidates) {
602 ++counter[kNTracks];
603
604 if (m_trackSummaryTool.isEnabled()) {
605 m_trackSummaryTool->computeAndReplaceTrackSummary(ctx, *qualityAndTrack.second);
606 InDet::PatternHoleSearchOutcome theOutcome;
608 if (m_writeHolesFromPattern && trackEventData.combinatorialData().findPatternHoleSearchOutcome(qualityAndTrack.second,theOutcome)){
610 qualityAndTrack.second->trackSummary()->update(Trk::numberOfPixelHoles, theOutcome.nPixelHoles);
611 qualityAndTrack.second->trackSummary()->update(Trk::numberOfSCTHoles, theOutcome.nSCTHoles);
612 qualityAndTrack.second->trackSummary()->update(Trk::numberOfSCTDoubleHoles, theOutcome.nSCTDoubleHoles);
613 qualityAndTrack.second->trackSummary()->update(Trk::numberOfSCTDeadSensors, theOutcome.nSCTDeads);
614 qualityAndTrack.second->trackSummary()->update(Trk::numberOfPixelDeadSensors, theOutcome.nPixelDeads);
615 }
616 }
617
618 outputTracks->push_back(qualityAndTrack.second);
619 }
620
621 m_counterTotal[kNSeeds] += counter[kNSeeds] ;
622
624
625 if (ERR) {
626 outputTracks->clear();
627 } else {
628 m_counterTotal[kNTracks] += counter[kNTracks];
629 }
630
631 // Print common event information
632 //
633 if (msgLvl(MSG::DEBUG)) {
634 dump(MSG::DEBUG, &counter);
635 }
636 return StatusCode::SUCCESS;
637}
void filterSharedTracksFast(std::multimap< double, Trk::Track * > &scoredTracks) const

◆ magneticFieldInit()

void InDet::SiSPSeededTrackFinder::magneticFieldInit ( )
protected

Definition at line 1183 of file SiSPSeededTrackFinder.cxx.

1184{
1185 // Build MagneticFieldProperties
1186 //
1187 if(m_fieldmode == "NoField") {
1188 m_fieldprop = Trk::MagneticFieldProperties(Trk::NoField);
1189 } else {
1190 m_fieldprop = Trk::MagneticFieldProperties(Trk::FastField);
1191 }
1192}
@ FastField
call the fast field access method of the FieldSvc
@ NoField
Field is set to 0., 0., 0.,.

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ newStrategy()

StatusCode InDet::SiSPSeededTrackFinder::newStrategy ( const EventContext & ctx) const
protected

this method performs the track finding using the new strategy

EventContext is used to specify which event

For HI events we can use MBTS information from calorimeter

Get beam information and preparation for z -histogramming

We run two passes of seeding & track finding.

First, we use strip seeds, perform finding with them and obtain an estimate of the beam spot region from the found tracks.

Then, we run PPP-seeded tracking within the resulting z interval.

Set up the first pass (strip seeds), and prepare to obtain a vertex Z estimate from the candidates we find

set up the seed maker for first pass

and run seeding - starting with an empty list of vertices for the first pass

set up the track maker

initialize empty histograms for the vertex estimate

prepare a collection for the quality-sorted track canddiates

Get the value of the seed maker validation ntuple writing switch

Loop through all seeds from the first pass and attempt to form track candidates

we only want to fill the Z histo with the first candidate for each seed.

copy all the tracks into trackList

record track candidates found, using combinatorial track finding, from the given seed

For the first (highest quality) track from each seed, populate the vertex finding histograms

Call the ntuple writing method

Now set up the second seeding pass, using pixel seeds The seed maker will internally reconfigure itself based on the "1" argument for the "iteration" argument in this call.

perform vertex Z estimation and run second seeding pass

Estimate a Z vertex interval and, if running the new strategy, also a list of the HS candidates

pass the Z boundary pair c-array-style to satisfy existing interfaces of the seeds maker family. Trigger second seed finding pass (PPP)

Again, loop over the newly found seeds and attempt to form track candidates

Remove shared tracks with worse quality

Save good tracks in track collection

Note that for run-3 the tool here is configured to not perform a hole search, regardless of the 'false' argument below

Check if we have a hole search result for this guy

If yes: Write this information into the track summary.

Definition at line 311 of file SiSPSeededTrackFinder.cxx.

312{
313 SG::WriteHandle<TrackCollection> outputTracks{m_outputTracksKey, ctx};
314 ATH_CHECK(outputTracks.record(std::make_unique<TrackCollection>()));
316 if (not isGoodEvent(ctx)) {
317 return StatusCode::SUCCESS;
318 }
319
321 SG::ReadCondHandle<InDet::BeamSpotData> beamSpotHandle{m_beamSpotKey, ctx};
322 Trk::PerigeeSurface beamPosPerigee(beamSpotHandle->beamPos());
323
324 SiSpacePointsSeedMakerEventData seedEventData;
325
327 SG::ReadHandle<xAOD::VertexContainer> verticesHandle = SG::makeHandle(m_vertices, ctx);
328 ATH_CHECK( verticesHandle.isValid() );
329 const xAOD::VertexContainer *vertices = verticesHandle.cptr();
330
331 const xAOD::Vertex* primaryVertex = nullptr;
332 for (const xAOD::Vertex* vtx : *vertices) {
333 if (vtx->vertexType() != xAOD::VxType::PriVtx) continue;
334 primaryVertex = vtx;
335 break;
336 }
337
338 if (primaryVertex == nullptr) {
339 ATH_MSG_ERROR("Could not find the primary vertex");
340 primaryVertex = vertices->front();
341 }
342
343 seedEventData.zCollisionMinimum = primaryVertex->z() - m_collisionTollerance;
344 seedEventData.zCollisionMaximum = primaryVertex->z() + m_collisionTollerance;
345 }
354
359
361 m_seedsmaker->newEvent(ctx, seedEventData, 0);
362 std::list<Trk::Vertex> vertexList;
364 m_seedsmaker->find3Sp(ctx, seedEventData, vertexList);
365
366 const bool PIX = true ;
367 const bool SCT = true ;
368 //Total stack use for this function is 831736 bytes.
369 //coverity[STACK_USE]
370 InDet::ExtendedSiTrackMakerEventData_xk trackEventData(m_prdToTrackMap);
372 m_trackmaker->newEvent(ctx, trackEventData, PIX, SCT);
373
375 std::vector<int> numberHistogram(m_histsize, 0);
376 std::vector<double> zWeightedHistogram(m_histsize, 0.);
377 std::vector<double> ptWeightedHistogram(m_histsize, 0.);
378
379 bool ERR = false;
381 const InDet::SiSpacePointsSeed* seed = nullptr;
382
384 std::multimap<double, Trk::Track*> qualitySortedTrackCandidates;
385
387 bool doWriteNtuple = m_seedsmaker->getWriteNtupleBoolProperty();
388 long EvNumber = 0.; //Event number variable to be used for the validation ntuple
389
390 if (doWriteNtuple) {
391 SG::ReadHandle<xAOD::EventInfo> eventInfo(m_evtKey,ctx);
392 if(!eventInfo.isValid()) {EvNumber = -1.0;} else {EvNumber = eventInfo->eventNumber();}
393 }
394
396 while ((seed = m_seedsmaker->next(ctx, seedEventData))) {
397
398 ++counter[kNSeeds];
400 bool firstTrack{true};
401
403 std::list<Trk::Track*> trackList = m_trackmaker->getTracks(ctx, trackEventData, seed->spacePoints());
405 for (Trk::Track* t: trackList) {
406
407 qualitySortedTrackCandidates.insert(std::make_pair(-trackQuality(t), t));
408
409 if (firstTrack && m_doDumpGBTSTrainingDataLRT) {
411 }
412
414 if (firstTrack and not m_ITKGeometry) {
415 fillZHistogram(ctx, t, beamPosPerigee, numberHistogram, zWeightedHistogram, ptWeightedHistogram);
416 }
417 firstTrack = false;
418 }
420 if(doWriteNtuple) { m_seedsmaker->writeNtuple(seed, !trackList.empty() ? trackList.front() : nullptr, ISiSpacePointsSeedMaker::StripSeed, EvNumber) ; }
421
422
423 if (counter[kNSeeds] >= m_maxNumberSeeds) {
424 ERR = true;
426 break;
427 }
428 }
429
434 if(not m_SpacePointsPixelKey.empty()) {
435 m_seedsmaker->newEvent(ctx, seedEventData, 1);
436
438 std::pair<double,double> zBoundaries;
439 if (not m_ITKGeometry) {
441 findZvertex(vertexList, zBoundaries, numberHistogram, zWeightedHistogram, ptWeightedHistogram);
444 m_seedsmaker->find3Sp(ctx, seedEventData, vertexList, &(zBoundaries.first));
445 } else {
446 m_seedsmaker->find3Sp(ctx, seedEventData, vertexList);
447 }
448
450 while ((seed = m_seedsmaker->next(ctx, seedEventData))) {
451
452 ++counter[kNSeeds];
453
454 std::list<Trk::Track*> trackList = m_trackmaker->getTracks(ctx, trackEventData, seed->spacePoints());
455
456 for (Trk::Track* t: trackList) {
457 qualitySortedTrackCandidates.insert(std::make_pair(-trackQuality(t), t));
458 }
459
460 if(doWriteNtuple) { m_seedsmaker->writeNtuple(seed, !trackList.empty() ? trackList.front() : nullptr, ISiSpacePointsSeedMaker::PixelSeed, EvNumber); }
461
462 if (counter[kNSeeds] >= m_maxNumberSeeds) {
463 ERR = true;
465 break;
466 }
467 }
468 } else {
469 ATH_MSG_WARNING("SpacePointsPixelKey is empty. Skipping the second seeding pass that uses pixel seeds.");
470 }
471
472 m_trackmaker->endEvent(trackEventData);
473
475 filterSharedTracks(qualitySortedTrackCandidates);
476
478 for (const std::pair<const double, Trk::Track*> & qualityAndTrack: qualitySortedTrackCandidates) {
479 ++counter[kNTracks];
480 if (m_trackSummaryTool.isEnabled()) {
483 m_trackSummaryTool->computeAndReplaceTrackSummary(ctx, *qualityAndTrack.second,
484 false /* DO NOT suppress hole search*/);
485 InDet::PatternHoleSearchOutcome theOutcome;
487 if (m_writeHolesFromPattern && trackEventData.combinatorialData().findPatternHoleSearchOutcome(qualityAndTrack.second,theOutcome)){
489 qualityAndTrack.second->trackSummary()->update(Trk::numberOfPixelHoles, theOutcome.nPixelHoles);
490 qualityAndTrack.second->trackSummary()->update(Trk::numberOfSCTHoles, theOutcome.nSCTHoles);
491 qualityAndTrack.second->trackSummary()->update(Trk::numberOfSCTDoubleHoles, theOutcome.nSCTDoubleHoles);
492 qualityAndTrack.second->trackSummary()->update(Trk::numberOfSCTDeadSensors, theOutcome.nSCTDeads);
493 qualityAndTrack.second->trackSummary()->update(Trk::numberOfPixelDeadSensors, theOutcome.nPixelDeads);
494 }
495 }
496 outputTracks->push_back(qualityAndTrack.second);
498 collectGBTSTrainingData(qualityAndTrack.second);
499 }
500 }
501
502 m_counterTotal[kNSeeds] += counter[kNSeeds] ;
503
505
506 if (ERR) {
507 outputTracks->clear();
508 } else {
509 m_counterTotal[kNTracks] += counter[kNTracks];
510 }
511
512 // Print common event information
513 //
514 if (msgLvl(MSG::DEBUG)) {
515 dump(MSG::DEBUG, &counter);
516 }
517 return StatusCode::SUCCESS;
518}
@ SCT
Definition RegSelEnums.h:25
void collectGBTSTrainingData(const Trk::Track *) const
void fillZHistogram(const EventContext &ctx, const Trk::Track *Tr, const Trk::PerigeeSurface &beamlinePerigee, std::vector< int > &numberWeightedhistogram, std::vector< double > &zWeightedHistogram, std::vector< double > &ptWeightedHistogram) const
fills three z0 histograms (non-weighted, weighted by z, and weighted by pt) with the track z at the b...
void findZvertex(std::list< Trk::Vertex > &vertexList, std::pair< double, double > &zBoundaries, const std::vector< int > &numberWeightedhistogram, const std::vector< double > &zWeightedHistogram, const std::vector< double > &ptWeightedHistogram) const
estimates a set of vertex positions and a z interval for the second track finding pass using the inpu...
const_pointer_type cptr()
Dereference the pointer.
float z() const
Returns the z position.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
@ PriVtx
Primary vertex.
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Vertex_v1 Vertex
Define the latest version of the vertex class.

◆ oldStrategy()

StatusCode InDet::SiSPSeededTrackFinder::oldStrategy ( const EventContext & ctx) const
protected

this method performs the track finding using the old strategy

EventContext is used to specify which event

For HI events we can use MBTS information from calorimeter

Get the value of the seed maker validation ntuple writing switch

Definition at line 184 of file SiSPSeededTrackFinder.cxx.

185{
186 SG::WriteHandle<TrackCollection> outputTracks{m_outputTracksKey, ctx};
187 ATH_CHECK(outputTracks.record(std::make_unique<TrackCollection>()));
189 if (not isGoodEvent(ctx)) {
190 return StatusCode::SUCCESS;
191 }
192
193 SiSpacePointsSeedMakerEventData seedEventData;
195 SG::ReadHandle<xAOD::VertexContainer> verticesHandle = SG::makeHandle(m_vertices, ctx);
196 ATH_CHECK( verticesHandle.isValid() );
197 const xAOD::VertexContainer *vertices = verticesHandle.cptr();
198 ATH_CHECK(vertices->size() != 0);
199
200 const xAOD::Vertex* primaryVertex = nullptr;
201 for (const xAOD::Vertex* vtx : *vertices) {
202 if (vtx->vertexType() != xAOD::VxType::PriVtx) continue;
203 primaryVertex = vtx;
204 break;
205 }
206
207 if (primaryVertex == nullptr) {
208 ATH_MSG_ERROR("Could not find the primary vertex");
209 primaryVertex = vertices->front();
210 }
211
212 seedEventData.zCollisionMinimum = primaryVertex->z() - m_collisionTollerance;
213 seedEventData.zCollisionMaximum = primaryVertex->z() + m_collisionTollerance;
214 }
215
217 bool doWriteNtuple = m_seedsmaker->getWriteNtupleBoolProperty();
218 long EvNumber = 0.; //Event number variable to be used for the validation ntuple
219
220 if (doWriteNtuple) {
221 SG::ReadHandle<xAOD::EventInfo> eventInfo = SG::makeHandle(m_evtKey, ctx);
222 if(!eventInfo.isValid()) {EvNumber = -1.0;}
223 else {EvNumber = eventInfo->eventNumber();}
224 }
225
226 bool ZVE = false;
227 if (m_useZvertexTool) {
228 std::list<Trk::Vertex> vertices = m_zvertexmaker->newEvent(ctx, seedEventData);
229 if (not vertices.empty()) ZVE = true;
230 m_seedsmaker->find3Sp(ctx, seedEventData, vertices);
231 } else {
232 m_seedsmaker->newEvent(ctx, seedEventData, -1);
233 std::list<Trk::Vertex> vertexList;
234 m_seedsmaker->find3Sp(ctx, seedEventData, vertexList);
235 }
236
237 const bool PIX = true;
238 const bool SCT = true;
239 //Total stack use for this function is 831124 bytes
240 //coverity[STACK_USE]
241 InDet::ExtendedSiTrackMakerEventData_xk trackEventData(m_prdToTrackMap);
242 m_trackmaker->newEvent(ctx, trackEventData, PIX, SCT);
243
244 bool ERR = false;
246 const InDet::SiSpacePointsSeed* seed = nullptr;
247 std::multimap<double, Trk::Track*> qualitySortedTrackCandidates;
248 // Loop through all seed and reconstructed tracks collection preparation
249 //
250 while ((seed = m_seedsmaker->next(ctx, seedEventData))) {
251 ++counter[kNSeeds];
252 std::list<Trk::Track*> trackList = m_trackmaker->getTracks(ctx, trackEventData, seed->spacePoints());
253 for (Trk::Track* t: trackList) {
254 qualitySortedTrackCandidates.insert(std::make_pair(-trackQuality(t), t));
255 }
256 if(doWriteNtuple) {
257 m_seedsmaker->writeNtuple(seed,
258 !trackList.empty()
259 ? trackList.front()
260 : nullptr,
262 EvNumber);
263 }
264 if (not ZVE and (counter[kNSeeds] >= m_maxNumberSeeds)) {
265 ERR = true;
267 break;
268 }
269 }
270 m_trackmaker->endEvent(trackEventData);
271
272 // Remove shared tracks with worse quality
273 //
274 filterSharedTracks(qualitySortedTrackCandidates);
275
276 // Save good tracks in track collection
277 //
278 for (const std::pair<const double, Trk::Track*> & qualityAndTrack: qualitySortedTrackCandidates) {
279 ++counter[kNTracks];
280 if (m_trackSummaryTool.isEnabled()) {
281 m_trackSummaryTool->computeAndReplaceTrackSummary(ctx, *(qualityAndTrack.second),
282 false /* DO NOT suppress hole search*/);
283 }
284 outputTracks->push_back(qualityAndTrack.second);
285 }
286
287 m_counterTotal[kNSeeds] += counter[kNSeeds];
288
289 if (ZVE) ++m_neventsTotalV;
290 else ++m_neventsTotal;
291
292 if (ERR) {
293 outputTracks->clear();
294 } else {
295 m_counterTotal[kNTracks] += counter[kNTracks];
296 }
297
298 // Print common event information
299 //
300 if (msgLvl(MSG::DEBUG)) {
301 dump(MSG::DEBUG, &counter);
302 }
303
304 return StatusCode::SUCCESS;
305}
size_type size() const noexcept
Returns the number of elements in the collection.

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

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()

bool InDet::SiSPSeededTrackFinder::passEtaDepCuts ( const Trk::Track * track,
int nClusters,
int nFreeClusters,
int nPixels ) const
protected

Definition at line 1199 of file SiSPSeededTrackFinder.cxx.

1203{
1204 Trk::TrackStates::const_iterator m = track->trackStateOnSurfaces()->begin();
1205 const Trk::TrackParameters* par = (*m)->trackParameters();
1206 if(!par) return false;
1207
1208 double eta = std::abs(par->eta());
1209 if(nClusters < m_etaDependentCutsSvc->getMinSiHitsAtEta(eta)) return false;
1210 if(nFreeClusters < m_etaDependentCutsSvc->getMinSiNotSharedAtEta(eta)) return false;
1211 if(nClusters-nFreeClusters > m_etaDependentCutsSvc->getMaxSharedAtEta(eta)) return false;
1212 if(nPixels < m_etaDependentCutsSvc->getMinPixelHitsAtEta(eta)) return false;
1213
1214 if(par->pT() < m_etaDependentCutsSvc->getMinPtAtEta(eta)) return false;
1215 if(!(*m)->type(Trk::TrackStateOnSurface::Perigee)) return true ;
1216 if(std::abs(par->localPosition()[0]) > m_etaDependentCutsSvc->getMaxPrimaryImpactAtEta(eta)) return false;
1217 return true;
1218}
DataModel_detail::const_iterator< DataVector > const_iterator
Definition DataVector.h:861
@ Perigee
This represents a perigee, and so will contain a Perigee object only.

◆ renounce()

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 > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 368 of file AthCommonDataStore.h.

369 {
370 h.renounce();
372 }
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)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 352 of file AthCommonDataStore.h.

352 {
354 }

◆ setFilterPassed()

virtual void AthCommonAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Set filter decision:

Definition at line 99 of file AthCommonAlgorithm.h.

99 {
101 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const
Set filter decision:

◆ sysExecute()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::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.

Reimplemented in AthAnalysisAlgorithm.

Definition at line 80 of file AthCommonAlgorithm.cxx.

41{
42 return BaseAlg::sysExecute (ctx);
43}

◆ sysInitialize()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::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 AthAnalysisAlgorithm, AthHistogramAlgorithm, HypoBase, InputMakerBase, and PyAthena::Alg.

Definition at line 60 of file AthCommonAlgorithm.cxx.

71 {
73
74 if (sc.isFailure()) {
75 return sc;
76 }
77
78 ServiceHandle<ICondSvc> cs("CondSvc",name());
79 for (auto h : outputHandles()) {
80 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
81 // do this inside the loop so we don't create the CondSvc until needed
82 if ( cs.retrieve().isFailure() ) {
83 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
85 }
86 if (cs->regHandle(this,*h).isFailure()) {
88 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
89 << " with CondSvc");
90 }
91 }
92 }
93 return sc;
94}
virtual StatusCode sysInitialize() override
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 298 of file AthCommonDataStore.h.

298 {
299 for (auto &a : m_vhka) {
301 for (auto k : keys) {
302 k->setOwner(this);
303 }
304 }
305 }

Member Data Documentation

◆ ATLAS_THREAD_SAFE [1/2]

std::map<int, std::map<int, unsigned long> > m_GBTSTrainingData InDet::SiSPSeededTrackFinder::ATLAS_THREAD_SAFE
mutableprotected

Definition at line 180 of file SiSPSeededTrackFinder.h.

◆ ATLAS_THREAD_SAFE [2/2]

Counter_t m_counterTotal InDet::SiSPSeededTrackFinder::ATLAS_THREAD_SAFE {}
mutableprotected

Definition at line 171 of file SiSPSeededTrackFinder.h.

171{};

◆ m_alwaysProtectAgainstBusyEvent

BooleanProperty InDet::SiSPSeededTrackFinder::m_alwaysProtectAgainstBusyEvent {this, "alwaysProtectAgainstBusyEvents", false, "Flag that enables checking always maxNumberPIXsp and maxNumberSCTsp"}
protected

Definition at line 106 of file SiSPSeededTrackFinder.h.

106{this, "alwaysProtectAgainstBusyEvents", false, "Flag that enables checking always maxNumberPIXsp and maxNumberSCTsp"};

◆ m_beamSpotKey

SG::ReadCondHandleKey<InDet::BeamSpotData> InDet::SiSPSeededTrackFinder::m_beamSpotKey {this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot"}
protected

Definition at line 141 of file SiSPSeededTrackFinder.h.

141{this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot"};

◆ m_caloClusterROIKey

SG::ReadHandleKey<ROIPhiRZContainer> InDet::SiSPSeededTrackFinder::m_caloClusterROIKey {this, "EMROIPhiRZContainer", "InDetCaloClusterROIPhiRZ15GeVUnordered", "Name of the calo cluster ROIs in Phi,R,Z parameterization"}
protected

Definition at line 138 of file SiSPSeededTrackFinder.h.

138{this, "EMROIPhiRZContainer", "InDetCaloClusterROIPhiRZ15GeVUnordered", "Name of the calo cluster ROIs in Phi,R,Z parameterization"};

◆ m_collisionTollerance

FloatProperty InDet::SiSPSeededTrackFinder::m_collisionTollerance {this, "collisionTollerance", 10.}
protected

Definition at line 122 of file SiSPSeededTrackFinder.h.

122{this, "collisionTollerance", 10.};

◆ m_deltaEta

DoubleProperty InDet::SiSPSeededTrackFinder::m_deltaEta {this, "dEtaCaloRoI", .1}
protected

Definition at line 113 of file SiSPSeededTrackFinder.h.

113{this, "dEtaCaloRoI", .1};

◆ m_deltaPhi

DoubleProperty InDet::SiSPSeededTrackFinder::m_deltaPhi {this, "dPhiCaloRoI", .25}
protected

Definition at line 114 of file SiSPSeededTrackFinder.h.

114{this, "dPhiCaloRoI", .25};

◆ m_deltaZ

DoubleProperty InDet::SiSPSeededTrackFinder::m_deltaZ {this, "dZCaloRoI", 300.}
protected

Definition at line 115 of file SiSPSeededTrackFinder.h.

115{this, "dZCaloRoI", 300.};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default).

Definition at line 381 of file AthCommonDataStore.h.

◆ m_doDumpGBTSTrainingData

BooleanProperty InDet::SiSPSeededTrackFinder::m_doDumpGBTSTrainingData {this, "doDumpGBTSTrainingData", false, "write training data used to create GBTS connection table"}
protected

Definition at line 117 of file SiSPSeededTrackFinder.h.

117{this, "doDumpGBTSTrainingData", false, "write training data used to create GBTS connection table"};

◆ m_doDumpGBTSTrainingDataLRT

BooleanProperty InDet::SiSPSeededTrackFinder::m_doDumpGBTSTrainingDataLRT {this, "doDumpGBTSTrainingDataLRT", false, "write LRT training data used to create GBTS connection table"}
protected

Definition at line 118 of file SiSPSeededTrackFinder.h.

118{this, "doDumpGBTSTrainingDataLRT", false, "write LRT training data used to create GBTS connection table"};

◆ m_doFastTracking

BooleanProperty InDet::SiSPSeededTrackFinder::m_doFastTracking {this, "doFastTracking", false, "ITk fast tracking reco"}
protected

Definition at line 104 of file SiSPSeededTrackFinder.h.

104{this, "doFastTracking", false, "ITk fast tracking reco"};

◆ m_etaDependentCutsSvc

ServiceHandle<IInDetEtaDependentCutsSvc> InDet::SiSPSeededTrackFinder::m_etaDependentCutsSvc {this, "InDetEtaDependentCutsSvc", "InDetEtaDependentCutsSvc"}
protected

service to get cut values depending on different variable

Definition at line 166 of file SiSPSeededTrackFinder.h.

166{this, "InDetEtaDependentCutsSvc", "InDetEtaDependentCutsSvc"};

◆ m_evtKey

SG::ReadHandleKey<xAOD::EventInfo> InDet::SiSPSeededTrackFinder::m_evtKey {this, "EventInfoKey", "EventInfo"}
protected

Definition at line 134 of file SiSPSeededTrackFinder.h.

134{this, "EventInfoKey", "EventInfo"};

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 378 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 108 of file AthCommonAlgorithm.h.

◆ m_fieldmode

StringProperty InDet::SiSPSeededTrackFinder::m_fieldmode {this, "MagneticFieldMode", "MapSolenoid"}
protected

Definition at line 116 of file SiSPSeededTrackFinder.h.

116{this, "MagneticFieldMode", "MapSolenoid"};

◆ m_fieldprop

Trk::MagneticFieldProperties InDet::SiSPSeededTrackFinder::m_fieldprop
protected

Definition at line 160 of file SiSPSeededTrackFinder.h.

◆ m_GBTSTrainingDataFileName

StringProperty InDet::SiSPSeededTrackFinder::m_GBTSTrainingDataFileName {this, "GBTSTrainingDataFileName", "layer_connection_table.csv", "file to write training data used to create GBTS connection table"}
protected

Definition at line 120 of file SiSPSeededTrackFinder.h.

120{this, "GBTSTrainingDataFileName", "layer_connection_table.csv", "file to write training data used to create GBTS connection table"};

◆ m_GBTSTrainingDataMutex

std::mutex InDet::SiSPSeededTrackFinder::m_GBTSTrainingDataMutex
mutableprotected

Definition at line 179 of file SiSPSeededTrackFinder.h.

◆ m_histsize

IntegerProperty InDet::SiSPSeededTrackFinder::m_histsize {this, "HistSize", 1400}
protected

Definition at line 110 of file SiSPSeededTrackFinder.h.

110{this, "HistSize", 1400};

◆ m_imcut

double InDet::SiSPSeededTrackFinder::m_imcut {2.}
protected

Definition at line 128 of file SiSPSeededTrackFinder.h.

128{2.};

◆ m_ITKGeometry

BooleanProperty InDet::SiSPSeededTrackFinder::m_ITKGeometry {this, "ITKGeometry", false, "Flag to specify if it is ITK geometry"}
protected

Definition at line 102 of file SiSPSeededTrackFinder.h.

102{this, "ITKGeometry", false, "Flag to specify if it is ITK geometry"};

◆ m_maxNumberSeeds

IntegerProperty InDet::SiSPSeededTrackFinder::m_maxNumberSeeds {this, "maxNumberSeeds", 3000000, "Max. number used seeds"}
protected

Definition at line 105 of file SiSPSeededTrackFinder.h.

105{this, "maxNumberSeeds", 3000000, "Max. number used seeds"};

◆ m_maxPIXsp

IntegerProperty InDet::SiSPSeededTrackFinder::m_maxPIXsp {this, "maxNumberPIXsp", 150000, "Max. number pixels space points"}
protected

Definition at line 107 of file SiSPSeededTrackFinder.h.

107{this, "maxNumberPIXsp", 150000, "Max. number pixels space points"};

◆ m_maxSCTsp

IntegerProperty InDet::SiSPSeededTrackFinder::m_maxSCTsp {this, "maxNumberSCTsp", 500000, "Max. number sct space points"}
protected

Definition at line 108 of file SiSPSeededTrackFinder.h.

108{this, "maxNumberSCTsp", 500000, "Max. number sct space points"};

◆ m_mbtsKey

SG::ReadDecorHandleKey<xAOD::EventInfo> InDet::SiSPSeededTrackFinder::m_mbtsKey {this, "MBTSKey", m_evtKey, "MBTSBackground"}
protected

Definition at line 143 of file SiSPSeededTrackFinder.h.

143{this, "MBTSKey", m_evtKey, "MBTSBackground"};

◆ m_neventsTotal

std::atomic_int InDet::SiSPSeededTrackFinder::m_neventsTotal {0}
mutableprotected

Number events.

Definition at line 173 of file SiSPSeededTrackFinder.h.

173{0};

◆ m_neventsTotalV

std::atomic_int InDet::SiSPSeededTrackFinder::m_neventsTotalV {0}
mutableprotected

Number events.

Definition at line 174 of file SiSPSeededTrackFinder.h.

174{0};

◆ m_nfreeCut

IntegerProperty InDet::SiSPSeededTrackFinder::m_nfreeCut {this, "FreeClustersCut", 1, "Min number free clusters"}
protected

Definition at line 109 of file SiSPSeededTrackFinder.h.

109{this, "FreeClustersCut", 1, "Min number free clusters"};

◆ m_numGBTSTrainingData

std::atomic_ulong InDet::SiSPSeededTrackFinder::m_numGBTSTrainingData {0}
mutableprotected

Definition at line 181 of file SiSPSeededTrackFinder.h.

181{0};

◆ m_nvertex

IntegerProperty InDet::SiSPSeededTrackFinder::m_nvertex {this, "maxVertices", 4}
protected

Definition at line 111 of file SiSPSeededTrackFinder.h.

111{this, "maxVertices", 4};

◆ m_outputTracksKey

SG::WriteHandleKey<TrackCollection> InDet::SiSPSeededTrackFinder::m_outputTracksKey {this, "TracksLocation", "SiSPSeededTracks"}
protected

Definition at line 145 of file SiSPSeededTrackFinder.h.

145{this, "TracksLocation", "SiSPSeededTracks"};

◆ m_prdToTrackMap

SG::ReadHandleKey<Trk::PRDtoTrackMap> InDet::SiSPSeededTrackFinder::m_prdToTrackMap {this,"PRDtoTrackMap",""}
protected

Definition at line 137 of file SiSPSeededTrackFinder.h.

137{this,"PRDtoTrackMap",""};

◆ m_problemsTotal

std::atomic_int InDet::SiSPSeededTrackFinder::m_problemsTotal {0}
mutableprotected

Number events with number seeds > maxNumber.

Definition at line 175 of file SiSPSeededTrackFinder.h.

175{0};

◆ m_problemsTotalV

std::atomic_int InDet::SiSPSeededTrackFinder::m_problemsTotalV {0}
mutableprotected

Number events with number seeds > maxNumber.

Definition at line 176 of file SiSPSeededTrackFinder.h.

176{0};

◆ m_proptool

PublicToolHandle<Trk::IPatternParametersPropagator> InDet::SiSPSeededTrackFinder::m_proptool {this, "PropagatorTool", "Trk::RungeKuttaPropagator/InDetPropagator"}
protected

Definition at line 153 of file SiSPSeededTrackFinder.h.

153{this, "PropagatorTool", "Trk::RungeKuttaPropagator/InDetPropagator"};

◆ m_pTcut

double InDet::SiSPSeededTrackFinder::m_pTcut {500}
protected

Definition at line 127 of file SiSPSeededTrackFinder.h.

127{500};

◆ m_regsel_strip

ToolHandle<IRegSelTool> InDet::SiSPSeededTrackFinder::m_regsel_strip { this, "RegSelTool_Strip", "RegSelTool/RegSelTool_SCT" }
protected

Definition at line 155 of file SiSPSeededTrackFinder.h.

155{ this, "RegSelTool_Strip", "RegSelTool/RegSelTool_SCT" };

◆ m_removeShortSegments

BooleanProperty InDet::SiSPSeededTrackFinder::m_removeShortSegments {this, "removeShortSegments", false, "remove short segments from GBTS connection table"}
protected

Definition at line 119 of file SiSPSeededTrackFinder.h.

119{this, "removeShortSegments", false, "remove short segments from GBTS connection table"};

◆ m_seedsmaker

ToolHandle<ISiSpacePointsSeedMaker> InDet::SiSPSeededTrackFinder::m_seedsmaker {this, "SeedsTool", "InDet::SiSpacePointsSeedMaker_ATLxk/InDetSpSeedsMaker", "Space poins seed maker"}
protected

Definition at line 150 of file SiSPSeededTrackFinder.h.

150{this, "SeedsTool", "InDet::SiSpacePointsSeedMaker_ATLxk/InDetSpSeedsMaker", "Space poins seed maker"};

◆ m_SpacePointsPixelKey

SG::ReadHandleKey<SpacePointContainer> InDet::SiSPSeededTrackFinder::m_SpacePointsPixelKey {this, "SpacePointsPixelName", "PixelSpacePoints"}
protected

Definition at line 136 of file SiSPSeededTrackFinder.h.

136{this, "SpacePointsPixelName", "PixelSpacePoints"};

◆ m_SpacePointsSCTKey

SG::ReadHandleKey<SpacePointContainer> InDet::SiSPSeededTrackFinder::m_SpacePointsSCTKey {this, "SpacePointsSCTName", "SCT_SpacePoints"}
protected

Definition at line 135 of file SiSPSeededTrackFinder.h.

135{this, "SpacePointsSCTName", "SCT_SpacePoints"};

◆ m_trackmaker

ToolHandle<ISiTrackMaker> InDet::SiSPSeededTrackFinder::m_trackmaker {this, "TrackTool", "InDet::SiTrackMaker_xk/InDetSiTrackMaker", "Track maker"}
protected

Definition at line 152 of file SiSPSeededTrackFinder.h.

152{this, "TrackTool", "InDet::SiTrackMaker_xk/InDetSiTrackMaker", "Track maker"};

◆ m_trackSummaryTool

ToolHandle<Trk::IExtendedTrackSummaryTool> InDet::SiSPSeededTrackFinder::m_trackSummaryTool {this, "TrackSummaryTool", "InDetTrackSummaryToolNoHoleSearch"}
protected

Definition at line 154 of file SiSPSeededTrackFinder.h.

154{this, "TrackSummaryTool", "InDetTrackSummaryToolNoHoleSearch"};

◆ m_useITkConvSeeded

BooleanProperty InDet::SiSPSeededTrackFinder::m_useITkConvSeeded {this, "useITkConvSeeded", false, "ITk EM-seeded conversion reco"}
protected

Definition at line 103 of file SiSPSeededTrackFinder.h.

103{this, "useITkConvSeeded", false, "ITk EM-seeded conversion reco"};

◆ m_useMBTS

BooleanProperty InDet::SiSPSeededTrackFinder::m_useMBTS {this, "useMBTSTimeDiff", false}
protected

Definition at line 99 of file SiSPSeededTrackFinder.h.

99{this, "useMBTSTimeDiff", false};

◆ m_useNewStrategy

BooleanProperty InDet::SiSPSeededTrackFinder::m_useNewStrategy {this, "useNewStrategy", false}
protected

Definition at line 100 of file SiSPSeededTrackFinder.h.

100{this, "useNewStrategy", false};

◆ m_useVertexPosition

BooleanProperty InDet::SiSPSeededTrackFinder::m_useVertexPosition {this, "useVertexPosition", false}
protected

Definition at line 121 of file SiSPSeededTrackFinder.h.

121{this, "useVertexPosition", false};

◆ m_useZBoundaryFinding

BooleanProperty InDet::SiSPSeededTrackFinder::m_useZBoundaryFinding {this, "useZBoundFinding", false}
protected

Definition at line 101 of file SiSPSeededTrackFinder.h.

101{this, "useZBoundFinding", false};

◆ m_useZvertexTool

BooleanProperty InDet::SiSPSeededTrackFinder::m_useZvertexTool {this, "useZvertexTool", true}
protected

Definition at line 97 of file SiSPSeededTrackFinder.h.

97{this, "useZvertexTool", true};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 387 of file AthCommonDataStore.h.

◆ m_vertices

SG::ReadHandleKey<xAOD::VertexContainer> InDet::SiSPSeededTrackFinder::m_vertices {this, "Vertices", "PrimaryVertices"}
protected

Definition at line 139 of file SiSPSeededTrackFinder.h.

139{this, "Vertices", "PrimaryVertices"};

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 386 of file AthCommonDataStore.h.

◆ m_writeHolesFromPattern

BooleanProperty InDet::SiSPSeededTrackFinder::m_writeHolesFromPattern {this, "writeHolesFromPattern", false,"Flag to activate writing hole info from the pattern recognition"}
protected

Definition at line 98 of file SiSPSeededTrackFinder.h.

98{this, "writeHolesFromPattern", false,"Flag to activate writing hole info from the pattern recognition"};

◆ m_zcut

DoubleProperty InDet::SiSPSeededTrackFinder::m_zcut {this, "Zcut", 350.}
protected

Definition at line 112 of file SiSPSeededTrackFinder.h.

112{this, "Zcut", 350.};

◆ m_zstep

double InDet::SiSPSeededTrackFinder::m_zstep {0.}
protected

Definition at line 129 of file SiSPSeededTrackFinder.h.

129{0.};

◆ m_zvertexmaker

ToolHandle<ISiZvertexMaker> InDet::SiSPSeededTrackFinder::m_zvertexmaker {this, "ZvertexTool", "InDet::SiZvertexMaker_xk/InDetSiZvertexMaker", "Space poins z-vertex maker"}
protected

Definition at line 151 of file SiSPSeededTrackFinder.h.

151{this, "ZvertexTool", "InDet::SiZvertexMaker_xk/InDetSiZvertexMaker", "Space poins z-vertex maker"};

The documentation for this class was generated from the following files: