#include <HTrphi.h>
Classes | |
struct | ErrorMonitor |
Public Types | |
enum | HTshape { HTshape::square, HTshape::diamond, HTshape::hexagon, HTshape::brick } |
Public Member Functions | |
std::pair< unsigned int, unsigned int > | cell (const L1fittedTrack *fitTrk) const override |
unsigned int | getMbinRange (const L1track2D &trk) const |
std::pair< float, float > | helix2Dconventional (unsigned int i, unsigned int j) const override |
std::pair< float, float > | helix2Dhough (unsigned int i, unsigned int j) const override |
HTrphi (const Settings *settings, unsigned int iPhiSec, unsigned int iEtaReg, float etaMinSector, float etaMaxSector, float phiCentreSector, ErrorMonitor *errMon=nullptr) | |
bool | mergedCell (unsigned int iQoverPtBin, unsigned int jPhiTrkBin) const |
unsigned int | nReceivedStubs () const |
void | store (Stub *stub, const std::vector< bool > &inEtaSubSecs) |
std::pair< unsigned int, unsigned int > | trueCell (const TP *tp) const override |
~HTrphi () override=default | |
Public Member Functions inherited from tmtt::HTbase | |
virtual const matrix< std::unique_ptr< HTcell > > & | allCells () const |
virtual std::vector< const L1track2D * > | assocTrackCands2D (const TP &tp) const |
virtual void | disableBendFilter () |
virtual void | end () |
HTbase (const Settings *settings, unsigned int iPhiSec, unsigned int iEtaReg, unsigned int nBinsX, unsigned int nBinsY) | |
virtual unsigned int | numStubsExc () const |
virtual unsigned int | numStubsInc () const |
virtual unsigned int | numStubsOnTrackCands2D () const |
virtual unsigned int | numTrackCands2D () const |
virtual void | replaceTrackCands2D (const std::list< L1track2D > &newTracks) |
virtual const std::list< L1track2D > & | trackCands2D () const |
virtual | ~HTbase ()=default |
Private Member Functions | |
float | calcLineGradArray (float r) const |
void | countFirmwareErrors (unsigned int iQoverPtBin, unsigned int iPhiTrkBinMin, unsigned int iPhiTrkBinMax, unsigned int jPhiTrkBinMinLast, unsigned int jPhiTrkBinMaxLast) |
std::pair< unsigned int, unsigned int > | iPhiRange (const Stub *stub, unsigned int iQoverPtBin, bool debug=false) const |
std::list< L1track2D > | killTracksBusySec (const std::list< L1track2D > &tracks) const override |
std::vector< unsigned int > | rowOrder (unsigned int numRows) const override |
Private Attributes | |
float | binSizePhiTrkAxis_ |
float | binSizeQoverPtAxis_ |
bool | busyInputSectorKill_ |
unsigned int | busyInputSectorNumStubs_ |
bool | busySectorKill_ |
std::vector< unsigned int > | busySectorMbinHigh_ |
std::vector< unsigned int > | busySectorMbinLow_ |
std::vector< unsigned int > | busySectorMbinOrder_ |
std::vector< unsigned int > | busySectorMbinRanges_ |
unsigned int | busySectorNumStubs_ |
bool | busySectorUseMbinOrder_ |
bool | busySectorUseMbinRanges_ |
std::vector< std::vector< std::pair< float, float > > > | cellCenters_ |
float | chosenRofPhi_ |
bool | enableMerge2x2_ |
ErrorMonitor * | errMon_ |
float | invPtToDphi_ |
unsigned int | killSomeHTCellsRphi_ |
float | maxAbsPhiTrkAxis_ |
float | maxAbsQoverPtAxis_ |
float | minInvPtToMerge2x2_ |
unsigned int | nBinsPhiTrkAxis_ |
unsigned int | nBinsQoverPtAxis_ |
unsigned int | nReceivedStubs_ |
float | phiCentreSector_ |
HTshape | shape_ |
Additional Inherited Members | |
Protected Member Functions inherited from tmtt::HTbase | |
virtual std::pair< unsigned int, unsigned int > | convertCoordRangeToBinRange (std::pair< float, float > coordRange, unsigned int nBinsAxis, float coordAxisMin, float coordAxisBinSize, unsigned int killSomeHTcells) const |
Protected Attributes inherited from tmtt::HTbase | |
matrix< std::unique_ptr< HTcell > > | htArray_ |
unsigned int | iEtaReg_ |
unsigned int | iPhiSec_ |
unsigned int | nBinsX_ |
unsigned int | nBinsY_ |
unsigned int | optoLinkID_ |
const Settings * | settings_ |
std::list< L1track2D > | trackCands2D_ |
|
strong |
tmtt::HTrphi::HTrphi | ( | const Settings * | settings, |
unsigned int | iPhiSec, | ||
unsigned int | iEtaReg, | ||
float | etaMinSector, | ||
float | etaMaxSector, | ||
float | phiCentreSector, | ||
HTrphi::ErrorMonitor * | errMon = nullptr |
||
) |
Definition at line 29 of file HTrphi.cc.
References binSizePhiTrkAxis_, binSizeQoverPtAxis_, tmtt::Settings::busyInputSectorKill(), busyInputSectorKill_, tmtt::Settings::busyInputSectorNumStubs(), busyInputSectorNumStubs_, tmtt::Settings::busySectorKill(), busySectorKill_, busySectorMbinHigh_, busySectorMbinLow_, tmtt::Settings::busySectorMbinOrder(), busySectorMbinOrder_, tmtt::Settings::busySectorMbinRanges(), busySectorMbinRanges_, tmtt::Settings::busySectorNumStubs(), busySectorNumStubs_, busySectorUseMbinOrder_, busySectorUseMbinRanges_, HltBtagPostValidation_cff::c, cellCenters_, diamond, tmtt::Settings::enableMerge2x2(), enableMerge2x2_, Exception, dqmMemoryStats::float, helix2Dconventional(), hexagon, tmtt::HTbase::htArray_, mps_fire::i, dqmiolumiharvest::j, tmtt::Settings::killSomeHTCellsRphi(), killSomeHTCellsRphi_, visualization-live-secondInstance_cfg::m, maxAbsPhiTrkAxis_, maxAbsQoverPtAxis_, tmtt::Settings::maxPtToMerge2x2(), mergedCell(), tmtt::Settings::miniHTstage(), minInvPtToMerge2x2_, nBinsPhiTrkAxis_, nBinsQoverPtAxis_, nReceivedStubs_, tmtt::HTbase::settings_, shape_, square, submitPVValidationJobs::t, and runonSM::text.
|
overridedefault |
|
private |
Definition at line 605 of file HTrphi.cc.
References funct::abs(), binSizePhiTrkAxis_, binSizeQoverPtAxis_, brick, chosenRofPhi_, diamond, hexagon, invPtToDphi_, alignCSCRings::r, and shape_.
Referenced by store().
|
overridevirtual |
Implements tmtt::HTbase.
Definition at line 507 of file HTrphi.cc.
References binSizePhiTrkAxis_, binSizeQoverPtAxis_, HltBtagPostValidation_cff::c, cellCenters_, ztail::d, SiPixelRawToDigiRegional_cfi::deltaPhi, reco::deltaPhi(), tmtt::L1fittedTrack::done_bcon(), infinity, visualization-live-secondInstance_cfg::m, maxAbsPhiTrkAxis_, maxAbsQoverPtAxis_, nBinsPhiTrkAxis_, nBinsQoverPtAxis_, tmtt::L1fittedTrack::phiAtChosenR(), phiCentreSector_, funct::pow(), tmtt::L1fittedTrack::qOverPt(), tmtt::L1fittedTrack::qOverPt_bcon(), shape_, and square.
|
private |
Definition at line 379 of file HTrphi.cc.
References errMon_, tmtt::HTrphi::ErrorMonitor::numErrorsNorm, tmtt::HTrphi::ErrorMonitor::numErrorsTypeA, and tmtt::HTrphi::ErrorMonitor::numErrorsTypeB.
Referenced by store().
unsigned int tmtt::HTrphi::getMbinRange | ( | const L1track2D & | trk | ) | const |
Definition at line 317 of file HTrphi.cc.
References busySectorMbinHigh_, busySectorMbinLow_, busySectorMbinOrder_, busySectorMbinRanges_, busySectorUseMbinOrder_, busySectorUseMbinRanges_, tmtt::L1track2D::cellLocationHT(), Exception, mps_fire::i, and dqmdumpme::k.
Referenced by tmtt::MuxHToutputs::exec(), and killTracksBusySec().
|
overridevirtual |
Implements tmtt::HTbase.
Definition at line 460 of file HTrphi.cc.
References chosenRofPhi_, reco::deltaPhi(), helix2Dhough(), invPtToDphi_, and dqmiolumiharvest::j.
Referenced by HTrphi().
|
overridevirtual |
Implements tmtt::HTbase.
Definition at line 404 of file HTrphi.cc.
References binSizePhiTrkAxis_, binSizeQoverPtAxis_, brick, reco::deltaPhi(), diamond, enableMerge2x2_, hexagon, mps_fire::i, dqmiolumiharvest::j, maxAbsPhiTrkAxis_, maxAbsQoverPtAxis_, mergedCell(), phiCentreSector_, shape_, and square.
Referenced by helix2Dconventional().
|
private |
Definition at line 348 of file HTrphi.cc.
References funct::abs(), binSizePhiTrkAxis_, binSizeQoverPtAxis_, chosenRofPhi_, tmtt::HTbase::convertCoordRangeToBinRange(), reco::deltaPhi(), invPtToDphi_, killSomeHTCellsRphi_, maxAbsPhiTrkAxis_, maxAbsQoverPtAxis_, nBinsPhiTrkAxis_, tmtt::Stub::phi(), phiCentreSector_, and tmtt::Stub::r().
Referenced by store().
|
overrideprivatevirtual |
Implements tmtt::HTbase.
Definition at line 621 of file HTrphi.cc.
References busySectorKill_, busySectorMbinRanges_, busySectorNumStubs_, busySectorUseMbinRanges_, getMbinRange(), keep, and PDWG_EXOHSCP_cff::tracks.
bool tmtt::HTrphi::mergedCell | ( | unsigned int | iQoverPtBin, |
unsigned int | jPhiTrkBin | ||
) | const |
Definition at line 581 of file HTrphi.cc.
References binSizeQoverPtAxis_, enableMerge2x2_, mps_fire::i, maxAbsQoverPtAxis_, MatrixUtil::merge(), min(), minInvPtToMerge2x2_, and nBinsQoverPtAxis_.
Referenced by helix2Dhough(), HTrphi(), and store().
|
inline |
|
overrideprivatevirtual |
void tmtt::HTrphi::store | ( | Stub * | stub, |
const std::vector< bool > & | inEtaSubSecs | ||
) |
Definition at line 179 of file HTrphi.cc.
References funct::abs(), spclusmultinvestigator_cfi::binMax, binSizePhiTrkAxis_, binSizeQoverPtAxis_, brick, busyInputSectorKill_, busyInputSectorNumStubs_, calcLineGradArray(), chosenRofPhi_, countFirmwareErrors(), reco::deltaPhi(), diamond, enableMerge2x2_, errMon_, hexagon, tmtt::HTbase::htArray_, mps_fire::i, invPtToDphi_, iPhiRange(), dqmiolumiharvest::j, SiStripPI::max, maxAbsPhiTrkAxis_, maxAbsQoverPtAxis_, tmtt::HTrphi::ErrorMonitor::maxLineGradient, mergedCell(), nBinsPhiTrkAxis_, nBinsQoverPtAxis_, nReceivedStubs_, tmtt::Stub::phi(), phiCentreSector_, tmtt::Stub::r(), shape_, and square.
|
overridevirtual |
Implements tmtt::HTbase.
Definition at line 473 of file HTrphi.cc.
References binSizePhiTrkAxis_, binSizeQoverPtAxis_, chosenRofPhi_, SiPixelRawToDigiRegional_cfi::deltaPhi, reco::deltaPhi(), maxAbsPhiTrkAxis_, maxAbsQoverPtAxis_, nBinsPhiTrkAxis_, nBinsQoverPtAxis_, phiCentreSector_, and cmsswSequenceInfo::tp.
Referenced by tmtt::L1track3D::cheat().
|
private |
Definition at line 135 of file HTrphi.h.
Referenced by calcLineGradArray(), cell(), helix2Dhough(), HTrphi(), iPhiRange(), store(), and trueCell().
|
private |
Definition at line 129 of file HTrphi.h.
Referenced by calcLineGradArray(), cell(), helix2Dhough(), HTrphi(), iPhiRange(), mergedCell(), store(), and trueCell().
|
private |
|
private |
|
private |
Definition at line 146 of file HTrphi.h.
Referenced by HTrphi(), and killTracksBusySec().
|
private |
Definition at line 154 of file HTrphi.h.
Referenced by getMbinRange(), and HTrphi().
|
private |
Definition at line 153 of file HTrphi.h.
Referenced by getMbinRange(), and HTrphi().
|
private |
Definition at line 150 of file HTrphi.h.
Referenced by getMbinRange(), and HTrphi().
|
private |
Definition at line 149 of file HTrphi.h.
Referenced by getMbinRange(), HTrphi(), and killTracksBusySec().
|
private |
Definition at line 148 of file HTrphi.h.
Referenced by HTrphi(), and killTracksBusySec().
|
private |
Definition at line 152 of file HTrphi.h.
Referenced by getMbinRange(), and HTrphi().
|
private |
Definition at line 151 of file HTrphi.h.
Referenced by getMbinRange(), HTrphi(), and killTracksBusySec().
|
private |
|
private |
Definition at line 131 of file HTrphi.h.
Referenced by calcLineGradArray(), helix2Dconventional(), iPhiRange(), store(), and trueCell().
|
private |
Definition at line 137 of file HTrphi.h.
Referenced by helix2Dhough(), HTrphi(), mergedCell(), and store().
|
private |
Definition at line 161 of file HTrphi.h.
Referenced by countFirmwareErrors(), and store().
|
private |
Definition at line 120 of file HTrphi.h.
Referenced by calcLineGradArray(), helix2Dconventional(), iPhiRange(), and store().
|
private |
Definition at line 143 of file HTrphi.h.
Referenced by HTrphi(), and iPhiRange().
|
private |
Definition at line 133 of file HTrphi.h.
Referenced by cell(), helix2Dhough(), HTrphi(), iPhiRange(), store(), and trueCell().
|
private |
Definition at line 127 of file HTrphi.h.
Referenced by cell(), helix2Dhough(), HTrphi(), iPhiRange(), mergedCell(), store(), and trueCell().
|
private |
Definition at line 138 of file HTrphi.h.
Referenced by HTrphi(), and mergedCell().
|
private |
Definition at line 134 of file HTrphi.h.
Referenced by cell(), HTrphi(), iPhiRange(), store(), and trueCell().
|
private |
Definition at line 128 of file HTrphi.h.
Referenced by cell(), HTrphi(), mergedCell(), store(), and trueCell().
|
private |
Definition at line 158 of file HTrphi.h.
Referenced by HTrphi(), nReceivedStubs(), and store().
|
private |
Definition at line 132 of file HTrphi.h.
Referenced by cell(), helix2Dhough(), iPhiRange(), store(), and trueCell().
|
private |
Definition at line 122 of file HTrphi.h.
Referenced by calcLineGradArray(), cell(), helix2Dhough(), HTrphi(), and store().