32 if(bufMuon > bestMuon)
55 for(
unsigned int vecNum = 0;
59 unsigned short firedPlanes = 0;
60 int firedPlanesCount = 0;
61 unsigned short one = 1;
75 for(
int bitNumber = fromBit; bitNumber < toBit; bitNumber++)
79 firedPlanes = firedPlanes | one;
90 if(firedPlanesCount == 0)
96 if(firedPlanesCount >= 3)
104 RPCPacMuon bufMuon(pattern, quality, firedPlanes);
105 if(bufMuon > bestMuon)
123 unsigned short firedPlanes = 0;
124 int firedPlanesCount = 0;
125 RPCPacData::TEPatternsGroupList::const_iterator iEGroup =
130 firedPlanesCount = 0;
131 unsigned short one = 1;
139 RPCLogCone::TLogPlane::const_iterator itLP = lp.begin();
140 RPCLogCone::TLogPlane::const_iterator itLPE = lp.end();
141 for(; itLP!=itLPE; ++itLP){
142 int strip=itLP->first;
143 if(iEGroup->m_GroupShape.getLogStripState(logPlane, strip)){
144 firedPlanes = firedPlanes | one;
176 for(
unsigned int vecNum = 0; vecNum < iEGroup->m_PatternsItVec.size();
180 const RPCPattern::RPCPatVec::const_iterator patternIt =
181 iEGroup->m_PatternsItVec[vecNum];
184 unsigned short one1 = 1;
187 logPlane++, one1 = one1 << 1)
194 if((firedPlanes & one1) != 0)
199 for(
int bitNumber = fromBit; bitNumber < toBit;
205 if (!dIVec.empty()) digiIdx.push_back(
RPCMuon::TDigiLink(logPlane, *dIVec.begin()) );
217 bufMuon.
setAll(pattern, quality, firedPlanes);
222 if(bufMuon > bestMuon){
void setDigiIdxVec(const TDigiLinkVec &d)
static const int m_USED_PLANES_COUNT[m_TOWER_COUNT]
m_Number of Logic Planes existing in each m_Tower.
int getStripTo(int logPlane) const
Next-to-last strip in range.
std::map< int, std::vector< int > > TLogPlane
bool getLogStripState(int logPlane, unsigned int logStripNum) const
TTPatternsGroup m_TrackPatternsGroup
Here patters used in "baseline" algorith are stored.
void setAll(const RPCPattern &pattern, int quality, unsigned short firedPlanes)
std::vector< RPCPattern::RPCPatVec::const_iterator > m_PatternsItVec
< Vector of itereator on m_PatternsVec in Pac.
RPCPacMuon runTrackPatternsGroup(const RPCLogCone &cone) const
int getStripFrom(int logPlane) const
First strip in range.
TLogPlane getLogPlane(int logPlane) const
RPCConst::l1RpcConeCrdnts m_CurrConeCrdnts
RPCConst::TQualityTabsVec m_QualityTabsVec
int getHitsCnt(int logPlane) const
Gets fired strips count in given logPlane.
Abs< T >::type abs(const T &t)
void setConeCrdnts(const RPCConst::l1RpcConeCrdnts &coneCrdnts)
static const int m_FIRST_PLANE
Use ase a first index in loops.
int getQualityTabNumber() const
void setLogConeIdx(int logConeIdx)
RPCPacMuon runEnergeticPatternsGroups(const RPCLogCone &cone) const
TEPatternsGroupList m_EnergeticPatternsGroupList
const RPCPacData * m_pacData
std::vector< TDigiLink > TDigiLinkVec
RPCPac(const RPCPacData *, int tower, int logSector, int logSegment)
RPCPacMuon run(const RPCLogCone &cone) const
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
Coordinates of LogCone.The coordinates, with which m_PAC is created - the same as in pac file name...
std::vector< int > getLogStripDigisIdxs(int logPlane, unsigned int logStripNum) const
static const int m_NOT_CONECTED
Denotes Logic m_Strips that is not valid (f.e. in Patterns denotes, that in given plane the pattern i...