/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
L1Trigger/CSCTriggerPrimitives/interface/ComparatorCodeLUT.h
50 строк
2 KB
Christopher Jones
Replace forward references with includes of Fwd.h files
18 фев 2026, 17:29
18 фев 2026, 17:29
bb39da7
Код
Авторство
О чём код?
#ifndef L1Trigger_CSCTriggerPrimitives_ComparatorCodeLUT #define L1Trigger_CSCTriggerPrimitives_ComparatorCodeLUT /** \class ComparatorCodeLUT * * Helper class to calculate for the comparator code * algorithm for Phase-2. * * \author Sven Dildick (Rice University) * */ #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "DataFormats/CSCDigi/interface/CSCConstants.h" #include "DataFormats/CSCDigi/interface/CSCCLCTDigi.h" #include "DataFormats/CSCDigi/interface/CSCCLCTDigiFwd.h" #include "L1Trigger/CSCTriggerPrimitives/interface/CSCPatternBank.h" #include "CondFormats/CSCObjects/interface/CSCL1TPLookupTableCCLUT.h" #include <vector> #include <string> class ComparatorCodeLUT { public: typedef std::array<std::array<int, 3>, CSCConstants::NUM_LAYERS> pattern; // constructor ComparatorCodeLUT(const edm::ParameterSet& conf); // runs the CCLUT procedure void run(CSCCLCTDigi& digi, unsigned numCFEBs, const CSCL1TPLookupTableCCLUT* lookupTableCCLUT) const; private: //calculates the id based on location of hits int calculateComparatorCode(const pattern& halfStripPattern) const; unsigned convertSlopeToRun2Pattern(const unsigned slope) const; // sets the 1/4 and 1/8 strip bits given a floating point position offset void assignPositionCC(const unsigned offset, std::tuple<int16_t, bool, bool>& returnValue) const; // actual LUT used CSCPatternBank::LCTPatterns clct_pattern_ = {}; // verbosity level unsigned infoV_ = 0; }; #endif