CMS 3D CMS Logo

DTTrackFinderConfig.cc
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // Class: DTTrackFinderConfig
4 //
5 // L1 DT Track Finder ESProducer
6 //
7 //
8 //
9 // Author :
10 // J. Troconiz UAM Madrid
11 //
12 //--------------------------------------------------
13 
15 
16 #include <iostream>
17 #include <memory>
18 
19 #include <string>
20 
21 using namespace std;
22 
24  setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTExtLut);
25  setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTPhiLut);
26  setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTPtaLut);
29  setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTTFParameters);
30  setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTTFMasks);
31 }
32 
34 
35 unique_ptr<L1MuDTExtLut> DTTrackFinderConfig::produceL1MuDTExtLut(const L1MuDTExtLutRcd& iRecord) {
36  unique_ptr<L1MuDTExtLut> extlut = std::make_unique<L1MuDTExtLut>();
37 
38  if (extlut->load() != 0) {
39  cout << "Can not open files to load extrapolation look-up tables for DTTrackFinder!" << endl;
40  }
41 
42  return extlut;
43 }
44 
45 unique_ptr<L1MuDTPhiLut> DTTrackFinderConfig::produceL1MuDTPhiLut(const L1MuDTPhiLutRcd& iRecord) {
46  unique_ptr<L1MuDTPhiLut> philut = std::make_unique<L1MuDTPhiLut>();
47 
48  if (philut->load() != 0) {
49  cout << "Can not open files to load phi-assignment look-up tables for DTTrackFinder!" << endl;
50  }
51 
52  return philut;
53 }
54 
55 unique_ptr<L1MuDTPtaLut> DTTrackFinderConfig::produceL1MuDTPtaLut(const L1MuDTPtaLutRcd& iRecord) {
56  unique_ptr<L1MuDTPtaLut> ptalut = std::make_unique<L1MuDTPtaLut>();
57 
58  if (ptalut->load() != 0) {
59  cout << "Can not open files to load pt-assignment look-up tables for DTTrackFinder!" << endl;
60  }
61 
62  return ptalut;
63 }
64 
65 unique_ptr<L1MuDTEtaPatternLut> DTTrackFinderConfig::produceL1MuDTEtaPatternLut(const L1MuDTEtaPatternLutRcd& iRecord) {
66  unique_ptr<L1MuDTEtaPatternLut> etalut = std::make_unique<L1MuDTEtaPatternLut>();
67 
68  if (etalut->load() != 0) {
69  cout << "Can not open files to load eta track finder look-up tables for DTTrackFinder!" << endl;
70  }
71 
72  return etalut;
73 }
74 
75 unique_ptr<L1MuDTQualPatternLut> DTTrackFinderConfig::produceL1MuDTQualPatternLut(
76  const L1MuDTQualPatternLutRcd& iRecord) {
77  unique_ptr<L1MuDTQualPatternLut> qualut = std::make_unique<L1MuDTQualPatternLut>();
78 
79  if (qualut->load() != 0) {
80  cout << "Can not open files to load eta matching look-up tables for DTTrackFinder!" << endl;
81  }
82 
83  return qualut;
84 }
85 
86 unique_ptr<L1MuDTTFParameters> DTTrackFinderConfig::produceL1MuDTTFParameters(const L1MuDTTFParametersRcd& iRecord) {
87  unique_ptr<L1MuDTTFParameters> dttfpar = std::make_unique<L1MuDTTFParameters>();
88 
89  dttfpar->reset();
90 
91  return dttfpar;
92 }
93 
94 unique_ptr<L1MuDTTFMasks> DTTrackFinderConfig::produceL1MuDTTFMasks(const L1MuDTTFMasksRcd& iRecord) {
95  unique_ptr<L1MuDTTFMasks> dttfmsk = std::make_unique<L1MuDTTFMasks>();
96 
97  dttfmsk->reset();
98 
99  return dttfmsk;
100 }
101 
DTTrackFinderConfig::~DTTrackFinderConfig
~DTTrackFinderConfig() override
Definition: DTTrackFinderConfig.cc:33
gather_cfg.cout
cout
Definition: gather_cfg.py:144
L1MuDTTFMasksRcd
Definition: L1MuDTTFMasksRcd.h:10
L1DTTrackFinderConfig_cff.etalut
etalut
Definition: L1DTTrackFinderConfig_cff.py:21
DTTrackFinderConfig.h
DTTrackFinderConfig::produceL1MuDTPhiLut
std::unique_ptr< L1MuDTPhiLut > produceL1MuDTPhiLut(const L1MuDTPhiLutRcd &)
Definition: DTTrackFinderConfig.cc:45
L1DTTrackFinderConfig_cff.dttfpar
dttfpar
Definition: L1DTTrackFinderConfig_cff.py:33
DTTrackFinderConfig::produceL1MuDTPtaLut
std::unique_ptr< L1MuDTPtaLut > produceL1MuDTPtaLut(const L1MuDTPtaLutRcd &)
Definition: DTTrackFinderConfig.cc:55
L1MuDTEtaPatternLutRcd
Definition: L1MuDTEtaPatternLutRcd.h:12
DTTrackFinderConfig::produceL1MuDTTFMasks
std::unique_ptr< L1MuDTTFMasks > produceL1MuDTTFMasks(const L1MuDTTFMasksRcd &)
Definition: DTTrackFinderConfig.cc:94
DTTrackFinderConfig::produceL1MuDTExtLut
std::unique_ptr< L1MuDTExtLut > produceL1MuDTExtLut(const L1MuDTExtLutRcd &)
Definition: DTTrackFinderConfig.cc:35
edm::ParameterSet
Definition: ParameterSet.h:47
L1DTTrackFinderConfig_cff.extlut
extlut
Definition: L1DTTrackFinderConfig_cff.py:3
L1DTTrackFinderConfig_cff.dttfmsk
dttfmsk
Definition: L1DTTrackFinderConfig_cff.py:39
L1MuDTQualPatternLutRcd
Definition: L1MuDTQualPatternLutRcd.h:12
DTTrackFinderConfig::produceL1MuDTQualPatternLut
std::unique_ptr< L1MuDTQualPatternLut > produceL1MuDTQualPatternLut(const L1MuDTQualPatternLutRcd &)
Definition: DTTrackFinderConfig.cc:75
DTTrackFinderConfig::produceL1MuDTEtaPatternLut
std::unique_ptr< L1MuDTEtaPatternLut > produceL1MuDTEtaPatternLut(const L1MuDTEtaPatternLutRcd &)
Definition: DTTrackFinderConfig.cc:65
L1MuDTPhiLutRcd
Definition: L1MuDTPhiLutRcd.h:12
DTTrackFinderConfig
Definition: DTTrackFinderConfig.h:39
std
Definition: JetResolutionObject.h:76
L1DTTrackFinderConfig_cff.qualut
qualut
Definition: L1DTTrackFinderConfig_cff.py:27
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
L1MuDTPtaLutRcd
Definition: L1MuDTPtaLutRcd.h:12
L1DTTrackFinderConfig_cff.philut
philut
Definition: L1DTTrackFinderConfig_cff.py:9
DTTrackFinderConfig::DTTrackFinderConfig
DTTrackFinderConfig(const edm::ParameterSet &)
Definition: DTTrackFinderConfig.cc:23
L1MuDTExtLutRcd
Definition: L1MuDTExtLutRcd.h:12
L1DTTrackFinderConfig_cff.ptalut
ptalut
Definition: L1DTTrackFinderConfig_cff.py:15
DTTrackFinderConfig::produceL1MuDTTFParameters
std::unique_ptr< L1MuDTTFParameters > produceL1MuDTTFParameters(const L1MuDTTFParametersRcd &)
Definition: DTTrackFinderConfig.cc:86
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
L1MuDTTFParametersRcd
Definition: L1MuDTTFParametersRcd.h:10