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 //-----------------------------------------------------------------------------
11 
12 #include <vector>
13 #include <string>
14 //-----------------------------------------------------------------------------
15 
16 class RPCPattern {
17 public:
18 
19  //needed types
26  friend class RPCPattern;
27  private:
29  unsigned char m_StripFrom;
31  unsigned char m_StripTo;
32 
34 };
35 
36  typedef std::vector<RPCPattern> RPCPatVec;
37 
38  struct TQuality {
39  unsigned char m_FiredPlanes;
44  signed char m_tower;
45 
47 };
48 
49  typedef std::vector<TQuality> TQualityVec;
50 
51 
52 
53  // use namespace?
54  // Moved/duplicated from RPCConst
55 // enum TPatternType {PAT_TYPE_T, PAT_TYPE_E};
56  typedef char TPatternType;
57  static const TPatternType PAT_TYPE_T = 0;
58  static const TPatternType PAT_TYPE_E = 1;
59  static const int m_LOGPLANES_COUNT = 6;
60  static const int m_FIRST_PLANE = 0;
61  static const int m_LAST_PLANE = 5;
62  static const int m_NOT_CONECTED = 99;
63 
64 
66  RPCPattern();
67  RPCPattern(int tower, int sector, int segment);
68 
69  void setStripFrom(int logPlane, int stripFrom);
70 
71  void setStripTo(int logPlane, int stripTo);
72 
74  int getStripFrom(int logPlane) const;
75 
77  int getStripTo(int logPlane) const;
78 
79  int getTower() const;
80  int getLogSector() const;
81  int getLogSegment() const;
82 
83  int getCode() const;
84 
85  int getSign() const;
86 
87  int getNumber() const;
88 
90 
91  int getRefGroup() const;
92 
93  int getQualityTabNumber() const;
94 
95  void setCoords(int tower, int sector, int segment);
96 
97  void setCode(int a);
98 
99  void setSign(int a);
100 
101  void setNumber(int a);
102 
103  void setPatternType(TPatternType patternType);
104 
105  void setRefGroup(int refGroup);
106 
107  void setQualityTabNumber(int qualityTabNumber);
108 
109 private:
112 
113 // coordinates
114  char m_Tower;
117 
119  char m_Sign;
120 
122  char m_Code;
123 
128 
131 
135 
137  short m_Number;
138 
139 
140 
142 };
143 
144 #endif
char m_LogSegment
Definition: RPCPattern.h:116
void setRefGroup(int refGroup)
Definition: RPCPattern.cc:91
char m_Code
Muons ptCode.
Definition: RPCPattern.h:122
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:62
int getNumber() const
Definition: RPCPattern.cc:69
RPCLogicalStrip m_Strips[m_LOGPLANES_COUNT]
LogicalStrip for every LogPlane.
Definition: RPCPattern.h:111
static const int m_LOGPLANES_COUNT
Definition: RPCPattern.h:59
signed char m_tower
Definition: RPCPattern.h:44
char m_RefGroup
If pattern is of type PAT_TYPE_E, denotes the index of group to which this pattern belongs...
Definition: RPCPattern.h:130
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:115
unsigned char m_StripFrom
First strip in range.
Definition: RPCPattern.h:29
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:134
char TPatternType
Definition: RPCPattern.h:56
int getStripFrom(int logPlane) const
First strip in range.
Definition: RPCPattern.cc:52
static const int m_LAST_PLANE
Definition: RPCPattern.h:61
static const TPatternType PAT_TYPE_T
Definition: RPCPattern.h:57
unsigned char m_FiredPlanes
Definition: RPCPattern.h:39
std::vector< RPCPattern > RPCPatVec
Definition: RPCPattern.h:36
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:137
int getQualityTabNumber() const
Definition: RPCPattern.cc:75
int getSign() const
Definition: RPCPattern.cc:67
std::vector< TQuality > TQualityVec
Definition: RPCPattern.h:49
static const TPatternType PAT_TYPE_E
Definition: RPCPattern.h:58
void setSign(int a)
Definition: RPCPattern.cc:85
void setCode(int a)
Definition: RPCPattern.cc:83
int getRefGroup() const
Definition: RPCPattern.cc:73
#define COND_SERIALIZABLE
Definition: Serializable.h:30
unsigned char m_StripTo
Next-to-last strip in range.
Definition: RPCPattern.h:31
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:60
TPatternType m_PatternType
Definition: RPCPattern.h:127
char m_Sign
Muon&#39;s sign.
Definition: RPCPattern.h:119
char m_Tower
Definition: RPCPattern.h:114