Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:18

0001 //
0002 // L1TMuonEndCapForests: Collection of Decision Tree Forests used to fill EMTF LUTs.
0003 //
0004 
0005 #ifndef l1t_L1TMuonEndCapForest_h
0006 #define l1t_L1TMuonEndCapForest_h
0007 
0008 #include <memory>
0009 #include <iostream>
0010 #include <vector>
0011 #include <map>
0012 
0013 #include "CondFormats/Serialization/interface/Serializable.h"
0014 
0015 class L1TMuonEndCapForest {
0016 public:
0017   class DTreeNode {
0018   public:
0019     DTreeNode() {
0020       splitVar = ileft = iright = 0;
0021       splitVal = fitVal = 0.0;
0022     }
0023     int splitVar;
0024     double splitVal;
0025     double fitVal;
0026     unsigned ileft;
0027     unsigned iright;
0028 
0029     COND_SERIALIZABLE;
0030   };
0031   typedef std::vector<DTreeNode> DTree;
0032   typedef std::vector<DTree> DForest;
0033   typedef std::vector<DForest> DForestColl;
0034   typedef std::map<int, int> DForestMap;
0035 
0036   unsigned version_;
0037   DForestColl forest_coll_;
0038   DForestMap forest_map_;
0039 
0040   L1TMuonEndCapForest() { version_ = 0; }
0041   ~L1TMuonEndCapForest() {}
0042 
0043   COND_SERIALIZABLE;
0044 };
0045 #endif