CMS 3D CMS Logo

L1TMuonBarrelParams.h
Go to the documentation of this file.
1 
10 #ifndef L1TBMTFParams_h
11 #define L1TBMTFParams_h
12 
13 #include <memory>
14 #include <iostream>
15 #include <vector>
16 
22 
24 public:
26  enum { Version = 1 };
27 
28  class Node {
29  public:
31  unsigned version_;
33  std::vector<double> dparams_;
34  std::vector<unsigned> uparams_;
35  std::vector<int> iparams_;
36  std::vector<std::string> sparams_;
37  Node() {
38  type_ = "unspecified";
39  version_ = 0;
40  }
42  };
43  enum { CONFIG = 0, NUM_BMTF_PARAM_NODES = 2 };
44 
45  enum {
62  };
63 
64  // after initial integration with downstream code, a small update will change:
67  // to this:
68  //L1MuDTTFParameters & l1mudttfparams(){return l1mudttfparams_[0]; }
69  //L1MuDTTFMasks & l1mudttfmasks(){return l1mudttfmasks_[0]; }
70 
72  typedef std::map<short, short, std::less<short> > LUT;
74  typedef std::pair<short, short> LUTID;
75  typedef std::pair<short, std::vector<short> > LUTCONT;
76  typedef std::map<LUTID, LUTCONT> qpLUT;
78  typedef std::map<short, L1MuDTEtaPattern, std::less<short> > etaLUT;
79 
80  class LUTParams {
81  public:
82  std::vector<LUT> pta_lut_;
83  std::vector<LUT> phi_lut_;
84  std::vector<int> pta_threshold_;
87 
88  // helper class for extrapolation look-up tables
89  class extLUT {
90  public:
94  };
95  std::vector<extLUT> ext_lut_;
98  };
99 
101 
102 public:
103  unsigned version_;
104  unsigned fwVersion_;
105 
106  std::vector<Node> pnodes_;
107  // std::vector here is just so we can use "blob" in DB and evade max size limitations...
108  std::vector<L1MuDTTFParameters> l1mudttfparams_;
109  std::vector<L1MuDTTFMasks> l1mudttfmasks_;
111 
113 };
114 #endif
LUT.h
L1TMuonBarrelParams::LUTParams::extLUT
Definition: L1TMuonBarrelParams.h:89
L1TMuonBarrelParams::lutparams_
LUTParams lutparams_
Definition: L1TMuonBarrelParams.h:110
L1TMuonBarrelParams::LUTID
std::pair< short, short > LUTID
Qual Pattern LUT.
Definition: L1TMuonBarrelParams.h:74
L1TMuonBarrelParams::Node::Node
Node()
Definition: L1TMuonBarrelParams.h:37
L1TMuonBarrelParams::NUM_CONFIG_PARAMS
Definition: L1TMuonBarrelParams.h:61
L1MuDTTFParameters.h
L1TMuonBarrelParams::Extrapolation_21
Definition: L1TMuonBarrelParams.h:59
L1TMuonBarrelParams::l1mudttfparams
L1MuDTTFParameters l1mudttfparams
Definition: L1TMuonBarrelParams.h:65
L1TMuonBarrelParams::etaLUT
std::map< short, L1MuDTEtaPattern, std::less< short > > etaLUT
Eta Pattern LUT.
Definition: L1TMuonBarrelParams.h:78
L1TMuonBarrelParams::LUTParams::extLUT::low
LUT low
Definition: L1TMuonBarrelParams.h:91
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
L1TMuonBarrelParams::NUM_BMTF_PARAM_NODES
Definition: L1TMuonBarrelParams.h:43
L1TMuonBarrelParams::L1TMuonBarrelParams
L1TMuonBarrelParams()
Definition: L1TMuonBarrelParams.cc:3
L1MuDTTFMasks
Definition: L1MuDTTFMasks.h:36
L1TMuonBarrelParams::l1mudttfmasks_
std::vector< L1MuDTTFMasks > l1mudttfmasks_
Definition: L1TMuonBarrelParams.h:109
L1TMuonBarrelParams::fwVersion_
unsigned fwVersion_
Definition: L1TMuonBarrelParams.h:104
L1TMuonBarrelParams::Node::sparams_
std::vector< std::string > sparams_
Definition: L1TMuonBarrelParams.h:36
L1TMuonBarrelParams::Extrapolation_nbits_Phi
Definition: L1TMuonBarrelParams.h:50
L1TMuonBarrelParams::Extrapolation_nbits_PhiB
Definition: L1TMuonBarrelParams.h:51
L1TMuonBarrelParams::l1mudttfmasks
L1MuDTTFMasks l1mudttfmasks
Definition: L1TMuonBarrelParams.h:66
L1TMuonBarrelParams::Node::uparams_
std::vector< unsigned > uparams_
Definition: L1TMuonBarrelParams.h:34
L1TMuonBarrelParams::PT_Assignment_nbits_Phi
Definition: L1TMuonBarrelParams.h:46
L1TMuonBarrelParams::pnodes_
std::vector< Node > pnodes_
Definition: L1TMuonBarrelParams.h:106
L1TMuonBarrelParams::BX_max
Definition: L1TMuonBarrelParams.h:53
L1TMuonBarrelParams::LUT
std::map< short, short, std::less< short > > LUT
L1MuBMPtaLut.
Definition: L1TMuonBarrelParams.h:72
L1TMuonBarrelParams::LUTCONT
std::pair< short, std::vector< short > > LUTCONT
Definition: L1TMuonBarrelParams.h:75
L1TMuonBarrelParams::DisableNewAlgo
Definition: L1TMuonBarrelParams.h:60
L1MuDTTFMasks.h
L1TMuonBarrelParams::LUTParams::qp_lut_
qpLUT qp_lut_
Definition: L1TMuonBarrelParams.h:85
L1TMuonBarrelParams::OutOfTime_Filter
Definition: L1TMuonBarrelParams.h:56
L1TMuonBarrelParams::LUTParams::eta_lut_
etaLUT eta_lut_
Definition: L1TMuonBarrelParams.h:86
L1TMuonBarrelParams::LUTParams::extLUT::high
LUT high
Definition: L1TMuonBarrelParams.h:92
L1TMuonBarrelParams::BX_min
Definition: L1TMuonBarrelParams.h:52
L1TMuonBarrelParams::Node::LUT_
l1t::LUT LUT_
Definition: L1TMuonBarrelParams.h:32
L1TMuonBarrelParams::Node::iparams_
std::vector< int > iparams_
Definition: L1TMuonBarrelParams.h:35
Serializable.h
L1TMuonBarrelParams::LUTParams::LUTParams
LUTParams()
Definition: L1TMuonBarrelParams.h:96
L1TMuonBarrelParams::version_
unsigned version_
Definition: L1TMuonBarrelParams.h:103
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1TMuonBarrelParams::LUTParams::phi_lut_
std::vector< LUT > phi_lut_
Definition: L1TMuonBarrelParams.h:83
L1TMuonBarrelParams::CONFIG
Definition: L1TMuonBarrelParams.h:43
L1TMuonBarrelParams::LUTParams::pta_lut_
std::vector< LUT > pta_lut_
Definition: L1TMuonBarrelParams.h:82
L1TMuonBarrelParams::Extrapolation_Filter
Definition: L1TMuonBarrelParams.h:54
L1TMuonBarrelParams::LUTParams::ext_lut_
std::vector< extLUT > ext_lut_
Definition: L1TMuonBarrelParams.h:95
l1t::LUT
Definition: LUT.h:29
L1TMuonBarrelParams::LUTParams::pta_threshold_
std::vector< int > pta_threshold_
Definition: L1TMuonBarrelParams.h:84
L1TMuonBarrelParams::PHI_Assignment_nbits_Phi
Definition: L1TMuonBarrelParams.h:48
L1TMuonBarrelParams::Node::dparams_
std::vector< double > dparams_
Definition: L1TMuonBarrelParams.h:33
L1TMuonBarrelParams::Node::type_
std::string type_
Definition: L1TMuonBarrelParams.h:30
L1TMuonBarrelParams::LUTParams
Definition: L1TMuonBarrelParams.h:80
L1TMuonBarrelParams
Definition: L1TMuonBarrelParams.h:23
L1TMuonBarrelParams::~L1TMuonBarrelParams
~L1TMuonBarrelParams()
Definition: L1TMuonBarrelParams.h:100
L1TMuonBarrelParams::PHI_Assignment_nbits_PhiB
Definition: L1TMuonBarrelParams.h:49
L1TMuonBarrelParams::OutOfTime_Filter_Window
Definition: L1TMuonBarrelParams.h:55
L1MuDTEtaPattern.h
Version
Definition: InitMessage.h:39
L1TMuonBarrelParams::qpLUT
std::map< LUTID, LUTCONT > qpLUT
Definition: L1TMuonBarrelParams.h:76
L1TMuonBarrelParams::Node::version_
unsigned version_
Definition: L1TMuonBarrelParams.h:31
L1TMuonBarrelParams::Open_LUTs
Definition: L1TMuonBarrelParams.h:57
L1MuDTTFParameters
Definition: L1MuDTTFParameters.h:36
L1TMuonBarrelParams::l1mudttfparams_
std::vector< L1MuDTTFParameters > l1mudttfparams_
Definition: L1TMuonBarrelParams.h:108
L1TMuonBarrelParams::PT_Assignment_nbits_PhiB
Definition: L1TMuonBarrelParams.h:47
L1TMuonBarrelParams::Node
Definition: L1TMuonBarrelParams.h:28
L1TMuonBarrelParams::EtaTrackFinder
Definition: L1TMuonBarrelParams.h:58