|
|
Go to the documentation of this file. 1 #ifndef L1Trigger_TrackFindingTMTT_L1track3D_h
2 #define L1Trigger_TrackFindingTMTT_L1track3D_h
15 #include <unordered_set>
27 enum TrackletSeedType {
L1L2,
L2L3,
L3L4,
L5L6,
D1D2,
D3D4,
L1D1,
L2D1,
L3L4L2,
L5L6L4,
L2L3D1,
D1D2L2,
NONE };
31 const std::vector<Stub*>&
stubs,
34 std::pair<float, float>
helixRz,
64 const std::vector<Stub*>&
stubs,
67 std::pair<float, float>
helixRz,
95 const std::vector<Stub*>&
stubs()
const override {
return stubs_; }
110 std::vector<float>
result;
113 result.push_back(chi_phi);
121 for (
const float& chi_phi : this->
chiPhi()) {
122 int iDigi_chi_phi = floor(chi_phi * phiMult);
123 result.push_back(iDigi_chi_phi);
129 std::vector<float>
result;
131 float chi_z =
s->z() - (this->
z0() +
s->r() * this->
tanLambda());
132 result.push_back(chi_z);
140 for (
const float& chi_z : this->
chiZ()) {
141 int iDigi_chi_z = floor(chi_z * zMult);
142 result.push_back(iDigi_chi_z);
154 constexpr
float small = 1.0e-6;
155 return 1. / (small + this->
invPt());
205 std::vector<Stub*> stubsSel;
208 const TP*
tp =
s->assocTP();
211 stubsSel.push_back(
s);
232 std::pair<unsigned int, unsigned int> htCell = this->
cellLocationHT();
233 bool consistent = (htCell == trueCell);
236 std::pair<unsigned int, unsigned int> htCell10(htCell.first + 1, htCell.second);
237 std::pair<unsigned int, unsigned int> htCell01(htCell.first, htCell.second + 1);
238 std::pair<unsigned int, unsigned int> htCell11(htCell.first + 1, htCell.second + 1);
239 if (htCell10 == trueCell)
241 if (htCell01 == trueCell)
243 if (htCell11 == trueCell)
double invPtToDphi() const
std::vector< const Stub * > stubsConst_
const Settings * settings_
std::pair< float, float > helixRz_
std::pair< float, float > helixRz() const
float qOverPt() const override
std::pair< unsigned int, unsigned int > cellLocationHT_
TrackletSeedType seedLayerType() const
unsigned int countLayers(const Settings *settings, const std::vector< const Stub * > &stubs, bool disableReducedLayerID=false, bool onlyPS=false)
std::vector< int > chiZDigi()
unsigned int numMatchedLayers() const override
const std::vector< Stub * > & stubs() const override
std::vector< float > chiZ()
constexpr double deltaPhi(double phi1, double phi2)
std::unordered_set< const Stub * > bestStubs_
unsigned int iEtaReg() const override
L1track3D(const Settings *settings, const std::vector< Stub * > &stubs, std::pair< unsigned int, unsigned int > cellLocationHT, std::pair< float, float > helixRphi, std::pair< float, float > helixRz, float helixD0, unsigned int iPhiSec, unsigned int iEtaReg, unsigned int optoLinkID, bool mergedHTcell)
~L1track3D() override=default
std::pair< unsigned int, unsigned int > cellLocationHT() const override
unsigned int numMatchedStubs() const override
unsigned int seedPS() const
void setSeedLayerType(unsigned int seedLayerType)
double chosenRofPhi() const
unsigned int numLayers() const override
TrackletSeedType seedLayerType_
void setBestStubs(std::unordered_set< const Stub * > bestStubs)
const std::vector< const Stub * > & stubsConst() const override
const std::vector< const Stub * > & matchedStubs() const override
unsigned int nMatchedLayers_
unsigned int iPhiSec() const override
const TP * matchedTP() const override
std::pair< float, float > helixRphi() const
L1track3D(const Settings *settings, const std::vector< Stub * > &stubs, std::pair< unsigned int, unsigned int > cellLocationHT, std::pair< float, float > helixRphi, std::pair< float, float > helixRz, unsigned int iPhiSec, unsigned int iEtaReg, unsigned int optoLinkID, bool mergedHTcell)
bool mergedHTcell() const
std::pair< unsigned int, unsigned int > trueCell(const TP *tp) const override
unsigned int zBits() const
void setSeedPS(unsigned int seedPS)
bool useForAlgEff() const
Tan< T >::type tan(const T &t)
double chosenRofZ() const
std::vector< float > chiPhi()
unsigned int phiSBits() const
std::pair< float, float > helixRphi_
float phiAtChosenR() const
std::vector< int > chiPhiDigi()
std::vector< const Stub * > matchedStubs_
std::unordered_set< const Stub * > bestStubs() const
const TP * matchingTP(const Settings *settings, const std::vector< const Stub * > &vstubs, unsigned int &nMatchedLayersBest, std::vector< const Stub * > &matchedStubsBest)
std::vector< Stub * > stubs_
Power< A, B >::type pow(const A &a, const B &b)
unsigned int optoLinkID() const override
Abs< T >::type abs(const T &t)
unsigned int index() const
=== This is the base class for the linearised chi-squared track fit algorithms.
float phi0() const override
unsigned int numStubs() const override