CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CSCDBCrosstalk.h
Go to the documentation of this file.
1 #ifndef CSCObjects_CSCDBCrosstalk_h
2 #define CSCObjects_CSCDBCrosstalk_h
3 
5 
6 #include <iosfwd>
7 #include <vector>
8 
10 public:
13 
14  struct Item {
15  short int xtalk_slope_right;
17  short int xtalk_slope_left;
19 
21  };
24 
25  enum factors { FSLOPE = 10000000, FINTERCEPT = 100000 };
26 
27  typedef std::vector<Item> CrosstalkContainer;
29 
30  const Item& item(int index) const { return crosstalk[index]; }
31  short int rslope(int index) const { return crosstalk[index].xtalk_slope_right; }
32  short int rinter(int index) const { return crosstalk[index].xtalk_intercept_right; }
33  short int lslope(int index) const { return crosstalk[index].xtalk_slope_left; }
34  short int linter(int index) const { return crosstalk[index].xtalk_intercept_left; }
35  int sscale() const { return factor_slope; }
36  int iscale() const { return factor_intercept; }
37 
39 };
40 
41 std::ostream& operator<<(std::ostream& os, const CSCDBCrosstalk& cscdb);
42 
43 #endif
std::vector< Item > CrosstalkContainer
int iscale() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
short int rinter(int index) const
short int lslope(int index) const
short int xtalk_slope_right
short int xtalk_intercept_left
#define COND_SERIALIZABLE
Definition: Serializable.h:39
int sscale() const
short int xtalk_intercept_right
short int rslope(int index) const
const Item & item(int index) const
short int xtalk_slope_left
CrosstalkContainer crosstalk
short int linter(int index) const