CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/CondFormats/L1TObjects/src/RPCPattern.cc

Go to the documentation of this file.
00001 /*******************************************************************************
00002 *                                                                              *
00003 *  Karol Bunkowski                                                             *
00004 *  Warsaw University 2002                                                      *
00005 *                                                                              *
00006 *******************************************************************************/
00007 #include "CondFormats/L1TObjects/interface/RPCPattern.h"
00008 
00009 RPCPattern::RPCPattern() {
00010   m_Number = -1; //empty pattern
00011   m_Tower = 0;
00012   m_LogSector = 0;
00013   m_LogSegment = 0;
00014   m_Code = 0;    
00015   m_Sign = 0;
00016   m_RefGroup = 0;
00017   m_QualityTabNumber = 0;
00018   m_PatternType = 0;
00019 
00020   for(int logPlane = m_FIRST_PLANE; logPlane <= m_LAST_PLANE; logPlane++) {
00021     setStripFrom(logPlane, m_NOT_CONECTED);
00022     setStripTo(logPlane, m_NOT_CONECTED + 1);
00023   }
00024   //other parameters unset
00025 }
00026 
00027 RPCPattern::RPCPattern(int tower, int sector, int segment) {
00028   m_Number = -1; //empty pattern
00029   m_Tower = tower;
00030   m_LogSector = sector;
00031   m_LogSegment = segment;
00032   m_Code = 0;    
00033   m_Sign = 0;
00034   m_RefGroup = 0;
00035   m_QualityTabNumber = 0;
00036   m_PatternType = 0;
00037 
00038   for(int logPlane = m_FIRST_PLANE; logPlane <= m_LAST_PLANE; logPlane++) {
00039     setStripFrom(logPlane, m_NOT_CONECTED);
00040     setStripTo(logPlane, m_NOT_CONECTED + 1);
00041   }
00042   //other parameters unset
00043 }
00044 
00045 void RPCPattern::setStripFrom(int logPlane, int stripFrom) { 
00046   m_Strips[logPlane].m_StripFrom = stripFrom; 
00047 }
00048 
00049 void RPCPattern::setStripTo(int logPlane, int stripTo) { m_Strips[logPlane].m_StripTo = stripTo; }
00050 
00052 int RPCPattern::getStripFrom(int logPlane) const { //logic srtip
00053   return m_Strips[logPlane].m_StripFrom;
00054 }
00055 
00057 int RPCPattern::getStripTo(int logPlane) const {  //logic srtip
00058   return m_Strips[logPlane].m_StripTo;
00059 }
00060 
00061 int RPCPattern::getTower() const{ return m_Tower; }
00062 int RPCPattern::getLogSector() const{ return m_LogSector; }
00063 int RPCPattern::getLogSegment() const{ return m_LogSegment; }
00064 
00065 int RPCPattern::getCode() const{ return m_Code; }
00066 
00067 int RPCPattern::getSign() const{ return m_Sign; }
00068 
00069 int RPCPattern::getNumber() const{ return m_Number; }
00070 
00071 RPCPattern::TPatternType RPCPattern::getPatternType() const { return m_PatternType; }
00072 
00073 int RPCPattern::getRefGroup() const { return m_RefGroup; }
00074 
00075 int RPCPattern::getQualityTabNumber() const { return m_QualityTabNumber;}
00076 
00077 void RPCPattern::setCoords(int tower, int sector, int segment) {
00078   m_Tower = tower;
00079   m_LogSector = sector;
00080   m_LogSegment = segment;
00081 }
00082 
00083 void RPCPattern::setCode(int a) { m_Code = a;}
00084 
00085 void RPCPattern::setSign(int a) { m_Sign = a;}
00086 
00087 void RPCPattern::setNumber(int a) { m_Number = a;}
00088 
00089 void RPCPattern::setPatternType(TPatternType patternType) { m_PatternType = patternType;}
00090 
00091 void RPCPattern::setRefGroup(int refGroup) { m_RefGroup = refGroup; }
00092 
00093 void RPCPattern::setQualityTabNumber(int qualityTabNumber) { m_QualityTabNumber = qualityTabNumber;}