Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:55

0001 #ifndef CSCGains_h
0002 #define CSCGains_h
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 
0006 #include "DataFormats/MuonDetId/interface/CSCDetId.h"
0007 #include <vector>
0008 #include <map>
0009 
0010 class CSCGains {
0011 public:
0012   CSCGains();
0013   ~CSCGains();
0014 
0015   struct Item {
0016     float gain_slope;
0017     float gain_intercept;
0018     float gain_chi2;
0019 
0020     COND_SERIALIZABLE;
0021   };
0022 
0023   const Item& item(const CSCDetId& cscId, int strip) const;
0024 
0025   typedef std::map<int, std::vector<Item> > GainsMap;
0026   GainsMap gains;
0027 
0028   COND_SERIALIZABLE;
0029 };
0030 
0031 #endif