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() {
33  type_ = "unspecified";
34  version_ = 0;
35  }
37  };
38  enum { CONFIG = 0, NUM_TM_PARAM_NODES = 7 };
39  enum {
48  };
49 
51 
52  // FW version
53  unsigned fwVersion() const { return fwVersion_; }
55 
58 
59  void set_UseOnlyRPC(int par1) { pnodes_[CONFIG].iparams_[UseOnlyRPC] = par1; }
60  int get_UseOnlyRPC() const { return pnodes_[CONFIG].iparams_[UseOnlyRPC]; }
61 
62  void set_UseOnlyDT(int par1) { pnodes_[CONFIG].iparams_[UseOnlyDT] = par1; }
63  int get_UseOnlyDT() const { return pnodes_[CONFIG].iparams_[UseOnlyDT]; }
64 
65  void set_UseLowQDT(int par1) { pnodes_[CONFIG].iparams_[UseLowQDT] = par1; }
66  int get_UseLowQDT() const { return pnodes_[CONFIG].iparams_[UseLowQDT]; }
67 
69  int get_CorrectDTBxwRPC() const { return pnodes_[CONFIG].iparams_[CorrectDTBxwRPC]; }
70 
71  void set_Verbose(int par1) { pnodes_[CONFIG].iparams_[Verbose] = par1; }
72  int get_Verbose() const { return pnodes_[CONFIG].iparams_[Verbose]; }
73 
75  int get_DphiWindowBxShift() const { return pnodes_[CONFIG].iparams_[DphiWindow]; }
76 
77  // print parameters to stream:
78  void print(std::ostream&) const;
79  friend std::ostream& operator<<(std::ostream& o, const L1TTwinMuxParams& p) {
80  p.print(o);
81  return o;
82  }
83 
84 private:
85  unsigned version_;
86  unsigned fwVersion_;
87 
88  std::vector<Node> pnodes_;
89  // std::vector here is just so we can use "blob" in DB and evade max size limitations...
90 
92 };
93 #endif
L1TTwinMuxParams::Node::iparams_
std::vector< int > iparams_
Definition: L1TTwinMuxParams.h:30
L1TTwinMuxParams::set_UseLowQDT
void set_UseLowQDT(int par1)
Definition: L1TTwinMuxParams.h:65
L1TTwinMuxParams::L1TTwinMuxParams
L1TTwinMuxParams()
Definition: L1TTwinMuxParams.cc:3
L1TTwinMuxParams::UseLowQDT
Definition: L1TTwinMuxParams.h:44
L1TTwinMuxParams::set_UseOnlyRPC
void set_UseOnlyRPC(int par1)
Definition: L1TTwinMuxParams.h:59
L1TTwinMuxParams::DphiWindow
Definition: L1TTwinMuxParams.h:41
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
L1TTwinMuxParams::~L1TTwinMuxParams
~L1TTwinMuxParams()
Definition: L1TTwinMuxParams.h:50
L1TTwinMuxParams::get_UseOnlyRPC
int get_UseOnlyRPC() const
Definition: L1TTwinMuxParams.h:60
L1TTwinMuxParams::Node::version_
unsigned version_
Definition: L1TTwinMuxParams.h:27
L1TTwinMuxParams::Verbose
Definition: L1TTwinMuxParams.h:46
pfMETCorrectionType0_cfi.par1
par1
Definition: pfMETCorrectionType0_cfi.py:48
L1TTwinMuxParams::version_
unsigned version_
Definition: L1TTwinMuxParams.h:85
L1TTwinMuxParams::CorrectDTBxwRPC
Definition: L1TTwinMuxParams.h:45
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
L1TTwinMuxParams::NUM_TM_PARAM_NODES
Definition: L1TTwinMuxParams.h:38
L1TTwinMuxParams::operator<<
friend std::ostream & operator<<(std::ostream &o, const L1TTwinMuxParams &p)
Definition: L1TTwinMuxParams.h:79
L1TTwinMuxParams::UseOnlyDT
Definition: L1TTwinMuxParams.h:43
L1TTwinMuxParams::get_DphiWindowBxShift
int get_DphiWindowBxShift() const
Definition: L1TTwinMuxParams.h:75
L1TTwinMuxParams::Node
Definition: L1TTwinMuxParams.h:24
L1TTwinMuxParams::set_CorrectDTBxwRPC
void set_CorrectDTBxwRPC(int par1)
Definition: L1TTwinMuxParams.h:68
L1TTwinMuxParams::UseOnlyRPC
Definition: L1TTwinMuxParams.h:42
L1TTwinMuxParams::get_CorrectDTBxwRPC
int get_CorrectDTBxwRPC() const
Definition: L1TTwinMuxParams.h:69
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
L1TTwinMuxParams::Node::dparams_
std::vector< double > dparams_
Definition: L1TTwinMuxParams.h:28
L1TTwinMuxParams::Node::uparams_
std::vector< unsigned > uparams_
Definition: L1TTwinMuxParams.h:29
L1TTwinMuxParams::NUM_CONFIG_PARAMS
Definition: L1TTwinMuxParams.h:47
Serializable.h
L1TTwinMuxParams::fwVersion
unsigned fwVersion() const
Definition: L1TTwinMuxParams.h:53
L1TTwinMuxParams::set_USERPCBXFORDTBELOWQUALITY
void set_USERPCBXFORDTBELOWQUALITY(int par1)
Definition: L1TTwinMuxParams.h:56
L1TTwinMuxParams::pnodes_
std::vector< Node > pnodes_
Definition: L1TTwinMuxParams.h:88
L1TTwinMuxParams::get_UseLowQDT
int get_UseLowQDT() const
Definition: L1TTwinMuxParams.h:66
L1TTwinMuxParams::set_DphiWindowBxShift
void set_DphiWindowBxShift(int par1)
Definition: L1TTwinMuxParams.h:74
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1TTwinMuxParams::Node::Node
Node()
Definition: L1TTwinMuxParams.h:32
L1TTwinMuxParams::setFwVersion
void setFwVersion(unsigned fwVersion)
Definition: L1TTwinMuxParams.h:54
L1TTwinMuxParams::USERPCBXFORDTBELOWQUALITY
Definition: L1TTwinMuxParams.h:40
L1TTwinMuxParams::print
void print(std::ostream &) const
Definition: L1TTwinMuxParams.cc:9
L1TTwinMuxParams::Node::sparams_
std::vector< std::string > sparams_
Definition: L1TTwinMuxParams.h:31
L1TTwinMuxParams::get_USERPCBXFORDTBELOWQUALITY
int get_USERPCBXFORDTBELOWQUALITY() const
Definition: L1TTwinMuxParams.h:57
L1TTwinMuxParams::fwVersion_
unsigned fwVersion_
Definition: L1TTwinMuxParams.h:86
L1TTwinMuxParams::set_UseOnlyDT
void set_UseOnlyDT(int par1)
Definition: L1TTwinMuxParams.h:62
Version
Definition: InitMessage.h:39
L1TTwinMuxParams::CONFIG
Definition: L1TTwinMuxParams.h:38
L1TTwinMuxParams::Node::type_
std::string type_
Definition: L1TTwinMuxParams.h:26
L1TTwinMuxParams::get_UseOnlyDT
int get_UseOnlyDT() const
Definition: L1TTwinMuxParams.h:63
L1TTwinMuxParams::get_Verbose
int get_Verbose() const
Definition: L1TTwinMuxParams.h:72
L1TTwinMuxParams::set_Verbose
void set_Verbose(int par1)
Definition: L1TTwinMuxParams.h:71
L1TTwinMuxParams
Definition: L1TTwinMuxParams.h:19