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 
5 
6 #include <iosfwd>
7 #include <vector>
8 
10 {
11  public:
14 
15  struct Item{
16  short int xtalk_slope_right;
18  short int xtalk_slope_left;
20 
22 };
25 
26  enum factors{FSLOPE=10000000, FINTERCEPT=100000};
27 
28  typedef std::vector<Item> CrosstalkContainer;
30 
31  const Item & item( int index ) const { return crosstalk[index]; }
32  short int rslope( int index ) const { return crosstalk[index].xtalk_slope_right; }
33  short int rinter( int index ) const { return crosstalk[index].xtalk_intercept_right; }
34  short int lslope( int index ) const { return crosstalk[index].xtalk_slope_left; }
35  short int linter( int index ) const { return crosstalk[index].xtalk_intercept_left; }
36  int sscale() const { return factor_slope; }
37  int iscale() const { return factor_intercept; }
38 
40 };
41 
42 std::ostream & operator<<(std::ostream & os, const CSCDBCrosstalk & cscdb);
43 
44 #endif
45 
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
#define COND_SERIALIZABLE
Definition: Serializable.h:37
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