CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Static Public Attributes | Private Attributes

RPCPattern Class Reference

#include <RPCPattern.h>

List of all members.

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.
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

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 14 of file RPCPattern.h.


Member Typedef Documentation

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

Definition at line 32 of file RPCPattern.h.

Definition at line 50 of file RPCPattern.h.

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

Definition at line 43 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().

                       {
  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
}

Member Function Documentation

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

Definition at line 62 of file RPCPattern.cc.

References m_LogSector.

{ return m_LogSector; }
int RPCPattern::getLogSegment ( ) const

Definition at line 63 of file RPCPattern.cc.

References m_LogSegment.

{ return m_LogSegment; }
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

Definition at line 71 of file RPCPattern.cc.

References m_PatternType.

{ return m_PatternType; }
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

Definition at line 73 of file RPCPattern.cc.

References m_RefGroup.

{ return m_RefGroup; }
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().

                                             {  //logic srtip
  return m_Strips[logPlane].m_StripTo;
}
int RPCPattern::getTower ( ) const

Definition at line 61 of file RPCPattern.cc.

References m_Tower.

{ return m_Tower; }
void RPCPattern::setCode ( int  a)

Definition at line 83 of file RPCPattern.cc.

References a, and m_Code.

{ m_Code = 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)

Definition at line 87 of file RPCPattern.cc.

References a, and m_Number.

{ m_Number = 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)

Definition at line 91 of file RPCPattern.cc.

References m_RefGroup.

{ m_RefGroup = refGroup; }
void RPCPattern::setSign ( int  a)

Definition at line 85 of file RPCPattern.cc.

References a, and m_Sign.

{ m_Sign = 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().

{ m_Strips[logPlane].m_StripTo = stripTo; }

Member Data Documentation

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().

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 121 of file RPCPattern.h.

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

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().

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().