CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCDBCrosstalk.h
Go to the documentation of this file.
1 #ifndef CSCObjects_CSCDBCrosstalk_h
2 #define CSCObjects_CSCDBCrosstalk_h
3 
4 #include <iosfwd>
5 #include <vector>
6 
8 {
9  public:
12 
13  struct Item{
14  short int xtalk_slope_right;
16  short int xtalk_slope_left;
18  };
21 
22  enum factors{FSLOPE=10000000, FINTERCEPT=100000};
23 
24  typedef std::vector<Item> CrosstalkContainer;
26 
27  const Item & item( int index ) const { return crosstalk[index]; }
28  short int rslope( int index ) const { return crosstalk[index].xtalk_slope_right; }
29  short int rinter( int index ) const { return crosstalk[index].xtalk_intercept_right; }
30  short int lslope( int index ) const { return crosstalk[index].xtalk_slope_left; }
31  short int linter( int index ) const { return crosstalk[index].xtalk_intercept_left; }
32  int sscale() const { return factor_slope; }
33  int iscale() const { return factor_intercept; }
34 };
35 
36 std::ostream & operator<<(std::ostream & os, const CSCDBCrosstalk & cscdb);
37 
38 #endif
39 
std::vector< Item > CrosstalkContainer
int iscale() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
short int rinter(int index) const
short int lslope(int index) const
short int xtalk_slope_right
short int xtalk_intercept_left
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