CMS 3D CMS Logo

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  //needed types
25  friend class RPCPattern;
26 
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  // use namespace?
52  // Moved/duplicated from RPCConst
53  // enum TPatternType {PAT_TYPE_T, PAT_TYPE_E};
54  typedef char TPatternType;
55  static const TPatternType PAT_TYPE_T = 0;
56  static const TPatternType PAT_TYPE_E = 1;
57  static const int m_LOGPLANES_COUNT = 6;
58  static const int m_FIRST_PLANE = 0;
59  static const int m_LAST_PLANE = 5;
60  static const int m_NOT_CONECTED = 99;
61 
63  RPCPattern();
64  RPCPattern(int tower, int sector, int segment);
65 
66  void setStripFrom(int logPlane, int stripFrom);
67 
68  void setStripTo(int logPlane, int stripTo);
69 
71  int getStripFrom(int logPlane) const;
72 
74  int getStripTo(int logPlane) const;
75 
76  int getTower() const;
77  int getLogSector() const;
78  int getLogSegment() const;
79 
80  int getCode() const;
81 
82  int getSign() const;
83 
84  int getNumber() const;
85 
87 
88  int getRefGroup() const;
89 
90  int getQualityTabNumber() const;
91 
92  void setCoords(int tower, int sector, int segment);
93 
94  void setCode(int a);
95 
96  void setSign(int a);
97 
98  void setNumber(int a);
99 
100  void setPatternType(TPatternType patternType);
101 
102  void setRefGroup(int refGroup);
103 
104  void setQualityTabNumber(int qualityTabNumber);
105 
106 private:
109 
110  // coordinates
111  char m_Tower;
114 
116  char m_Sign;
117 
119  char m_Code;
120 
125 
128 
132 
134  short m_Number;
135 
137 };
138 
139 #endif
char m_LogSegment
Definition: RPCPattern.h:113
void setRefGroup(int refGroup)
Definition: RPCPattern.cc:89
char m_Code
Muons ptCode.
Definition: RPCPattern.h:119
int getLogSector() const
Definition: RPCPattern.cc:60
void setStripTo(int logPlane, int stripTo)
Definition: RPCPattern.cc:47
int getNumber() const
Definition: RPCPattern.cc:67
static const int m_NOT_CONECTED
Definition: RPCPattern.h:60
RPCLogicalStrip m_Strips[m_LOGPLANES_COUNT]
LogicalStrip for every LogPlane.
Definition: RPCPattern.h:108
int getQualityTabNumber() const
Definition: RPCPattern.cc:73
static const int m_LOGPLANES_COUNT
Definition: RPCPattern.h:57
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:127
void setPatternType(TPatternType patternType)
Definition: RPCPattern.cc:87
int getSign() const
Definition: RPCPattern.cc:65
void setCoords(int tower, int sector, int segment)
Definition: RPCPattern.cc:75
char m_LogSector
Definition: RPCPattern.h:112
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:131
char TPatternType
Definition: RPCPattern.h:54
static const int m_LAST_PLANE
Definition: RPCPattern.h:59
static const TPatternType PAT_TYPE_T
Definition: RPCPattern.h:55
unsigned char m_FiredPlanes
Definition: RPCPattern.h:39
std::vector< RPCPattern > RPCPatVec
Definition: RPCPattern.h:36
int getTower() const
Definition: RPCPattern.cc:59
void setNumber(int a)
Definition: RPCPattern.cc:85
TPatternType getPatternType() const
Definition: RPCPattern.cc:69
void setQualityTabNumber(int qualityTabNumber)
Definition: RPCPattern.cc:91
short m_Number
m_Number of pattern in m_PAC&#39;s patterns set.
Definition: RPCPattern.h:134
std::vector< TQuality > TQualityVec
Definition: RPCPattern.h:49
int getLogSegment() const
Definition: RPCPattern.cc:61
static const TPatternType PAT_TYPE_E
Definition: RPCPattern.h:56
int getStripTo(int logPlane) const
Next-to-last strip in range.
Definition: RPCPattern.cc:55
void setSign(int a)
Definition: RPCPattern.cc:83
void setCode(int a)
Definition: RPCPattern.cc:81
int getCode() const
Definition: RPCPattern.cc:63
#define COND_SERIALIZABLE
Definition: Serializable.h:39
unsigned char m_StripTo
Next-to-last strip in range.
Definition: RPCPattern.h:31
double a
Definition: hdecay.h:121
static const int m_FIRST_PLANE
Definition: RPCPattern.h:58
TPatternType m_PatternType
Definition: RPCPattern.h:124
char m_Sign
Muon&#39;s sign.
Definition: RPCPattern.h:116
int getStripFrom(int logPlane) const
First strip in range.
Definition: RPCPattern.cc:50
char m_Tower
Definition: RPCPattern.h:111
int getRefGroup() const
Definition: RPCPattern.cc:71