CSCGains

Item

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
#ifndef CSCGains_h
#define CSCGains_h

#include "CondFormats/Serialization/interface/Serializable.h"

#include "DataFormats/MuonDetId/interface/CSCDetId.h"
#include <vector>
#include <map>

class CSCGains {
public:
  CSCGains();
  ~CSCGains();

  struct Item {
    float gain_slope;
    float gain_intercept;
    float gain_chi2;

    COND_SERIALIZABLE;
  };

  const Item& item(const CSCDetId& cscId, int strip) const;

  typedef std::map<int, std::vector<Item> > GainsMap;
  GainsMap gains;

  COND_SERIALIZABLE;
};

#endif