#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 (const L1RPCConfig *patConf, const int tower, const int sector, const int segment) | |
RPCPacData (const RPCPattern::RPCPatVec &patVec, const RPCPattern::TQualityVec &qualVec) | |
RPCPacData (std::string patFilesDir, int m_tower, int logSector, int logSegment) | |
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 28 of file RPCPacData.cc.
RPCPacData::RPCPacData | ( | const RPCPattern::RPCPatVec & | patVec, |
const RPCPattern::TQualityVec & | qualVec | ||
) |
RPCPacData::RPCPacData | ( | const L1RPCConfig * | patConf, |
const int | tower, | ||
const int | sector, | ||
const int | segment | ||
) |
Definition at line 66 of file RPCPacData.cc.
References insertPatterns(), insertQualityRecord(), qcdUeDQM_cfi::quality, L1RPCConfig_cff::rpcconf, and hgcalTowerProducer_cfi::tower.
bool RPCPacData::getEPatternsGroupShape | ( | int | groupNum, |
int | logPlane, | ||
int | bitNum | ||
) |
Definition at line 124 of file RPCPacData.cc.
RPCPattern RPCPacData::getPattern | ( | int | patNum | ) | const |
Definition at line 96 of file RPCPacData.cc.
int RPCPacData::getPatternsCount | ( | ) |
Definition at line 108 of file RPCPacData.cc.
int RPCPacData::getPatternsGroupCount | ( | ) |
Definition at line 87 of file RPCPacData.cc.
std::string RPCPacData::getPatternsGroupDescription | ( | int | patternGroupNum | ) |
Definition at line 136 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 115 of file RPCPacData.cc.
void RPCPacData::init | ( | const RPCPatternsParser & | parser, |
const RPCConst::l1RpcConeCrdnts & | coneCrdnts | ||
) |
Definition at line 221 of file RPCPacData.cc.
References mps_fire::i, insertPatterns(), insertQualityRecord(), m_PatternsVec, writedatasetfile::parser, and qcdUeDQM_cfi::quality.
|
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 176 of file RPCPacData.cc.
References TPatternsGroup::addPattern(), RPCConst::intToString(), m_EnergeticPatternsGroupList, m_TrackPatternsGroup, RPCPattern::PAT_TYPE_E, RPCPattern::PAT_TYPE_T, TPatternsGroup::setGroupDescription(), and hgcalTowerProducer_cfi::tower.
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 159 of file RPCPacData.cc.
References RPCConst::m_LOGPLANES_COUNT, m_MaxQuality, m_QualityTabsVec, funct::pow(), and qcdUeDQM_cfi::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 getPatternsGroupDescription(), insertPatterns(), RPCPac::run(), and RPCPac::runEnergeticPatternsGroups().
|
private |
Definition at line 69 of file RPCPacData.h.
Referenced by insertQualityRecord().
|
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 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(), insertPatterns(), RPCPac::run(), and RPCPac::runTrackPatternsGroup().