Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:56:07

0001 #include "L1Trigger/RPCTrigger/interface/RPCLogHit.h"
0002 
0003 /**
0004  *
0005  *\brief Default ctor
0006  *\todo check m_LogSector/m_LogSegment convention
0007  *
0008 */
0009 RPCLogHit::RPCLogHit(int m_tower, int m_PAC, int m_logplane, int m_posInCone) {
0010   m_ConeCrdnts.m_Tower = m_tower;
0011   m_ConeCrdnts.m_LogSector = m_PAC / 12;
0012   m_ConeCrdnts.m_LogSegment = m_PAC % 12;
0013   m_stripNumberInCone = m_posInCone;
0014   m_logPlaneNumber = m_logplane;
0015 }
0016 //###################################################################
0017 //
0018 // Simple getters and setters
0019 //
0020 //###################################################################
0021 RPCConst::l1RpcConeCrdnts RPCLogHit::getConeCrdnts() const { return m_ConeCrdnts; }
0022 
0023 int RPCLogHit::getTower() const { return m_ConeCrdnts.m_Tower; }
0024 
0025 int RPCLogHit::getLogSector() const { return m_ConeCrdnts.m_LogSector; }
0026 
0027 int RPCLogHit::getLogSegment() const { return m_ConeCrdnts.m_LogSegment; }
0028 
0029 int RPCLogHit::getlogPlaneNumber() const { return m_logPlaneNumber; }
0030 
0031 int RPCLogHit::getStripNumberInCone() const { return m_stripNumberInCone; }
0032 
0033 void RPCLogHit::setDigiIdx(int digiIdx) { m_digiIdx = digiIdx; }
0034 
0035 int RPCLogHit::getDigiIdx() const { return m_digiIdx; }