1 #ifndef L1Trigger_TrackFindingTMTT_L1fittedTrack_h 2 #define L1Trigger_TrackFindingTMTT_L1fittedTrack_h 39 const std::vector<Stub*>&
stubs,
82 if (settings !=
nullptr) {
96 if (settings !=
nullptr && not settings->
hybrid()) {
109 L1fittedTrack() :
L1fittedTrack(nullptr, nullptr,
noStubs_, 0, 0., 0., 0., 0., 0., 0., 0., 0,
false) {}
125 void setInfoKF(
unsigned int nSkippedLayers,
unsigned int numUpdateCalls) {
129 void setInfoLR(
int numIterations,
std::string lostMatchingState, std::unordered_map<std::string, int> stateCalls) {
136 void infoKF(
unsigned int& nSkippedLayers,
unsigned int& numUpdateCalls)
const {
142 std::unordered_map<std::string, int>& stateCalls)
const {
182 const std::vector<Stub*>&
stubs()
const override {
return stubs_; }
215 if (nStubCount > 0) {
218 std::set<const TP*> assTPs =
s->assocTPs();
219 if (assTPs.find(
tp) != assTPs.end())
233 constexpr
float small = 1.0e-6;
234 return 1. / (small + this->
invPt());
252 constexpr
float small = 1.0e-6;
261 if (beamConstraint) {
315 std::pair<unsigned int, unsigned int> htCell = this->
cellLocationHT();
320 std::pair<unsigned int, unsigned int> htCell10(htCell.first + 1, htCell.second);
321 std::pair<unsigned int, unsigned int> htCell01(htCell.first, htCell.second + 1);
322 std::pair<unsigned int, unsigned int> htCell11(htCell.first + 1, htCell.second + 1);
340 return (insidePhi && insideEta);
unsigned int iEtaReg() const override
constexpr double deltaPhi(double phi1, double phi2)
double invPtToDphi() const
std::unordered_map< std::string, int > stateCalls_
unsigned int iEtaReg() const override
unsigned int numLayers() const override
~L1fittedTrack() override=default
unsigned int numMatchedStubs() const override
unsigned int numDOF() const
std::pair< unsigned int, unsigned int > cellLocationHT() const override
std::shared_ptr< HTrphi > htRphiTmp_
const TP * matchedTP() const override
void infoLR(int &numIterations, std::string &lostMatchingState, std::unordered_map< std::string, int > &stateCalls) const
unsigned int numDOFrphi() const
static const std::vector< Stub * > noStubs_
unsigned int nSkippedLayers_
void digitizeTrack(const std::string &fitterName)
const L1track3D * l1track3D() const
std::pair< unsigned int, unsigned int > cellLocationHT() const override
unsigned int numKilledStubs() const
float qOverPt_bcon() const
float chi2dof_bcon() const
unsigned int numKilledMatchedStubs() const
double chosenRofZ() const
bool mergedHTcell() const
KFTrackletTrack returnKFTrackletTrack()
unsigned int iPhiSec() const override
std::pair< unsigned int, unsigned int > cellLocationFit() const
unsigned int numUpdateCalls_
std::shared_ptr< Sector > secTmp_
float qOverPt() const override
Tan< T >::type tan(const T &t)
const TP * matchingTP(const Settings *settings, const std::vector< const Stub *> &vstubs, unsigned int &nMatchedLayersBest, std::vector< const Stub *> &matchedStubsBest)
Abs< T >::type abs(const T &t)
float phi0() const override
float chi2rphi_bcon() const
std::shared_ptr< DigitalTrack > digitalTrack_
unsigned int optoLinkID() const override
std::vector< Stub * > stubs_
const DigitalTrack * digitaltrack() const
double chosenRofPhi() const
std::string lostMatchingState_
unsigned int numDOF_bcon() const
float nHelixParam() const
bool consistentSector() const
void setInfoKF(unsigned int nSkippedLayers, unsigned int numUpdateCalls)
const TP * matchedTP() const override
float charge_bcon() const
unsigned int nMatchedLayers_
=== This is the base class for the linearised chi-squared track fit algorithms.
unsigned int numDOFrphi_bcon() const
void setConsistentHTcell()
void setInfoLR(int numIterations, std::string lostMatchingState, std::unordered_map< std::string, int > stateCalls)
const std::vector< const Stub * > & stubsConst() const override
float phiAtChosenR(bool beamConstraint) const
void infoKF(unsigned int &nSkippedLayers, unsigned int &numUpdateCalls) const
const std::vector< Stub * > & stubs() const override
unsigned int iPhiSec() const override
const L1track3D * l1track3D_
unsigned int numMatchedStubs() const override
std::vector< const Stub * > matchedStubs_
unsigned int optoLinkID() const override
unsigned int numStubs() const override
unsigned int nHelixParam_
unsigned int hitPattern() const
const std::vector< const Stub * > & matchedStubs() const override
L1fittedTrack(const Settings *settings, const L1track3D *l1track3D, const std::vector< Stub *> &stubs, unsigned int hitPattern, float qOverPt, float d0, float phi0, float z0, float tanLambda, float chi2rphi, float chi2rz, unsigned int nHelixParam, bool accepted=true)
unsigned int countLayers(const Settings *settings, const std::vector< const Stub *> &stubs, bool disableReducedLayerID=false, bool onlyPS=false)
std::vector< const Stub * > stubsConst_
const Settings * settings_
unsigned int numMatchedLayers() const override
bool consistentHTcell() const
unsigned int numStubs() const override
void setBeamConstr(float qOverPt_bcon, float phi0_bcon, float chi2rphi_bcon, bool accepted)
unsigned int numDOFrz() const