/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CalibMuon/CSCCalibration/interface/CSCL1TPParametersConditions.h
66 строк
2 KB
Christopher Jones
Move to EventSetupRecordInfiniteIntervalFinder
16 июн 2026, 21:21
16 июн 2026, 21:21
419a1ec
Код
Авторство
О чём код?
#ifndef _CSCL1TPPARAMETERSCONDITIONS_H #define _CSCL1TPPARAMETERSCONDITIONS_H #include "FWCore/Framework/interface/ESHandle.h" #include "FWCore/Framework/interface/ESProducer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/Framework/interface/EventSetupRecordInfiniteIntervalFinder.h" #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/Framework/interface/SourceFactory.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include <cmath> #include <memory> #include "CondFormats/CSCObjects/interface/CSCL1TPParameters.h" #include "CondFormats/DataRecord/interface/CSCL1TPParametersRcd.h" #include <DataFormats/MuonDetId/interface/CSCDetId.h> class CSCL1TPParametersConditions : public edm::ESProducer, public edm::EventSetupRecordInfiniteIntervalFinder { public: CSCL1TPParametersConditions(const edm::ParameterSet &); ~CSCL1TPParametersConditions() override; inline static CSCL1TPParameters *prefillCSCL1TPParameters(); typedef std::unique_ptr<CSCL1TPParameters> ReturnType; ReturnType produceCSCL1TPParameters(const CSCL1TPParametersRcd &); private: // ----------member data --------------------------- }; #include <fstream> #include <iostream> #include <vector> // to workaround plugin library inline CSCL1TPParameters *CSCL1TPParametersConditions::prefillCSCL1TPParameters() { CSCL1TPParameters *cnl1tp = new CSCL1TPParameters(); cnl1tp->setAlctFifoTbins(16); cnl1tp->setAlctFifoPretrig(10); cnl1tp->setAlctDriftDelay(2); cnl1tp->setAlctNplanesHitPretrig(3); // was 2, new is 3 cnl1tp->setAlctNplanesHitPattern(4); cnl1tp->setAlctNplanesHitAccelPretrig(3); // was 2, new is 3 cnl1tp->setAlctNplanesHitAccelPattern(4); cnl1tp->setAlctTrigMode(2); cnl1tp->setAlctAccelMode(0); cnl1tp->setAlctL1aWindowWidth(7); cnl1tp->setClctFifoTbins(12); cnl1tp->setClctFifoPretrig(7); cnl1tp->setClctHitPersist(4); // was 6, new is 4 cnl1tp->setClctDriftDelay(2); cnl1tp->setClctNplanesHitPretrig(3); // was 2, new is 3 cnl1tp->setClctNplanesHitPattern(4); cnl1tp->setClctPidThreshPretrig(2); cnl1tp->setClctMinSeparation(10); return cnl1tp; } #endif