#include <RPCConst.h>
Classes | |
struct | l1RpcConeCrdnts |
The coordinates of Logic Cone: m_Tower, m_LogSector, m_LogSegment. More... | |
Public Types | |
typedef std::vector< short > | TQualityTab |
typedef std::vector< TQualityTab > | TQualityTabsVec |
Public Member Functions | |
std::string | intToString (int number) |
Converts inteager number to string. More... | |
int | stringToInt (std::string str) |
Converts string to inteager number. If string contains chars, that are not digits, throws RPCException. More... | |
Static Public Member Functions | |
static double | etaFromTowerNum (const int atower) |
static int | iptFromPt (const double pt) |
static double | phiFromLogSegSec (const int logSegment, const int logSector) |
static double | phiFromSegmentNum (const int iseg) |
static double | ptFromIpt (const int ipt) |
static int | segmentNumFromPhi (const double phi) |
static int | towerNumFromEta (const double eta) |
static double | vxIntegMuRate (int ptCode, double etaFrom, double etaTo) |
static double | vxIntegMuRate (int ptCode, int m_tower) |
static double | vxMuRate (int ptCode) |
Static Public Attributes | |
static constexpr int | IPT_MAX = 31 |
Max pt bin code. More... | |
static constexpr int | ITOW_MAX = 16 |
Maximal number of abs(m_tower_number) More... | |
static constexpr int | ITOW_MIN = 0 |
Minimal number of abs(m_tower_number) More... | |
static const unsigned int | m_FINAL_OUT_MUONS_CNT |
m_Number of muon candidates return by Final GhostBuster&Sorter More... | |
static const int | m_FIRST_PLANE = m_LOGPLANE1 |
Use ase a first index in loops. More... | |
static const unsigned int | m_GBETA_OUT_MUONS_CNT |
m_Number of muon candidates return by Trigger Board's eta Ghost Buster More... | |
static const unsigned int | m_GBPHI_OUT_MUONS_CNT |
m_Number of muon candidates return by Trigger Board's phi Ghost Buster More... | |
static const int | m_LAST_PLANE = m_LOGPLANE6 |
Use ase a last index in loops. More... | |
static const int | m_LOGPLANE1 |
The Logic Planes are named starting from '1', but in varoius loop indeks are from '0', that's why always use these consts. More... | |
static const int | m_LOGPLANE2 = 1 |
static const int | m_LOGPLANE3 = 2 |
static const int | m_LOGPLANE4 = 3 |
static const int | m_LOGPLANE5 = 4 |
static const int | m_LOGPLANE6 = 5 |
static const unsigned int | m_LOGPLANE_SIZE [m_TOWER_COUNT][m_LOGPLANES_COUNT] |
Definition of Logic Cone Sizes - number of Logic m_Strips in each plane. More... | |
static const std::string | m_LOGPLANE_STR [] |
Log Planes names. More... | |
static const int | m_LOGPLANES_COUNT = 6 |
Max Logic Planes Count in trigger towers. More... | |
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 is not defined). More... | |
static const int | m_PT_CODE_MAX = 31 |
Pt_code range = 0-m_PT_CODE_MAX. More... | |
static const int | m_REF_PLANE [m_TOWER_COUNT] |
Definition of Referenece Plane for each m_Tower. More... | |
static const unsigned int | m_SEGMENTS_IN_SECTOR_CNT |
m_Number of Logic Segments in one Logic Sector, defines also the number of Logic Cones for one Logic Sector of one m_Tower. More... | |
static const unsigned int | m_TCGB_OUT_MUONS_CNT |
m_Number of muon candidates return by Trigger Crate's Ghost Buster More... | |
static const int | m_TOWER_COUNT = 16 + 1 |
Only half of the detector. More... | |
static const unsigned int | m_TOWERS_ON_TB_CNT = 4 |
Max number of towers covered by one Trugger Board. More... | |
static const int | m_USED_PLANES_COUNT [m_TOWER_COUNT] |
m_Number of Logic Planes existing in each m_Tower. More... | |
static const int | m_VLPT_CUT = 7 |
Max Pt code of Very Low Pt patterns. More... | |
static const int | m_VLPT_PLANES_COUNT [m_TOWER_COUNT] = {4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3} |
m_Number of Logic Planes used for Very Low Pt patterns. More... | |
static constexpr int | NSEG = NSTRIPS / 8 |
static constexpr int | NSTRIPS = 1152 |
m_Number of Rpc strips in phi direction. More... | |
static constexpr int | OFFSET = 5 |
Offset of the first trigger phi sector [deg]. More... | |
Static Private Attributes | |
static const double | m_etas [RPCConst::ITOW_MAX+2] |
static const double | m_pts [RPCConst::IPT_MAX+1] |
Class contains number of L1RpcTrigger specific constanst, and transforming methods (eg. phi <-> segment number) (Should migrate to DDD?)
Definition at line 23 of file RPCConst.h.
typedef std::vector<short> RPCConst::TQualityTab |
Definition at line 112 of file RPCConst.h.
typedef std::vector<TQualityTab> RPCConst::TQualityTabsVec |
Definition at line 113 of file RPCConst.h.
|
static |
Method converts from m_tower number to eta (gives center of m_tower).
Definition at line 42 of file RPCConst.cc.
References PVValHelper::eta, ITOW_MAX, m_etas, mps_check::msg, and AlCaHLTBitMon_QueryRunRegistry::string.
std::string RPCConst::intToString | ( | int | number | ) |
Converts inteager number to string.
Definition at line 264 of file RPCConst.cc.
References ConfigBuilder::number, str, AlCaHLTBitMon_QueryRunRegistry::string, and createJobs::tmp.
Referenced by RPCPacData::getPatternsGroupDescription(), RPCPacData::insertPatterns(), and RPCPacData::RPCPacData().
|
static |
Method converts pt [Gev/c] into pt bin number (0, 31).
Definition at line 10 of file RPCConst.cc.
References IPT_MAX, m_pts, mps_check::msg, DiDispStaMuonMonitor_cfi::pt, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by OMTFProcessor< GoldenPatternType >::fillCounts(), and PatternOptimizerBase::printPatterns().
|
static |
Method converts from logSegment (0..11) and logSector(0...11) .
Definition at line 78 of file RPCConst.cc.
References m_pi, NSEG, OFFSET, and phi.
|
static |
Method converts from segment number (0, 144). obsolete
Definition at line 73 of file RPCConst.cc.
References m_pi, NSEG, OFFSET, and phi.
|
static |
Method converts pt bin number (0, 31) to pt [GeV/c].
Definition at line 29 of file RPCConst.cc.
References IPT_MAX, m_pts, mps_check::msg, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by OMTFPatternMaker::endJob(), OMTFProcessor< GoldenPatternType >::fillCounts(), vxIntegMuRate(), and vxMuRate().
|
static |
obsolete Method converts phi to segment number (0, 144).
Definition at line 84 of file RPCConst.cc.
References createfilelist::int, hcalRecHitTable_cff::iphi, m_pi, NSEG, OFFSET, and phi.
int RPCConst::stringToInt | ( | std::string | str | ) |
Converts string to inteager number. If string contains chars, that are not digits, throws RPCException.
Definition at line 255 of file RPCConst.cc.
References mps_fire::i, and str.
Referenced by RPCPatternsParser::startElement().
|
static |
Method converts from eta to trigger m_tower number.
Definition at line 60 of file RPCConst.cc.
References PVValHelper::eta, ITOW_MAX, and m_etas.
Referenced by RPCPhiEff::analyze().
|
static |
Definition at line 130 of file RPCConst.cc.
References ptFromIpt(), RPCpg::rate(), and vxMuRate().
Referenced by vxIntegMuRate().
|
static |
Definition at line 143 of file RPCConst.cc.
References funct::abs(), m_etas, RPCpg::rate(), and vxIntegMuRate().
|
static |
Spectrum of muons originating from vertex. See CMS-TN-1995/150
Definition at line 106 of file RPCConst.cc.
References a, JetChargeProducer_cfi::exp, amptDefaultParameters_cff::mu, ptFromIpt(), and RPCpg::rate().
Referenced by vxIntegMuRate().
|
static |
Max pt bin code.
Definition at line 28 of file RPCConst.h.
Referenced by iptFromPt(), and ptFromIpt().
|
static |
Maximal number of abs(m_tower_number)
Definition at line 26 of file RPCConst.h.
Referenced by etaFromTowerNum(), RPCBasicTrigConfig::getTBNum(), RPCBasicTrigConfig::getTowerNumOnTb(), and towerNumFromEta().
|
static |
Minimal number of abs(m_tower_number)
Definition at line 25 of file RPCConst.h.
|
staticprivate |
Matrix with approximate upper towers limits. Only positive ones are reported, for negative ones mirror symmetry assumed.
Definition at line 239 of file RPCConst.h.
Referenced by etaFromTowerNum(), towerNumFromEta(), and vxIntegMuRate().
|
static |
m_Number of muon candidates return by Final GhostBuster&Sorter
Definition at line 161 of file RPCConst.h.
Referenced by RPCFinalSorter::runFinalSorter(), and RPCHalfSorter::runHalf().
|
static |
Use ase a first index in loops.
Definition at line 54 of file RPCConst.h.
Referenced by RPCLogCone::getCompressedCone(), RPCLogCone::getFiredPlanesCnt(), RPCLogCone::possibleTrigger(), RPCLogCone::RPCLogCone(), RPCPac::runEnergeticPatternsGroups(), RPCPac::runTrackPatternsGroup(), RPCLogCone::shift(), RPCLogCone::toString(), and TPatternsGroup::updateShape().
|
static |
m_Number of muon candidates return by Trigger Board's eta Ghost Buster
Definition at line 157 of file RPCConst.h.
Referenced by RPCTBGhostBuster::gBEta().
|
static |
m_Number of muon candidates return by Trigger Board's phi Ghost Buster
Definition at line 155 of file RPCConst.h.
Referenced by RPCTBGhostBuster::gBPhi().
|
static |
Use ase a last index in loops.
Definition at line 55 of file RPCConst.h.
Referenced by RPCLogCone::shift(), RPCLogCone::toString(), and TPatternsGroup::updateShape().
|
static |
The Logic Planes are named starting from '1', but in varoius loop indeks are from '0', that's why always use these consts.
Definition at line 46 of file RPCConst.h.
|
static |
Definition at line 48 of file RPCConst.h.
|
static |
Definition at line 49 of file RPCConst.h.
|
static |
Definition at line 50 of file RPCConst.h.
Referenced by RPCLogCone::possibleTrigger().
|
static |
Definition at line 51 of file RPCConst.h.
|
static |
Definition at line 52 of file RPCConst.h.
|
static |
Definition of Logic Cone Sizes - number of Logic m_Strips in each plane.
Definition at line 80 of file RPCConst.h.
Referenced by RPCLogCone::getCompressedCone(), RPCLogCone::RPCLogCone(), RPCLogCone::shift(), and RPCLogCone::toString().
|
static |
Log Planes names.
Definition at line 77 of file RPCConst.h.
Referenced by RPCLogCone::toString().
|
static |
Max Logic Planes Count in trigger towers.
Definition at line 44 of file RPCConst.h.
Referenced by RPCPacData::insertQualityRecord(), and RPCLogCone::RPCLogCone().
|
static |
Denotes Logic m_Strips that is not valid (f.e. in Patterns denotes, that in given plane the pattern is not defined).
Definition at line 93 of file RPCConst.h.
Referenced by RPCPac::runEnergeticPatternsGroups(), RPCPac::runTrackPatternsGroup(), and TPatternsGroup::updateShape().
|
static |
Pt_code range = 0-m_PT_CODE_MAX.
Definition at line 42 of file RPCConst.h.
|
staticprivate |
Matrix with pt bins upper limits.
Definition at line 235 of file RPCConst.h.
Referenced by iptFromPt(), and ptFromIpt().
|
static |
Definition of Referenece Plane for each m_Tower.
Definition at line 83 of file RPCConst.h.
|
static |
m_Number of Logic Segments in one Logic Sector, defines also the number of Logic Cones for one Logic Sector of one m_Tower.
Definition at line 153 of file RPCConst.h.
Referenced by RPCTBGhostBuster::gBPhi(), RPCHalfSorter::runHalf(), and RPCTriggerBoard::runTBGB().
|
static |
m_Number of muon candidates return by Trigger Crate's Ghost Buster
Definition at line 159 of file RPCConst.h.
Referenced by RPCTCGhostBusterSorter::run().
|
static |
Only half of the detector.
Definition at line 40 of file RPCConst.h.
Referenced by RPCPacManager< RPCPacData >::init(), and RPCTriggerConfig::produce().
|
static |
Max number of towers covered by one Trugger Board.
Definition at line 152 of file RPCConst.h.
Referenced by RPCTriggerBoard::runTBGB().
|
static |
m_Number of Logic Planes existing in each m_Tower.
Definition at line 86 of file RPCConst.h.
Referenced by RPCLogCone::getCompressedCone(), RPCLogCone::getFiredPlanesCnt(), RPCLogCone::possibleTrigger(), RPCLogCone::RPCLogCone(), RPCPac::runEnergeticPatternsGroups(), and RPCPac::runTrackPatternsGroup().
|
static |
Max Pt code of Very Low Pt patterns.
Definition at line 91 of file RPCConst.h.
|
static |
m_Number of Logic Planes used for Very Low Pt patterns.
Definition at line 89 of file RPCConst.h.
|
static |
m_Number of trigger segments. One segment covers 8 RPC strips in referencial plane (hardware 2 or 6(2')
Definition at line 30 of file RPCConst.h.
Referenced by phiFromLogSegSec(), phiFromSegmentNum(), and segmentNumFromPhi().
|
static |
m_Number of Rpc strips in phi direction.
Definition at line 29 of file RPCConst.h.
|
static |
Offset of the first trigger phi sector [deg].
Definition at line 32 of file RPCConst.h.
Referenced by phiFromLogSegSec(), phiFromSegmentNum(), and segmentNumFromPhi().