CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCPattern.h
Go to the documentation of this file.
1 #ifndef L1Trigger_RPCPattern_h
2 #define L1Trigger_RPCPattern_h
3 //-----------------------------------------------------------------------------
10 #include <vector>
11 #include <string>
12 //-----------------------------------------------------------------------------
13 
14 class RPCPattern {
15 public:
16 
17  //needed types
24  friend class RPCPattern;
25  private:
27  unsigned char m_StripFrom;
29  unsigned char m_StripTo;
30  };
31 
32  typedef std::vector<RPCPattern> RPCPatVec;
33 
34  struct TQuality {
35  unsigned char m_FiredPlanes;
40  signed char m_tower;
41  };
42 
43  typedef std::vector<TQuality> TQualityVec;
44 
45 
46 
47  // use namespace?
48  // Moved/duplicated from RPCConst
49 // enum TPatternType {PAT_TYPE_T, PAT_TYPE_E};
50  typedef char TPatternType;
51  static const TPatternType PAT_TYPE_T = 0;
52  static const TPatternType PAT_TYPE_E = 1;
53  static const int m_LOGPLANES_COUNT = 6;
54  static const int m_FIRST_PLANE = 0;
55  static const int m_LAST_PLANE = 5;
56  static const int m_NOT_CONECTED = 99;
57 
58 
60  RPCPattern();
61  RPCPattern(int tower, int sector, int segment);
62 
63  void setStripFrom(int logPlane, int stripFrom);
64 
65  void setStripTo(int logPlane, int stripTo);
66 
68  int getStripFrom(int logPlane) const;
69 
71  int getStripTo(int logPlane) const;
72 
73  int getTower() const;
74  int getLogSector() const;
75  int getLogSegment() const;
76 
77  int getCode() const;
78 
79  int getSign() const;
80 
81  int getNumber() const;
82 
84 
85  int getRefGroup() const;
86 
87  int getQualityTabNumber() const;
88 
89  void setCoords(int tower, int sector, int segment);
90 
91  void setCode(int a);
92 
93  void setSign(int a);
94 
95  void setNumber(int a);
96 
97  void setPatternType(TPatternType patternType);
98 
99  void setRefGroup(int refGroup);
100 
101  void setQualityTabNumber(int qualityTabNumber);
102 
103 private:
106 
107 // coordinates
108  char m_Tower;
111 
113  char m_Sign;
114 
116  char m_Code;
117 
122 
125 
129 
131  short m_Number;
132 
133 
134 };
135 
136 #endif
char m_LogSegment
Definition: RPCPattern.h:110
void setRefGroup(int refGroup)
Definition: RPCPattern.cc:91
char m_Code
Muons ptCode.
Definition: RPCPattern.h:116
int getStripTo(int logPlane) const
Next-to-last strip in range.
Definition: RPCPattern.cc:57
int getLogSegment() const
Definition: RPCPattern.cc:63
int getLogSector() const
Definition: RPCPattern.cc:62
void setStripTo(int logPlane, int stripTo)
Definition: RPCPattern.cc:49
static const int m_NOT_CONECTED
Definition: RPCPattern.h:56
int getNumber() const
Definition: RPCPattern.cc:69
RPCLogicalStrip m_Strips[m_LOGPLANES_COUNT]
LogicalStrip for every LogPlane.
Definition: RPCPattern.h:105
static const int m_LOGPLANES_COUNT
Definition: RPCPattern.h:53
signed char m_tower
Definition: RPCPattern.h:40
char m_RefGroup
If pattern is of type PAT_TYPE_E, denotes the index of group to which this pattern belongs...
Definition: RPCPattern.h:124
void setPatternType(TPatternType patternType)
Definition: RPCPattern.cc:89
void setCoords(int tower, int sector, int segment)
Definition: RPCPattern.cc:77
char m_LogSector
Definition: RPCPattern.h:109
unsigned char m_StripFrom
First strip in range.
Definition: RPCPattern.h:27
RPCPattern()
Default Constructor. Empty pattern, no muon, all planes m_NOT_CONECTED.
Definition: RPCPattern.cc:9
void setStripFrom(int logPlane, int stripFrom)
Definition: RPCPattern.cc:45
char m_QualityTabNumber
Definition: RPCPattern.h:128
char TPatternType
Definition: RPCPattern.h:50
int getStripFrom(int logPlane) const
First strip in range.
Definition: RPCPattern.cc:52
static const int m_LAST_PLANE
Definition: RPCPattern.h:55
static const TPatternType PAT_TYPE_T
Definition: RPCPattern.h:51
unsigned char m_FiredPlanes
Definition: RPCPattern.h:35
std::vector< RPCPattern > RPCPatVec
Definition: RPCPattern.h:32
void setNumber(int a)
Definition: RPCPattern.cc:87
void setQualityTabNumber(int qualityTabNumber)
Definition: RPCPattern.cc:93
short m_Number
m_Number of pattern in m_PAC&#39;s patterns set.
Definition: RPCPattern.h:131
int getQualityTabNumber() const
Definition: RPCPattern.cc:75
int getSign() const
Definition: RPCPattern.cc:67
std::vector< TQuality > TQualityVec
Definition: RPCPattern.h:43
static const TPatternType PAT_TYPE_E
Definition: RPCPattern.h:52
void setSign(int a)
Definition: RPCPattern.cc:85
void setCode(int a)
Definition: RPCPattern.cc:83
int getRefGroup() const
Definition: RPCPattern.cc:73
unsigned char m_StripTo
Next-to-last strip in range.
Definition: RPCPattern.h:29
double a
Definition: hdecay.h:121
TPatternType getPatternType() const
Definition: RPCPattern.cc:71
int getCode() const
Definition: RPCPattern.cc:65
int getTower() const
Definition: RPCPattern.cc:61
static const int m_FIRST_PLANE
Definition: RPCPattern.h:54
TPatternType m_PatternType
Definition: RPCPattern.h:121
char m_Sign
Muon&#39;s sign.
Definition: RPCPattern.h:113
char m_Tower
Definition: RPCPattern.h:108