#include <RPCPattern.h>
Classes | |
class | RPCLogicalStrip |
struct | TQuality |
Public Types | |
typedef std::vector< RPCPattern > | RPCPatVec |
typedef char | TPatternType |
typedef std::vector< TQuality > | TQualityVec |
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. | |
int | getStripTo (int logPlane) const |
Next-to-last strip in range. | |
int | getTower () const |
RPCPattern () | |
Default Constructor. Empty pattern, no muon, all planes m_NOT_CONECTED. | |
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 Attributes | |
char | m_Code |
Muons ptCode. | |
char | m_LogSector |
char | m_LogSegment |
short | m_Number |
m_Number of pattern in m_PAC's patterns set. | |
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. | |
char | m_Sign |
Muon's sign. | |
RPCLogicalStrip | m_Strips [m_LOGPLANES_COUNT] |
LogicalStrip for every LogPlane. | |
char | m_Tower |
Definition of single pattern of muon track, i.e. strips range for every plane, muon sign and ptCode, etc.
Definition at line 14 of file RPCPattern.h.
typedef std::vector<RPCPattern> RPCPattern::RPCPatVec |
Definition at line 32 of file RPCPattern.h.
typedef char RPCPattern::TPatternType |
Definition at line 50 of file RPCPattern.h.
typedef std::vector<TQuality> RPCPattern::TQualityVec |
Definition at line 43 of file RPCPattern.h.
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().
{ m_Number = -1; //empty pattern m_Tower = 0; m_LogSector = 0; m_LogSegment = 0; m_Code = 0; m_Sign = 0; m_RefGroup = 0; m_QualityTabNumber = 0; m_PatternType = 0; for(int logPlane = m_FIRST_PLANE; logPlane <= m_LAST_PLANE; logPlane++) { setStripFrom(logPlane, m_NOT_CONECTED); setStripTo(logPlane, m_NOT_CONECTED + 1); } //other parameters unset }
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().
{ m_Number = -1; //empty pattern m_Tower = tower; m_LogSector = sector; m_LogSegment = segment; m_Code = 0; m_Sign = 0; m_RefGroup = 0; m_QualityTabNumber = 0; m_PatternType = 0; for(int logPlane = m_FIRST_PLANE; logPlane <= m_LAST_PLANE; logPlane++) { setStripFrom(logPlane, m_NOT_CONECTED); setStripTo(logPlane, m_NOT_CONECTED + 1); } //other parameters unset }
int RPCPattern::getCode | ( | ) | const |
Definition at line 65 of file RPCPattern.cc.
References m_Code.
Referenced by RPCPacMuon::setAll().
{ return m_Code; }
int RPCPattern::getLogSector | ( | ) | const |
int RPCPattern::getLogSegment | ( | ) | const |
int RPCPattern::getNumber | ( | ) | const |
Definition at line 69 of file RPCPattern.cc.
References m_Number.
Referenced by RPCPacMuon::setAll().
{ return m_Number; }
RPCPattern::TPatternType RPCPattern::getPatternType | ( | ) | const |
int RPCPattern::getQualityTabNumber | ( | ) | const |
Definition at line 75 of file RPCPattern.cc.
References m_QualityTabNumber.
Referenced by RPCPac::runTrackPatternsGroup().
{ return m_QualityTabNumber;}
int RPCPattern::getRefGroup | ( | ) | const |
int RPCPattern::getSign | ( | ) | const |
Definition at line 67 of file RPCPattern.cc.
References m_Sign.
Referenced by RPCPacMuon::setAll().
{ return m_Sign; }
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().
{ //logic srtip return m_Strips[logPlane].m_StripFrom; }
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().
int RPCPattern::getTower | ( | ) | const |
void RPCPattern::setCode | ( | int | a | ) |
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.
{ m_Tower = tower; m_LogSector = sector; m_LogSegment = segment; }
void RPCPattern::setNumber | ( | int | a | ) |
void RPCPattern::setPatternType | ( | TPatternType | patternType | ) |
Definition at line 89 of file RPCPattern.cc.
References m_PatternType.
{ m_PatternType = patternType;}
void RPCPattern::setQualityTabNumber | ( | int | qualityTabNumber | ) |
Definition at line 93 of file RPCPattern.cc.
References m_QualityTabNumber.
{ m_QualityTabNumber = qualityTabNumber;}
void RPCPattern::setRefGroup | ( | int | refGroup | ) |
void RPCPattern::setSign | ( | int | a | ) |
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().
{ m_Strips[logPlane].m_StripFrom = stripFrom; }
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().
char RPCPattern::m_Code [private] |
Muons ptCode.
Definition at line 116 of file RPCPattern.h.
Referenced by getCode(), RPCPattern(), and setCode().
const int RPCPattern::m_FIRST_PLANE = 0 [static] |
Definition at line 54 of file RPCPattern.h.
Referenced by RPCPattern().
const int RPCPattern::m_LAST_PLANE = 5 [static] |
Definition at line 55 of file RPCPattern.h.
Referenced by RPCPattern().
const int RPCPattern::m_LOGPLANES_COUNT = 6 [static] |
Definition at line 53 of file RPCPattern.h.
char RPCPattern::m_LogSector [private] |
Definition at line 109 of file RPCPattern.h.
Referenced by getLogSector(), RPCPattern(), and setCoords().
char RPCPattern::m_LogSegment [private] |
Definition at line 110 of file RPCPattern.h.
Referenced by getLogSegment(), RPCPattern(), and setCoords().
const int RPCPattern::m_NOT_CONECTED = 99 [static] |
Definition at line 56 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 131 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).
Definition at line 121 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 128 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 124 of file RPCPattern.h.
Referenced by getRefGroup(), RPCPattern(), and setRefGroup().
char RPCPattern::m_Sign [private] |
Muon's sign.
Definition at line 113 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 105 of file RPCPattern.h.
Referenced by getStripFrom(), getStripTo(), setStripFrom(), and setStripTo().
char RPCPattern::m_Tower [private] |
Definition at line 108 of file RPCPattern.h.
Referenced by getTower(), RPCPattern(), and setCoords().
const TPatternType RPCPattern::PAT_TYPE_E = 1 [static] |
Definition at line 52 of file RPCPattern.h.
Referenced by RPCPacData::insertPatterns(), RPCPatternsParser::startElement(), and TEPatternsGroup::TEPatternsGroup().
const TPatternType RPCPattern::PAT_TYPE_T = 0 [static] |
Definition at line 51 of file RPCPattern.h.
Referenced by RPCPacData::insertPatterns(), RPCPatternsParser::startElement(), and TTPatternsGroup::TTPatternsGroup().