1 #ifndef L1Trigger_TrackFindingTMTT_L1fittedTrack_h
2 #define L1Trigger_TrackFindingTMTT_L1fittedTrack_h
39 const std::vector<Stub*>&
stubs,
73 if (l1track3D !=
nullptr) {
82 if (settings !=
nullptr) {
92 if (nHelixParam == 4) {
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)
unsigned int numKilledMatchedStubs() const
std::unordered_map< std::string, int > stateCalls_
unsigned int iEtaReg() const override
unsigned int numLayers() const override
~L1fittedTrack() override=default
static std::vector< std::string > checklist log
unsigned int numMatchedStubs() const override
unsigned int numDOF_bcon() const
std::pair< unsigned int, unsigned int > cellLocationHT() const override
std::shared_ptr< HTrphi > htRphiTmp_
const TP * matchedTP() const override
unsigned int numKilledStubs() const
float chi2dof_bcon() const
static const std::vector< Stub * > noStubs_
unsigned int nSkippedLayers_
void digitizeTrack(const std::string &fitterName)
const TP * matchingTP(const Settings *settings, const std::vector< const Stub * > &vstubs, unsigned int &nMatchedLayersBest, std::vector< const Stub * > &matchedStubsBest)
std::pair< unsigned int, unsigned int > cellLocationHT() const override
float chi2rphi_bcon() const
std::pair< unsigned int, unsigned int > cellLocationFit() const
bool consistentHTcell() const
KFTrackletTrack returnKFTrackletTrack()
unsigned int iPhiSec() const override
float phiAtChosenR(bool beamConstraint) const
const L1track3D * l1track3D() const
float qOverPt_bcon() const
float nHelixParam() const
unsigned int numUpdateCalls_
unsigned int numDOFrz() const
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)
std::shared_ptr< Sector > secTmp_
float qOverPt() const override
double chosenRofPhi() const
Tan< T >::type tan(const T &t)
Abs< T >::type abs(const T &t)
float phi0() const override
unsigned int hitPattern() const
unsigned int numDOFrphi() const
std::shared_ptr< DigitalTrack > digitalTrack_
unsigned int optoLinkID() const override
unsigned int numDOF() const
std::vector< Stub * > stubs_
std::string lostMatchingState_
double invPtToDphi() const
void setInfoKF(unsigned int nSkippedLayers, unsigned int numUpdateCalls)
const TP * matchedTP() const override
unsigned int nMatchedLayers_
const DigitalTrack * digitaltrack() const
void setConsistentHTcell()
void infoKF(unsigned int &nSkippedLayers, unsigned int &numUpdateCalls) const
float charge_bcon() const
void setInfoLR(int numIterations, std::string lostMatchingState, std::unordered_map< std::string, int > stateCalls)
const std::vector< const Stub * > & stubsConst() const override
const std::vector< Stub * > & stubs() const override
unsigned int countLayers(const Settings *settings, const std::vector< const Stub * > &stubs, bool disableReducedLayerID=false, bool onlyPS=false)
unsigned int iPhiSec() const override
const L1track3D * l1track3D_
unsigned int numMatchedStubs() const override
std::vector< const Stub * > matchedStubs_
bool mergedHTcell() const
unsigned int optoLinkID() const override
unsigned int numStubs() const override
double chosenRofZ() const
unsigned int nHelixParam_
const std::vector< const Stub * > & matchedStubs() const override
void infoLR(int &numIterations, std::string &lostMatchingState, std::unordered_map< std::string, int > &stateCalls) const
unsigned int numDOFrphi_bcon() const
std::vector< const Stub * > stubsConst_
bool consistentSector() const
const Settings * settings_
unsigned int numMatchedLayers() const override
unsigned int numStubs() const override
void setBeamConstr(float qOverPt_bcon, float phi0_bcon, float chi2rphi_bcon, bool accepted)