test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Friends
RPCPattern Class Reference

#include <RPCPattern.h>

Classes

class  RPCLogicalStrip
 
struct  TQuality
 

Public Types

typedef std::vector< RPCPatternRPCPatVec
 
typedef char TPatternType
 
typedef std::vector< TQualityTQualityVec
 

Public Member Functions

int getCode () const
 
int getLogSector () const
 
int getLogSegment () const
 
int getNumber () const
 
TPatternType getPatternType () const
 
int getQualityTabNumber () const
 
int getRefGroup () const
 
int getSign () const
 
int getStripFrom (int logPlane) const
 First strip in range. More...
 
int getStripTo (int logPlane) const
 Next-to-last strip in range. More...
 
int getTower () const
 
 RPCPattern ()
 Default Constructor. Empty pattern, no muon, all planes m_NOT_CONECTED. More...
 
 RPCPattern (int tower, int sector, int segment)
 
void setCode (int a)
 
void setCoords (int tower, int sector, int segment)
 
void setNumber (int a)
 
void setPatternType (TPatternType patternType)
 
void setQualityTabNumber (int qualityTabNumber)
 
void setRefGroup (int refGroup)
 
void setSign (int a)
 
void setStripFrom (int logPlane, int stripFrom)
 
void setStripTo (int logPlane, int stripTo)
 

Static Public Attributes

static const int m_FIRST_PLANE = 0
 
static const int m_LAST_PLANE = 5
 
static const int m_LOGPLANES_COUNT = 6
 
static const int m_NOT_CONECTED = 99
 
static const TPatternType PAT_TYPE_E = 1
 
static const TPatternType PAT_TYPE_T = 0
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

char m_Code
 Muons ptCode. More...
 
char m_LogSector
 
char m_LogSegment
 
short m_Number
 m_Number of pattern in m_PAC's patterns set. More...
 
TPatternType m_PatternType
 
char m_QualityTabNumber
 
char m_RefGroup
 If pattern is of type PAT_TYPE_E, denotes the index of group to which this pattern belongs. More...
 
char m_Sign
 Muon's sign. More...
 
RPCLogicalStrip m_Strips [m_LOGPLANES_COUNT]
 LogicalStrip for every LogPlane. More...
 
char m_Tower
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition of single pattern of muon track, i.e. strips range for every plane, muon sign and ptCode, etc.

Author
Karol Bunkowski (Warsaw)

Definition at line 16 of file RPCPattern.h.

Member Typedef Documentation

typedef std::vector<RPCPattern> RPCPattern::RPCPatVec

Definition at line 36 of file RPCPattern.h.

Definition at line 56 of file RPCPattern.h.

typedef std::vector<TQuality> RPCPattern::TQualityVec

Definition at line 49 of file RPCPattern.h.

Constructor & Destructor Documentation

RPCPattern::RPCPattern ( )

Default Constructor. Empty pattern, no muon, all planes m_NOT_CONECTED.

Definition at line 9 of file RPCPattern.cc.

References m_Code, m_FIRST_PLANE, m_LAST_PLANE, m_LogSector, m_LogSegment, m_NOT_CONECTED, m_Number, m_PatternType, m_QualityTabNumber, m_RefGroup, m_Sign, m_Tower, setStripFrom(), and setStripTo().

9  {
10  m_Number = -1; //empty pattern
11  m_Tower = 0;
12  m_LogSector = 0;
13  m_LogSegment = 0;
14  m_Code = 0;
15  m_Sign = 0;
16  m_RefGroup = 0;
18  m_PatternType = 0;
19 
20  for(int logPlane = m_FIRST_PLANE; logPlane <= m_LAST_PLANE; logPlane++) {
21  setStripFrom(logPlane, m_NOT_CONECTED);
22  setStripTo(logPlane, m_NOT_CONECTED + 1);
23  }
24  //other parameters unset
25 }
char m_LogSegment
Definition: RPCPattern.h:116
char m_Code
Muons ptCode.
Definition: RPCPattern.h:122
void setStripTo(int logPlane, int stripTo)
Definition: RPCPattern.cc:49
static const int m_NOT_CONECTED
Definition: RPCPattern.h:62
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
char m_LogSector
Definition: RPCPattern.h:115
void setStripFrom(int logPlane, int stripFrom)
Definition: RPCPattern.cc:45
char m_QualityTabNumber
Definition: RPCPattern.h:134
static const int m_LAST_PLANE
Definition: RPCPattern.h:61
short m_Number
m_Number of pattern in m_PAC&#39;s patterns set.
Definition: RPCPattern.h:137
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
RPCPattern::RPCPattern ( int  tower,
int  sector,
int  segment 
)

Definition at line 27 of file RPCPattern.cc.

References m_Code, m_FIRST_PLANE, m_LAST_PLANE, m_LogSector, m_LogSegment, m_NOT_CONECTED, m_Number, m_PatternType, m_QualityTabNumber, m_RefGroup, m_Sign, m_Tower, setStripFrom(), and setStripTo().

27  {
28  m_Number = -1; //empty pattern
29  m_Tower = tower;
30  m_LogSector = sector;
31  m_LogSegment = segment;
32  m_Code = 0;
33  m_Sign = 0;
34  m_RefGroup = 0;
36  m_PatternType = 0;
37 
38  for(int logPlane = m_FIRST_PLANE; logPlane <= m_LAST_PLANE; logPlane++) {
39  setStripFrom(logPlane, m_NOT_CONECTED);
40  setStripTo(logPlane, m_NOT_CONECTED + 1);
41  }
42  //other parameters unset
43 }
char m_LogSegment
Definition: RPCPattern.h:116
char m_Code
Muons ptCode.
Definition: RPCPattern.h:122
void setStripTo(int logPlane, int stripTo)
Definition: RPCPattern.cc:49
static const int m_NOT_CONECTED
Definition: RPCPattern.h:62
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
char m_LogSector
Definition: RPCPattern.h:115
void setStripFrom(int logPlane, int stripFrom)
Definition: RPCPattern.cc:45
char m_QualityTabNumber
Definition: RPCPattern.h:134
static const int m_LAST_PLANE
Definition: RPCPattern.h:61
short m_Number
m_Number of pattern in m_PAC&#39;s patterns set.
Definition: RPCPattern.h:137
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

Member Function Documentation

int RPCPattern::getCode ( ) const

Definition at line 65 of file RPCPattern.cc.

References m_Code.

Referenced by RPCPacMuon::setAll().

65 { return m_Code; }
char m_Code
Muons ptCode.
Definition: RPCPattern.h:122
int RPCPattern::getLogSector ( ) const

Definition at line 62 of file RPCPattern.cc.

References m_LogSector.

62 { return m_LogSector; }
char m_LogSector
Definition: RPCPattern.h:115
int RPCPattern::getLogSegment ( ) const

Definition at line 63 of file RPCPattern.cc.

References m_LogSegment.

63 { return m_LogSegment; }
char m_LogSegment
Definition: RPCPattern.h:116
int RPCPattern::getNumber ( ) const

Definition at line 69 of file RPCPattern.cc.

References m_Number.

Referenced by RPCPacMuon::setAll().

69 { return m_Number; }
short m_Number
m_Number of pattern in m_PAC&#39;s patterns set.
Definition: RPCPattern.h:137
RPCPattern::TPatternType RPCPattern::getPatternType ( ) const

Definition at line 71 of file RPCPattern.cc.

References m_PatternType.

71 { return m_PatternType; }
TPatternType m_PatternType
Definition: RPCPattern.h:127
int RPCPattern::getQualityTabNumber ( ) const

Definition at line 75 of file RPCPattern.cc.

References m_QualityTabNumber.

Referenced by RPCPac::runTrackPatternsGroup().

75 { return m_QualityTabNumber;}
char m_QualityTabNumber
Definition: RPCPattern.h:134
int RPCPattern::getRefGroup ( ) const

Definition at line 73 of file RPCPattern.cc.

References m_RefGroup.

73 { return 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:130
int RPCPattern::getSign ( ) const

Definition at line 67 of file RPCPattern.cc.

References m_Sign.

Referenced by RPCPacMuon::setAll().

67 { return m_Sign; }
char m_Sign
Muon&#39;s sign.
Definition: RPCPattern.h:119
int RPCPattern::getStripFrom ( int  logPlane) const

First strip in range.

Definition at line 52 of file RPCPattern.cc.

References RPCPattern::RPCLogicalStrip::m_StripFrom, and m_Strips.

Referenced by RPCPac::runEnergeticPatternsGroups(), and RPCPac::runTrackPatternsGroup().

52  { //logic srtip
53  return m_Strips[logPlane].m_StripFrom;
54 }
RPCLogicalStrip m_Strips[m_LOGPLANES_COUNT]
LogicalStrip for every LogPlane.
Definition: RPCPattern.h:111
unsigned char m_StripFrom
First strip in range.
Definition: RPCPattern.h:29
int RPCPattern::getStripTo ( int  logPlane) const

Next-to-last strip in range.

Definition at line 57 of file RPCPattern.cc.

References m_Strips, and RPCPattern::RPCLogicalStrip::m_StripTo.

Referenced by RPCPac::runEnergeticPatternsGroups(), and RPCPac::runTrackPatternsGroup().

57  { //logic srtip
58  return m_Strips[logPlane].m_StripTo;
59 }
RPCLogicalStrip m_Strips[m_LOGPLANES_COUNT]
LogicalStrip for every LogPlane.
Definition: RPCPattern.h:111
unsigned char m_StripTo
Next-to-last strip in range.
Definition: RPCPattern.h:31
int RPCPattern::getTower ( ) const

Definition at line 61 of file RPCPattern.cc.

References m_Tower.

61 { return m_Tower; }
char m_Tower
Definition: RPCPattern.h:114
template<class Archive >
void RPCPattern::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void RPCPattern::setCode ( int  a)

Definition at line 83 of file RPCPattern.cc.

References a, and m_Code.

83 { m_Code = a;}
char m_Code
Muons ptCode.
Definition: RPCPattern.h:122
double a
Definition: hdecay.h:121
void RPCPattern::setCoords ( int  tower,
int  sector,
int  segment 
)

Definition at line 77 of file RPCPattern.cc.

References m_LogSector, m_LogSegment, and m_Tower.

77  {
78  m_Tower = tower;
79  m_LogSector = sector;
80  m_LogSegment = segment;
81 }
char m_LogSegment
Definition: RPCPattern.h:116
char m_LogSector
Definition: RPCPattern.h:115
char m_Tower
Definition: RPCPattern.h:114
void RPCPattern::setNumber ( int  a)

Definition at line 87 of file RPCPattern.cc.

References a, and m_Number.

87 { m_Number = a;}
short m_Number
m_Number of pattern in m_PAC&#39;s patterns set.
Definition: RPCPattern.h:137
double a
Definition: hdecay.h:121
void RPCPattern::setPatternType ( TPatternType  patternType)

Definition at line 89 of file RPCPattern.cc.

References m_PatternType.

89 { m_PatternType = patternType;}
TPatternType m_PatternType
Definition: RPCPattern.h:127
void RPCPattern::setQualityTabNumber ( int  qualityTabNumber)

Definition at line 93 of file RPCPattern.cc.

References m_QualityTabNumber.

93 { m_QualityTabNumber = qualityTabNumber;}
char m_QualityTabNumber
Definition: RPCPattern.h:134
void RPCPattern::setRefGroup ( int  refGroup)

Definition at line 91 of file RPCPattern.cc.

References m_RefGroup.

91 { m_RefGroup = 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:130
void RPCPattern::setSign ( int  a)

Definition at line 85 of file RPCPattern.cc.

References a, and m_Sign.

85 { m_Sign = a;}
double a
Definition: hdecay.h:121
char m_Sign
Muon&#39;s sign.
Definition: RPCPattern.h:119
void RPCPattern::setStripFrom ( int  logPlane,
int  stripFrom 
)

Definition at line 45 of file RPCPattern.cc.

References RPCPattern::RPCLogicalStrip::m_StripFrom, and m_Strips.

Referenced by RPCPattern().

45  {
46  m_Strips[logPlane].m_StripFrom = stripFrom;
47 }
RPCLogicalStrip m_Strips[m_LOGPLANES_COUNT]
LogicalStrip for every LogPlane.
Definition: RPCPattern.h:111
unsigned char m_StripFrom
First strip in range.
Definition: RPCPattern.h:29
void RPCPattern::setStripTo ( int  logPlane,
int  stripTo 
)

Definition at line 49 of file RPCPattern.cc.

References m_Strips, and RPCPattern::RPCLogicalStrip::m_StripTo.

Referenced by RPCPattern().

49 { m_Strips[logPlane].m_StripTo = stripTo; }
RPCLogicalStrip m_Strips[m_LOGPLANES_COUNT]
LogicalStrip for every LogPlane.
Definition: RPCPattern.h:111
unsigned char m_StripTo
Next-to-last strip in range.
Definition: RPCPattern.h:31

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 141 of file RPCPattern.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 141 of file RPCPattern.h.

Member Data Documentation

char RPCPattern::m_Code
private

Muons ptCode.

Definition at line 122 of file RPCPattern.h.

Referenced by getCode(), RPCPattern(), and setCode().

const int RPCPattern::m_FIRST_PLANE = 0
static

Definition at line 60 of file RPCPattern.h.

Referenced by RPCPattern().

const int RPCPattern::m_LAST_PLANE = 5
static

Definition at line 61 of file RPCPattern.h.

Referenced by RPCPattern().

const int RPCPattern::m_LOGPLANES_COUNT = 6
static

Definition at line 59 of file RPCPattern.h.

char RPCPattern::m_LogSector
private

Definition at line 115 of file RPCPattern.h.

Referenced by getLogSector(), RPCPattern(), and setCoords().

char RPCPattern::m_LogSegment
private

Definition at line 116 of file RPCPattern.h.

Referenced by getLogSegment(), RPCPattern(), and setCoords().

const int RPCPattern::m_NOT_CONECTED = 99
static

Definition at line 62 of file RPCPattern.h.

Referenced by RPCPattern().

short RPCPattern::m_Number
private

m_Number of pattern in m_PAC's patterns set.

Definition at line 137 of file RPCPattern.h.

Referenced by getNumber(), RPCPattern(), and setNumber().

TPatternType RPCPattern::m_PatternType
private

The m_PAC algorith that should be used for given Pattern. PAT_TYPE_T - Basic (clasic), PAT_TYPE_E - "impoved" (economic).

See Also
"Pattern Comparator Trigger Algorithm – implementation in FPGA"

Definition at line 127 of file RPCPattern.h.

Referenced by getPatternType(), RPCPattern(), and setPatternType().

char RPCPattern::m_QualityTabNumber
private

The index of quality table that should be used for given pattern. The quality table is defined at the beginig of each patterns file

Definition at line 134 of file RPCPattern.h.

Referenced by getQualityTabNumber(), RPCPattern(), and setQualityTabNumber().

char RPCPattern::m_RefGroup
private

If pattern is of type PAT_TYPE_E, denotes the index of group to which this pattern belongs.

Definition at line 130 of file RPCPattern.h.

Referenced by getRefGroup(), RPCPattern(), and setRefGroup().

char RPCPattern::m_Sign
private

Muon's sign.

Definition at line 119 of file RPCPattern.h.

Referenced by getSign(), RPCPattern(), and setSign().

RPCLogicalStrip RPCPattern::m_Strips[m_LOGPLANES_COUNT]
private

LogicalStrip for every LogPlane.

Definition at line 111 of file RPCPattern.h.

Referenced by getStripFrom(), getStripTo(), setStripFrom(), and setStripTo().

char RPCPattern::m_Tower
private

Definition at line 114 of file RPCPattern.h.

Referenced by getTower(), RPCPattern(), and setCoords().

const TPatternType RPCPattern::PAT_TYPE_E = 1
static
const TPatternType RPCPattern::PAT_TYPE_T = 0
static