#include <RPCPacData.h>
Public Member Functions | |
bool | getEPatternsGroupShape (int groupNum, int logPlane, int logStripNum) |
RPCPattern | getPattern (int patNum) const |
int | getPatternsCount () |
int | getPatternsGroupCount () |
std::string | getPatternsGroupDescription (int patternGroupNum) |
bool | getTPatternsGroupShape (int logPlane, int logStripNum) |
void | init (const RPCPatternsParser &parser, const RPCConst::l1RpcConeCrdnts &coneCrdnts) |
RPCPacData (std::string patFilesDir, int m_tower, int logSector, int logSegment) | |
RPCPacData (const RPCPattern::RPCPatVec &patVec, const RPCPattern::TQualityVec &qualVec) | |
RPCPacData (const L1RPCConfig *patConf, const int tower, const int sector, const int segment) | |
Private Types | |
typedef std::list < TEPatternsGroup > | TEPatternsGroupList |
Private Member Functions | |
void | insertPatterns (const RPCPattern::RPCPatVec &pattern, const int tower=99, const int sector=99, const int segment=99) |
void | insertQualityRecord (unsigned int qualityTabNumber, unsigned short firedPlanes, short quality) |
Private Attributes | |
TEPatternsGroupList | m_EnergeticPatternsGroupList |
short | m_MaxQuality |
RPCPattern::RPCPatVec | m_PatternsVec |
RPCConst::TQualityTabsVec | m_QualityTabsVec |
short | m_RefGroupCount |
From pac file - TT_REF_GROUP_NUMBERS. More... | |
TTPatternsGroup | m_TrackPatternsGroup |
Here patters used in "baseline" algorith are stored. More... | |
Friends | |
class | RPCPac |
Performes Pattern Comparator algorithm for one LogCone. Returns one muon candidate. The algorithm details i.e. patterns list, algorthm type for each pattern, qaulity definition, are set from m_PAC definition file.
Definition at line 33 of file RPCPacData.h.
|
private |
Definition at line 63 of file RPCPacData.h.
RPCPacData::RPCPacData | ( | std::string | patFilesDir, |
int | tower, | ||
int | logSector, | ||
int | logSegment | ||
) |
Constructor required by RPCPacManager.
patFilesDir | - the directory conataing m_PAC definition file. It should containe file for this m_PAC, defined by tower, logSector, logSegment, named pacPat_t<tower>sc<logSector>sg<logSegment>.vhd Containers: m_EnergeticPatternsGroupList and m_TrackPatternsGroup are filled with patterns from file (the method ParsePatternFile() is called). |
Definition at line 29 of file RPCPacData.cc.
References init(), RPCConst::intToString(), RPCConst::l1RpcConeCrdnts::m_LogSector, RPCConst::l1RpcConeCrdnts::m_LogSegment, m_MaxQuality, RPCConst::l1RpcConeCrdnts::m_Tower, m_TrackPatternsGroup, RPCPatternsParser::parse(), writedatasetfile::parser, TPatternsGroup::setGroupDescription(), AlCaHLTBitMon_QueryRunRegistry::string, and hgcalTowerProducer_cfi::tower.
RPCPacData::RPCPacData | ( | const RPCPattern::RPCPatVec & | patVec, |
const RPCPattern::TQualityVec & | qualVec | ||
) |
Construct from given qualities and patterns
Definition at line 55 of file RPCPacData.cc.
References mps_fire::i, insertPatterns(), insertQualityRecord(), RPCPattern::TQuality::m_FiredPlanes, RPCPattern::TQuality::m_QualityTabNumber, RPCPattern::TQuality::m_QualityValue, and quality.
RPCPacData::RPCPacData | ( | const L1RPCConfig * | patConf, |
const int | tower, | ||
const int | sector, | ||
const int | segment | ||
) |
Definition at line 67 of file RPCPacData.cc.
References insertPatterns(), insertQualityRecord(), RPCPattern::TQuality::m_FiredPlanes, L1RPCConfig::m_pats, RPCPattern::TQuality::m_QualityTabNumber, RPCPattern::TQuality::m_QualityValue, L1RPCConfig::m_quals, and quality.
bool RPCPacData::getEPatternsGroupShape | ( | int | groupNum, |
int | logPlane, | ||
int | bitNum | ||
) |
Definition at line 125 of file RPCPacData.cc.
References mps_fire::i, and m_EnergeticPatternsGroupList.
RPCPattern RPCPacData::getPattern | ( | int | patNum | ) | const |
Definition at line 97 of file RPCPacData.cc.
References m_PatternsVec.
int RPCPacData::getPatternsCount | ( | ) |
Definition at line 109 of file RPCPacData.cc.
References m_PatternsVec.
int RPCPacData::getPatternsGroupCount | ( | ) |
Definition at line 88 of file RPCPacData.cc.
References m_EnergeticPatternsGroupList.
std::string RPCPacData::getPatternsGroupDescription | ( | int | patternGroupNum | ) |
Definition at line 137 of file RPCPacData.cc.
References TPatternsGroup::getGroupDescription(), mps_fire::i, RPCConst::intToString(), m_EnergeticPatternsGroupList, m_TrackPatternsGroup, runTheMatrix::ret, and AlCaHLTBitMon_QueryRunRegistry::string.
bool RPCPacData::getTPatternsGroupShape | ( | int | logPlane, |
int | logStripNum | ||
) |
Definition at line 116 of file RPCPacData.cc.
References RPCLogCone::getLogStripState(), TPatternsGroup::m_GroupShape, and m_TrackPatternsGroup.
void RPCPacData::init | ( | const RPCPatternsParser & | parser, |
const RPCConst::l1RpcConeCrdnts & | coneCrdnts | ||
) |
Definition at line 222 of file RPCPacData.cc.
References RPCPatternsParser::getPatternsVec(), RPCPatternsParser::getQualityVec(), mps_fire::i, insertPatterns(), insertQualityRecord(), RPCPattern::TQuality::m_FiredPlanes, m_PatternsVec, RPCPattern::TQuality::m_QualityTabNumber, RPCPattern::TQuality::m_QualityValue, and quality.
Referenced by RPCPacData().
|
private |
Adds pattern to m_TrackPatternsGroup or appropriate group from m_EnergeticPatternsGroupList. If the appropriate TEPatternsGroup does not exist, it is created.
Definition at line 177 of file RPCPacData.cc.
References TPatternsGroup::addPattern(), RPCConst::intToString(), m_EnergeticPatternsGroupList, m_TrackPatternsGroup, RPCPattern::PAT_TYPE_E, RPCPattern::PAT_TYPE_T, and TPatternsGroup::setGroupDescription().
Referenced by init(), and RPCPacData().
|
private |
Adds one qaulity record to m_QualityTabsVec.
qualityTabNumber | - index of QualityTab (index in m_QualityTabsVec), to which new record should be add. |
qualityBitset | - definition of plnaes in coincidance. (qualityBitset[0] == true means, that LogPlane1 should be fired). |
quality | - quality value assigned to given coincidance. |
Definition at line 160 of file RPCPacData.cc.
References RPCConst::m_LOGPLANES_COUNT, m_MaxQuality, m_QualityTabsVec, funct::pow(), and quality.
Referenced by init(), and RPCPacData().
|
friend |
Definition at line 34 of file RPCPacData.h.
|
private |
Container containig EPatternsGroups. Is filled by InsertPattern() during parsing the pac file ParsePatternFile().
Definition at line 88 of file RPCPacData.h.
Referenced by getEPatternsGroupShape(), getPatternsGroupCount(), getPatternsGroupDescription(), insertPatterns(), RPCPac::run(), and RPCPac::runEnergeticPatternsGroups().
|
private |
Definition at line 69 of file RPCPacData.h.
Referenced by insertQualityRecord(), and RPCPacData().
|
private |
filled only if in constructor RPCPacData() createPatternsVec == true. Contains all patterns from pac file. Needed for patterns expolorer, does not used in trigger algorithm.
Definition at line 74 of file RPCPacData.h.
Referenced by getPattern(), getPatternsCount(), and init().
|
private |
The definiton of allowed coincidence of hits in planes and quality values assigned to them. There can be few quality tables in one m_PAC, to every pattern one of those quality table is asigned. (In barrel usualy 2 quality tables are used: one for high pt (4/6) and one for low pt (3/4). One qaulity table is multimap<biteset, int>, bitset defines allowed coincidance, int defines the quality value. m_QualityTabsVec is a vector of these maps, the index in vector correspondes to the m_QualityTabNumber in pattern.
Definition at line 84 of file RPCPacData.h.
Referenced by insertQualityRecord(), RPCPac::runEnergeticPatternsGroups(), and RPCPac::runTrackPatternsGroup().
|
private |
From pac file - TT_REF_GROUP_NUMBERS.
Definition at line 67 of file RPCPacData.h.
|
private |
Here patters used in "baseline" algorith are stored.
Definition at line 91 of file RPCPacData.h.
Referenced by getPatternsGroupDescription(), getTPatternsGroupShape(), insertPatterns(), RPCPacData(), RPCPac::run(), and RPCPac::runTrackPatternsGroup().