CMS 3D CMS Logo

L1TTwinMuxParams.h
Go to the documentation of this file.
1 
10 #ifndef L1TTwinMuxParams_h
11 #define L1TTwinMuxParams_h
12 
13 #include <memory>
14 #include <iostream>
15 #include <vector>
16 
18 
20 public:
22  enum { Version = 1 };
23 
24  class Node {
25  public:
27  unsigned version_;
28  std::vector<double> dparams_;
29  std::vector<unsigned> uparams_;
30  std::vector<int> iparams_;
31  std::vector<std::string> sparams_;
32  Node(){ type_="unspecified"; version_=0; }
34  };
35  enum {
36  CONFIG = 0,
38  };
47 
48 
50 
51  // FW version
52  unsigned fwVersion() const { return fwVersion_; }
54 
57 
58  void set_UseOnlyRPC(int par1) {pnodes_[CONFIG].iparams_[UseOnlyRPC] = par1;}
59  int get_UseOnlyRPC() const{return pnodes_[CONFIG].iparams_[UseOnlyRPC];}
60 
61  void set_UseOnlyDT(int par1) {pnodes_[CONFIG].iparams_[UseOnlyDT] = par1;}
62  int get_UseOnlyDT() const{return pnodes_[CONFIG].iparams_[UseOnlyDT];}
63 
64  void set_UseLowQDT(int par1) {pnodes_[CONFIG].iparams_[UseLowQDT] = par1;}
65  int get_UseLowQDT() const{return pnodes_[CONFIG].iparams_[UseLowQDT];}
66 
68  int get_CorrectDTBxwRPC() const{return pnodes_[CONFIG].iparams_[CorrectDTBxwRPC];}
69 
70  void set_Verbose(int par1) {pnodes_[CONFIG].iparams_[Verbose] = par1;}
71  int get_Verbose() const{return pnodes_[CONFIG].iparams_[Verbose];}
72 
74  int get_DphiWindowBxShift() const{return pnodes_[CONFIG].iparams_[DphiWindow];}
75 
76  // print parameters to stream:
77  void print(std::ostream&) const;
78  friend std::ostream& operator<<(std::ostream& o, const L1TTwinMuxParams & p) { p.print(o); return o; }
79  private:
80  unsigned version_;
81  unsigned fwVersion_;
82 
83  std::vector<Node> pnodes_;
84  // std::vector here is just so we can use "blob" in DB and evade max size limitations...
85 
87 };
88 #endif
int get_Verbose() const
std::vector< double > dparams_
int get_DphiWindowBxShift() const
void set_Verbose(int par1)
friend std::ostream & operator<<(std::ostream &o, const L1TTwinMuxParams &p)
unsigned fwVersion() const
std::vector< std::string > sparams_
void set_UseOnlyRPC(int par1)
std::vector< Node > pnodes_
void print(std::ostream &) const
std::vector< int > iparams_
void set_UseOnlyDT(int par1)
void set_UseLowQDT(int par1)
void set_DphiWindowBxShift(int par1)
int get_UseLowQDT() const
int get_USERPCBXFORDTBELOWQUALITY() const
int get_UseOnlyDT() const
void set_CorrectDTBxwRPC(int par1)
void setFwVersion(unsigned fwVersion)
#define COND_SERIALIZABLE
Definition: Serializable.h:38
int get_UseOnlyRPC() const
int get_CorrectDTBxwRPC() const
void set_USERPCBXFORDTBELOWQUALITY(int par1)
std::vector< unsigned > uparams_