Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:20:46

0001 //
0002 // \class L1TMuonGlobalParams_PUBLIC
0003 //
0004 // We are delegating the interpretation of our CondFormats to helper classes.
0005 //
0006 // To do so, we need to make the persistent data public (or add a friend class) but that will require
0007 // ALCA/DB signoff...  while we wait for that, we have this measure, which effectively casts away the private.
0008 //
0009 // This will go away once ALCA/DB signs off on our CondFormat clean up.
0010 
0011 #include "CondFormats/L1TObjects/interface/L1TMuonGlobalParams.h"
0012 
0013 #ifndef L1TMuonGlobalParams_PUBLIC_h
0014 #define L1TMuonGlobalParams_PUBLIC_h
0015 
0016 #include <memory>
0017 #include <iostream>
0018 #include <vector>
0019 #include <cassert>
0020 
0021 class L1TMuonGlobalParams_PUBLIC {
0022 public:
0023   enum { Version = 1 };
0024 
0025   class Node {
0026   public:
0027     std::string type_;
0028     unsigned version_;
0029     l1t::LUT LUT_;
0030     std::vector<double> dparams_;
0031     std::vector<unsigned> uparams_;
0032     std::vector<int> iparams_;
0033     std::vector<std::string> sparams_;
0034     Node() {
0035       type_ = "unspecified";
0036       version_ = 0;
0037     }
0038     COND_SERIALIZABLE;
0039   };
0040   unsigned version_;
0041   unsigned fwVersion_;  //obsolete
0042 
0043   int bxMin_;  //obsolete
0044   int bxMax_;  //obsolete
0045   std::vector<Node> pnodes_;
0046 
0047   L1TMuonGlobalParams_PUBLIC() {
0048     version_ = Version;
0049     fwVersion_ = 0;
0050     bxMin_ = 0;
0051     bxMax_ = 0;
0052   }
0053 };
0054 
0055 const L1TMuonGlobalParams_PUBLIC& cast_to_L1TMuonGlobalParams_PUBLIC(const L1TMuonGlobalParams& x);
0056 
0057 const L1TMuonGlobalParams& cast_to_L1TMuonGlobalParams(const L1TMuonGlobalParams_PUBLIC& x);
0058 
0059 #endif