Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:16

0001 //-------------------------------------------------
0002 //
0003 //   Class: DTTrackFinderConfig
0004 //
0005 //   L1 DT Track Finder ESProducer
0006 //
0007 //
0008 //
0009 //   Author :
0010 //   J. Troconiz              UAM Madrid
0011 //
0012 //--------------------------------------------------
0013 
0014 #include "L1TriggerConfig/DTTrackFinder/interface/DTTrackFinderConfig.h"
0015 
0016 #include <iostream>
0017 #include <memory>
0018 
0019 #include <string>
0020 
0021 using namespace std;
0022 
0023 DTTrackFinderConfig::DTTrackFinderConfig(const edm::ParameterSet& pset) {
0024   setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTExtLut);
0025   setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTPhiLut);
0026   setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTPtaLut);
0027   setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTEtaPatternLut);
0028   setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTQualPatternLut);
0029   setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTTFParameters);
0030   setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTTFMasks);
0031 }
0032 
0033 DTTrackFinderConfig::~DTTrackFinderConfig() {}
0034 
0035 unique_ptr<L1MuDTExtLut> DTTrackFinderConfig::produceL1MuDTExtLut(const L1MuDTExtLutRcd& iRecord) {
0036   unique_ptr<L1MuDTExtLut> extlut = std::make_unique<L1MuDTExtLut>();
0037 
0038   if (extlut->load() != 0) {
0039     cout << "Can not open files to load  extrapolation look-up tables for DTTrackFinder!" << endl;
0040   }
0041 
0042   return extlut;
0043 }
0044 
0045 unique_ptr<L1MuDTPhiLut> DTTrackFinderConfig::produceL1MuDTPhiLut(const L1MuDTPhiLutRcd& iRecord) {
0046   unique_ptr<L1MuDTPhiLut> philut = std::make_unique<L1MuDTPhiLut>();
0047 
0048   if (philut->load() != 0) {
0049     cout << "Can not open files to load phi-assignment look-up tables for DTTrackFinder!" << endl;
0050   }
0051 
0052   return philut;
0053 }
0054 
0055 unique_ptr<L1MuDTPtaLut> DTTrackFinderConfig::produceL1MuDTPtaLut(const L1MuDTPtaLutRcd& iRecord) {
0056   unique_ptr<L1MuDTPtaLut> ptalut = std::make_unique<L1MuDTPtaLut>();
0057 
0058   if (ptalut->load() != 0) {
0059     cout << "Can not open files to load pt-assignment look-up tables for DTTrackFinder!" << endl;
0060   }
0061 
0062   return ptalut;
0063 }
0064 
0065 unique_ptr<L1MuDTEtaPatternLut> DTTrackFinderConfig::produceL1MuDTEtaPatternLut(const L1MuDTEtaPatternLutRcd& iRecord) {
0066   unique_ptr<L1MuDTEtaPatternLut> etalut = std::make_unique<L1MuDTEtaPatternLut>();
0067 
0068   if (etalut->load() != 0) {
0069     cout << "Can not open files to load eta track finder look-up tables for DTTrackFinder!" << endl;
0070   }
0071 
0072   return etalut;
0073 }
0074 
0075 unique_ptr<L1MuDTQualPatternLut> DTTrackFinderConfig::produceL1MuDTQualPatternLut(
0076     const L1MuDTQualPatternLutRcd& iRecord) {
0077   unique_ptr<L1MuDTQualPatternLut> qualut = std::make_unique<L1MuDTQualPatternLut>();
0078 
0079   if (qualut->load() != 0) {
0080     cout << "Can not open files to load eta matching look-up tables for DTTrackFinder!" << endl;
0081   }
0082 
0083   return qualut;
0084 }
0085 
0086 unique_ptr<L1MuDTTFParameters> DTTrackFinderConfig::produceL1MuDTTFParameters(const L1MuDTTFParametersRcd& iRecord) {
0087   unique_ptr<L1MuDTTFParameters> dttfpar = std::make_unique<L1MuDTTFParameters>();
0088 
0089   dttfpar->reset();
0090 
0091   return dttfpar;
0092 }
0093 
0094 unique_ptr<L1MuDTTFMasks> DTTrackFinderConfig::produceL1MuDTTFMasks(const L1MuDTTFMasksRcd& iRecord) {
0095   unique_ptr<L1MuDTTFMasks> dttfmsk = std::make_unique<L1MuDTTFMasks>();
0096 
0097   dttfmsk->reset();
0098 
0099   return dttfmsk;
0100 }
0101 
0102 DEFINE_FWK_EVENTSETUP_MODULE(DTTrackFinderConfig);