CMS 3D CMS Logo

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
CSCDBCrosstalk::linter
short int linter(int index) const
Definition: CSCDBCrosstalk.h:34
CSCDBCrosstalk::rslope
short int rslope(int index) const
Definition: CSCDBCrosstalk.h:31
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
CSCDBCrosstalk::iscale
int iscale() const
Definition: CSCDBCrosstalk.h:36
CSCDBCrosstalk::lslope
short int lslope(int index) const
Definition: CSCDBCrosstalk.h:33
CSCDBCrosstalk::CrosstalkContainer
std::vector< Item > CrosstalkContainer
Definition: CSCDBCrosstalk.h:27
operator<<
std::ostream & operator<<(std::ostream &os, const CSCDBCrosstalk &cscdb)
Definition: CSCDBCrosstalk.cc:4
CSCDBCrosstalk::item
const Item & item(int index) const
Definition: CSCDBCrosstalk.h:30
CSCDBCrosstalk
Definition: CSCDBCrosstalk.h:9
CSCDBCrosstalk::rinter
short int rinter(int index) const
Definition: CSCDBCrosstalk.h:32
CSCDBCrosstalk::factor_slope
int factor_slope
Definition: CSCDBCrosstalk.h:22
CSCDBCrosstalk::Item::xtalk_slope_right
short int xtalk_slope_right
Definition: CSCDBCrosstalk.h:15
CSCDBCrosstalk::Item::xtalk_intercept_left
short int xtalk_intercept_left
Definition: CSCDBCrosstalk.h:18
CSCDBCrosstalk::factors
factors
Definition: CSCDBCrosstalk.h:25
CSCDBCrosstalk::Item
Definition: CSCDBCrosstalk.h:14
Serializable.h
CSCDBCrosstalk::sscale
int sscale() const
Definition: CSCDBCrosstalk.h:35
CSCDBCrosstalk::Item::xtalk_slope_left
short int xtalk_slope_left
Definition: CSCDBCrosstalk.h:17
CSCDBCrosstalk::FINTERCEPT
Definition: CSCDBCrosstalk.h:25
CSCDBCrosstalk::crosstalk
CrosstalkContainer crosstalk
Definition: CSCDBCrosstalk.h:28
CSCDBCrosstalk::FSLOPE
Definition: CSCDBCrosstalk.h:25
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
CSCDBCrosstalk::Item::xtalk_intercept_right
short int xtalk_intercept_right
Definition: CSCDBCrosstalk.h:16
CSCDBCrosstalk::CSCDBCrosstalk
CSCDBCrosstalk()
Definition: CSCDBCrosstalk.h:11
CSCDBCrosstalk::factor_intercept
int factor_intercept
Definition: CSCDBCrosstalk.h:23
CSCDBCrosstalk::~CSCDBCrosstalk
~CSCDBCrosstalk()
Definition: CSCDBCrosstalk.h:12