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
RPCPattern::m_QualityTabNumber
char m_QualityTabNumber
Definition: RPCPattern.h:131
RPCPattern::TQualityVec
std::vector< TQuality > TQualityVec
Definition: RPCPattern.h:49
RPCPattern::TPatternType
char TPatternType
Definition: RPCPattern.h:54
RPCPattern::setSign
void setSign(int a)
Definition: RPCPattern.cc:82
RPCPattern::RPCLogicalStrip
Definition: RPCPattern.h:24
RPCPattern::getCode
int getCode() const
Definition: RPCPattern.cc:62
RPCPattern::setCode
void setCode(int a)
Definition: RPCPattern.cc:80
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:4
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
RPCPattern::PAT_TYPE_E
static const TPatternType PAT_TYPE_E
Definition: RPCPattern.h:56
RPCPattern::getStripTo
int getStripTo(int logPlane) const
Next-to-last strip in range.
Definition: RPCPattern.cc:54
RPCPattern::RPCLogicalStrip::m_StripFrom
unsigned char m_StripFrom
First strip in range.
Definition: RPCPattern.h:29
RPCPattern::m_Sign
char m_Sign
Muon's sign.
Definition: RPCPattern.h:116
RPCPattern::TQuality::m_QualityValue
char m_QualityValue
Definition: RPCPattern.h:41
RPCPattern::TQuality::m_logsector
char m_logsector
Definition: RPCPattern.h:42
RPCPattern::getLogSegment
int getLogSegment() const
Definition: RPCPattern.cc:60
RPCPattern::TQuality
Definition: RPCPattern.h:38
RPCPattern::TQuality::m_tower
signed char m_tower
Definition: RPCPattern.h:44
RPCPattern::m_PatternType
TPatternType m_PatternType
Definition: RPCPattern.h:124
RPCPattern::m_FIRST_PLANE
static const int m_FIRST_PLANE
Definition: RPCPattern.h:58
RPCPattern::TQuality::m_FiredPlanes
unsigned char m_FiredPlanes
Definition: RPCPattern.h:39
RPCPattern::m_LogSegment
char m_LogSegment
Definition: RPCPattern.h:113
RPCPattern::setRefGroup
void setRefGroup(int refGroup)
Definition: RPCPattern.cc:88
a
double a
Definition: hdecay.h:119
RPCPattern::setStripTo
void setStripTo(int logPlane, int stripTo)
Definition: RPCPattern.cc:46
RPCPattern::getStripFrom
int getStripFrom(int logPlane) const
First strip in range.
Definition: RPCPattern.cc:49
RPCPattern
Definition: RPCPattern.h:16
RPCPattern::getSign
int getSign() const
Definition: RPCPattern.cc:64
Serializable.h
RPCPattern::m_Strips
RPCLogicalStrip m_Strips[m_LOGPLANES_COUNT]
LogicalStrip for every LogPlane.
Definition: RPCPattern.h:108
RPCPattern::setCoords
void setCoords(int tower, int sector, int segment)
Definition: RPCPattern.cc:74
RPCPattern::m_Tower
char m_Tower
Definition: RPCPattern.h:111
RPCPattern::getQualityTabNumber
int getQualityTabNumber() const
Definition: RPCPattern.cc:72
RPCPattern::getRefGroup
int getRefGroup() const
Definition: RPCPattern.cc:70
RPCPattern::getNumber
int getNumber() const
Definition: RPCPattern.cc:66
RPCPattern::setPatternType
void setPatternType(TPatternType patternType)
Definition: RPCPattern.cc:86
RPCPattern::m_Code
char m_Code
Muons ptCode.
Definition: RPCPattern.h:119
RPCPattern::TQuality::m_logsegment
char m_logsegment
Definition: RPCPattern.h:43
RPCPattern::RPCPatVec
std::vector< RPCPattern > RPCPatVec
Definition: RPCPattern.h:36
RPCPattern::getLogSector
int getLogSector() const
Definition: RPCPattern.cc:59
RPCPattern::m_RefGroup
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
RPCPattern::TQuality::m_QualityTabNumber
char m_QualityTabNumber
Definition: RPCPattern.h:40
RPCPattern::m_NOT_CONECTED
static const int m_NOT_CONECTED
Definition: RPCPattern.h:60
RPCPattern::RPCLogicalStrip::m_StripTo
unsigned char m_StripTo
Next-to-last strip in range.
Definition: RPCPattern.h:31
RPCPattern::PAT_TYPE_T
static const TPatternType PAT_TYPE_T
Definition: RPCPattern.h:55
RPCPattern::m_LOGPLANES_COUNT
static const int m_LOGPLANES_COUNT
Definition: RPCPattern.h:57
RPCPattern::getTower
int getTower() const
Definition: RPCPattern.cc:58
RPCPattern::setStripFrom
void setStripFrom(int logPlane, int stripFrom)
Definition: RPCPattern.cc:44
RPCPattern::m_Number
short m_Number
m_Number of pattern in m_PAC's patterns set.
Definition: RPCPattern.h:134
RPCPattern::m_LAST_PLANE
static const int m_LAST_PLANE
Definition: RPCPattern.h:59
RPCPattern::setNumber
void setNumber(int a)
Definition: RPCPattern.cc:84
RPCPattern::getPatternType
TPatternType getPatternType() const
Definition: RPCPattern.cc:68
RPCPattern::m_LogSector
char m_LogSector
Definition: RPCPattern.h:112
RPCPattern::setQualityTabNumber
void setQualityTabNumber(int qualityTabNumber)
Definition: RPCPattern.cc:90
RPCPattern::RPCPattern
RPCPattern()
Default Constructor. Empty pattern, no muon, all planes m_NOT_CONECTED.
Definition: RPCPattern.cc:8