Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
3 #ifndef FPGATrackPATHFINDEREXTENSION_H
4 #define FPGATrackPATHFINDEREXTENSION_H
13 #include "GaudiKernel/ServiceHandle.h"
30 #include "GaudiKernel/ITHistSvc.h"
41 std::vector<std::shared_ptr<const FPGATrackSimHit>>
m_hits;
44 std::shared_ptr<const FPGATrackSimHit>
getHit(
size_t layer)
const {
47 return std::make_shared<const FPGATrackSimHit>(dummyHit);
50 std::vector<std::shared_ptr<const FPGATrackSimHit>>&
getHits() {
54 std::vector<std::vector<std::shared_ptr<const FPGATrackSimHit>>>
getVecHits()
const {
55 std::vector<std::vector<std::shared_ptr<const FPGATrackSimHit>>> vecHits;
56 vecHits.resize(
m_hits.size());
58 std::vector<std::shared_ptr<const FPGATrackSimHit>> thislayerVec;
60 vecHits[
layer] = thislayerVec;
76 if (!hit->isReal()) nwc++;
85 wcLayers |= (0x1 <<
layer);
93 hitLayers |= (0x1 <<
layer);
100 void setHits(std::vector<std::shared_ptr<const FPGATrackSimHit>> &
hits) {
103 void addHits(
const std::vector<std::shared_ptr<const FPGATrackSimHit>> &
hits) {
107 void setHit(
unsigned layer,
const std::shared_ptr<const FPGATrackSimHit> & hit) {
112 void addHit(
const std::shared_ptr<const FPGATrackSimHit> & hit) {
134 const std::vector<std::shared_ptr<const FPGATrackSimTrack>> & tracks,
135 std::vector<std::shared_ptr<const FPGATrackSimRoad>> & roads)
override;
140 return StatusCode::SUCCESS;
149 Gaudi::Property<int>
m_threshold {
this,
"threshold", 10,
"Minimum number of hits to fire a road"};
155 Gaudi::Property<std::vector<float>>
m_windowR {
this,
"windowR", {20.0},
"Window Size to search in for r, either pass one value for all layers or use the number of layers"};
156 Gaudi::Property<std::vector<float>>
m_windowZ {
this,
"windowZ", {20.0},
"Window Size to search in for z, either pass one value for all layers or use the number of layers"};
161 Gaudi::Property <float>
m_missedHitRScaling {
this,
"missedHitRScaling", -1,
"Amount to scale R window if previous hit was missed. Negative means this is disabled"};
162 Gaudi::Property <float>
m_missedHitZScaling {
this,
"missedHitZScaling", -1,
"Amount to scale Z window if previous hit was missed. Negative means this is disabled"};
163 Gaudi::Property <int>
m_maxBranches {
this,
"maxBranches", -1,
"Max number of branches before we stop, if negative this is disabled"};
164 Gaudi::Property <bool>
m_doOutsideIn {
this,
"doOutsideIn",
true,
"Setup the tool so it's doing outside in extrap"};
200 StatusCode findHitinNextStripLayer(std::shared_ptr<const FPGATrackSimHit> hit,
const std::vector<std::shared_ptr<const FPGATrackSimHit>>& hitList, std::vector<std::shared_ptr<const FPGATrackSimHit>>&
hits);
void setHit(unsigned layer, const std::shared_ptr< const FPGATrackSimHit > &hit)
std::shared_ptr< const FPGATrackSimHit > getHit(size_t layer) const
Maps physical layers to logical layers.
layer_bitmask_t getWCLayers() const
layer_bitmask_t getHitLayers() const
void addHit(const std::shared_ptr< const FPGATrackSimHit > &hit)
unsigned getNHits() const
std::vector< std::shared_ptr< const FPGATrackSimHit > > m_hits
Maps ITK module indices to FPGATrackSim regions.
size_t getNHitLayers() const
::StatusCode StatusCode
StatusCode definition for legacy code.
size_t getNLayers() const
size_t getNWCLayers() const
std::vector< std::vector< std::shared_ptr< const FPGATrackSimHit > > > getVecHits() const
void setHits(std::vector< std::shared_ptr< const FPGATrackSimHit >> &hits)
: FPGATrackSim-specific class to represent an hit in the detector.
std::vector< std::shared_ptr< const FPGATrackSimHit > > & getHits()
void addHits(const std::vector< std::shared_ptr< const FPGATrackSimHit >> &hits)
void setNLayers(unsigned layers)
Defines a class for roads.
miniRoad(unsigned nLayers)