CMS 3D CMS Logo

MuxHToutputs.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTMTT_MuxHToutputs_h
2 #define L1Trigger_TrackFindingTMTT_MuxHToutputs_h
3 
6 
7 #include <vector>
8 #include <memory>
9 
10 //==================================================================================================
21 //==================================================================================================
22 
23 namespace tmtt {
24 
25  class Settings;
26 
27  class MuxHToutputs {
28  public:
29  enum class MuxAlgoName { None = 0, mBinPerLink = 1 };
30 
31  // Initialize constants from configuration parameters.
32  MuxHToutputs(const Settings* settings);
33 
34  // Determine which tracks are transmitted on each HT output optical link, taking into account the multiplexing
35  // of multiple (eta,phi) sectors onto single links and the truncation of the tracks caused by the requirement
36  // to output all the tracks within the time-multiplexed period.
37  // This function replaces the 2D track collection in the r-phi HT with the subset surviving the TM cut.
38  void exec(Array2D<std::unique_ptr<HTrphi>>& mHtRphis) const;
39 
40  // Determine number of optical links used to output tracks from each phi nonant
41  // (where "link" refers to a pair of links in the hardware).
42  unsigned int numLinksPerNonant() const {
43  unsigned int iCorr = (settings_->miniHTstage()) ? 1 : 0;
44  return numPhiSecPerNon_ * numEtaRegions_ * (busySectorMbinRanges_.size() - iCorr) / this->muxFactor();
45  }
46 
47  private:
48  // Define the number of (eta,phi) sectors that each output opto-link takes tracks from. (Depends on MUX scheme).
49  unsigned int muxFactor() const;
50 
51  // Define the MUX algorithm by which tracks from the specified m-bin range in the HT for a given (phi,eta)
52  // sector within a phi nonant are multiplexed onto a single output optical link.
53  unsigned int linkID(unsigned int iSecInNon, unsigned int iEtaReg, unsigned int mBinRange) const;
54 
55  // Do sanity check of the MUX algorithm implemented in linkID().
56  void sanityCheck();
57 
58  private:
59  const Settings* settings_; // Configuration parameters
60 
61  // Configuration parameters
63  unsigned int numPhiNonants_;
64  unsigned int numPhiSectors_;
65  unsigned int numPhiSecPerNon_;
66  unsigned int numEtaRegions_;
68  unsigned int busySectorNumStubs_;
69  std::vector<unsigned int> busySectorMbinRanges_;
71  };
72 
73 } // namespace tmtt
74 
75 #endif
tmtt::MuxHToutputs::linkID
unsigned int linkID(unsigned int iSecInNon, unsigned int iEtaReg, unsigned int mBinRange) const
Definition: MuxHToutputs.cc:114
tmtt::MuxHToutputs::busySectorKill_
bool busySectorKill_
Definition: MuxHToutputs.h:67
tmtt::MuxHToutputs::numPhiSectors_
unsigned int numPhiSectors_
Definition: MuxHToutputs.h:64
tmtt::MuxHToutputs::muxOutputsHT_
MuxAlgoName muxOutputsHT_
Definition: MuxHToutputs.h:62
tmtt::MuxHToutputs::sanityCheck
void sanityCheck()
Definition: MuxHToutputs.cc:135
tmtt::MuxHToutputs::MuxAlgoName::None
tmtt::MuxHToutputs::busySectorUseMbinRanges_
bool busySectorUseMbinRanges_
Definition: MuxHToutputs.h:70
tmtt::MuxHToutputs::busySectorMbinRanges_
std::vector< unsigned int > busySectorMbinRanges_
Definition: MuxHToutputs.h:69
tmtt::Array2D
Definition: Array2D.h:19
tmtt::Settings::miniHTstage
bool miniHTstage() const
Definition: Settings.h:149
tmtt::MuxHToutputs::MuxAlgoName
MuxAlgoName
Definition: MuxHToutputs.h:29
HTrphi.h
Array2D.h
tmtt::MuxHToutputs::numPhiSecPerNon_
unsigned int numPhiSecPerNon_
Definition: MuxHToutputs.h:65
tmtt::MuxHToutputs::muxFactor
unsigned int muxFactor() const
Definition: MuxHToutputs.cc:103
tmtt::MuxHToutputs
Definition: MuxHToutputs.h:27
tmtt::Settings
Definition: Settings.h:17
tmtt::MuxHToutputs::numLinksPerNonant
unsigned int numLinksPerNonant() const
Definition: MuxHToutputs.h:42
tmtt::MuxHToutputs::MuxAlgoName::mBinPerLink
tmtt::MuxHToutputs::numPhiNonants_
unsigned int numPhiNonants_
Definition: MuxHToutputs.h:63
tmtt::MuxHToutputs::settings_
const Settings * settings_
Definition: MuxHToutputs.h:59
tmtt::MuxHToutputs::MuxHToutputs
MuxHToutputs(const Settings *settings)
Definition: MuxHToutputs.cc:19
tmtt::MuxHToutputs::numEtaRegions_
unsigned int numEtaRegions_
Definition: MuxHToutputs.h:66
tmtt::MuxHToutputs::exec
void exec(Array2D< std::unique_ptr< HTrphi >> &mHtRphis) const
Definition: MuxHToutputs.cc:57
tmtt
=== This is the base class for the linearised chi-squared track fit algorithms.
Definition: Array2D.h:16
tmtt::MuxHToutputs::busySectorNumStubs_
unsigned int busySectorNumStubs_
Definition: MuxHToutputs.h:68