/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
RecoLocalMuon/RPCRecHit/plugins/RPCRecHitBaseAlgo.cc
50 строк
2 KB
Shahzad Malik Muzaffar
[Reco] Fixes needed to avoid exposing private headers via interface dir
17 авг 2021, 19:18
17 авг 2021, 19:18
f613a65
Код
Авторство
О чём код?
/* * See header file for a description of this class. * * \author M. Maggi -- INFN Bari */ #include "RPCRecHitBaseAlgo.h" #include "RPCClusterContainer.h" #include "RPCCluster.h" #include "RPCClusterizer.h" #include "RPCMaskReClusterizer.h" RPCRecHitBaseAlgo::RPCRecHitBaseAlgo(const edm::ParameterSet& config) { // theSync = RPCTTrigSyncFactory::get()->create(config.getParameter<string>("tTrigMode"), //config.getParameter<ParameterSet>("tTrigModeConfig")); } // Build all hits in the range associated to the layerId, at the 1st step. edm::OwnVector<RPCRecHit> RPCRecHitBaseAlgo::reconstruct(const RPCRoll& roll, const RPCDetId& rpcId, const RPCDigiCollection::Range& digiRange, const RollMask& mask) { edm::OwnVector<RPCRecHit> result; RPCClusterizer clizer; RPCClusterContainer tcls = clizer.doAction(digiRange); RPCMaskReClusterizer mrclizer; RPCClusterContainer cls = mrclizer.doAction(rpcId, tcls, mask); for (const auto& cl : cls) { LocalError tmpErr; LocalPoint point; float time = 0, timeErr = -1; // Call the compute method const bool OK = this->compute(roll, cl, point, tmpErr, time, timeErr); if (!OK) continue; // Build a new pair of 1D rechit const int firstClustStrip = cl.firstStrip(); const int clusterSize = cl.clusterSize(); RPCRecHit* recHit = new RPCRecHit(rpcId, cl.bx(), firstClustStrip, clusterSize, point, tmpErr); recHit->setTimeAndError(time, timeErr); result.push_back(recHit); } return result; }