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 <string>
18 
19 using namespace std;
20 
22  setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTExtLut);
23  setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTPhiLut);
24  setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTPtaLut);
27  setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTTFParameters);
28  setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTTFMasks);
29 }
30 
32 
33 unique_ptr<L1MuDTExtLut> DTTrackFinderConfig::produceL1MuDTExtLut(const L1MuDTExtLutRcd& iRecord) {
34  unique_ptr<L1MuDTExtLut> extlut = unique_ptr<L1MuDTExtLut>(new L1MuDTExtLut());
35 
36  if (extlut->load() != 0) {
37  cout << "Can not open files to load extrapolation look-up tables for DTTrackFinder!" << endl;
38  }
39 
40  return extlut;
41 }
42 
43 unique_ptr<L1MuDTPhiLut> DTTrackFinderConfig::produceL1MuDTPhiLut(const L1MuDTPhiLutRcd& iRecord) {
44  unique_ptr<L1MuDTPhiLut> philut = unique_ptr<L1MuDTPhiLut>(new L1MuDTPhiLut());
45 
46  if (philut->load() != 0) {
47  cout << "Can not open files to load phi-assignment look-up tables for DTTrackFinder!" << endl;
48  }
49 
50  return philut;
51 }
52 
53 unique_ptr<L1MuDTPtaLut> DTTrackFinderConfig::produceL1MuDTPtaLut(const L1MuDTPtaLutRcd& iRecord) {
54  unique_ptr<L1MuDTPtaLut> ptalut = unique_ptr<L1MuDTPtaLut>(new L1MuDTPtaLut());
55 
56  if (ptalut->load() != 0) {
57  cout << "Can not open files to load pt-assignment look-up tables for DTTrackFinder!" << endl;
58  }
59 
60  return ptalut;
61 }
62 
63 unique_ptr<L1MuDTEtaPatternLut> DTTrackFinderConfig::produceL1MuDTEtaPatternLut(const L1MuDTEtaPatternLutRcd& iRecord) {
64  unique_ptr<L1MuDTEtaPatternLut> etalut = unique_ptr<L1MuDTEtaPatternLut>(new L1MuDTEtaPatternLut());
65 
66  if (etalut->load() != 0) {
67  cout << "Can not open files to load eta track finder look-up tables for DTTrackFinder!" << endl;
68  }
69 
70  return etalut;
71 }
72 
73 unique_ptr<L1MuDTQualPatternLut> DTTrackFinderConfig::produceL1MuDTQualPatternLut(
74  const L1MuDTQualPatternLutRcd& iRecord) {
75  unique_ptr<L1MuDTQualPatternLut> qualut = unique_ptr<L1MuDTQualPatternLut>(new L1MuDTQualPatternLut());
76 
77  if (qualut->load() != 0) {
78  cout << "Can not open files to load eta matching look-up tables for DTTrackFinder!" << endl;
79  }
80 
81  return qualut;
82 }
83 
84 unique_ptr<L1MuDTTFParameters> DTTrackFinderConfig::produceL1MuDTTFParameters(const L1MuDTTFParametersRcd& iRecord) {
85  unique_ptr<L1MuDTTFParameters> dttfpar = unique_ptr<L1MuDTTFParameters>(new L1MuDTTFParameters());
86 
87  dttfpar->reset();
88 
89  return dttfpar;
90 }
91 
92 unique_ptr<L1MuDTTFMasks> DTTrackFinderConfig::produceL1MuDTTFMasks(const L1MuDTTFMasksRcd& iRecord) {
93  unique_ptr<L1MuDTTFMasks> dttfmsk = unique_ptr<L1MuDTTFMasks>(new L1MuDTTFMasks());
94 
95  dttfmsk->reset();
96 
97  return dttfmsk;
98 }
99 
DTTrackFinderConfig::~DTTrackFinderConfig
~DTTrackFinderConfig() override
Definition: DTTrackFinderConfig.cc:31
gather_cfg.cout
cout
Definition: gather_cfg.py:144
L1MuDTExtLut
Definition: L1MuDTExtLut.h:39
L1MuDTTFMasksRcd
Definition: L1MuDTTFMasksRcd.h:10
L1MuDTTFMasks
Definition: L1MuDTTFMasks.h:36
L1DTTrackFinderConfig_cff.etalut
etalut
Definition: L1DTTrackFinderConfig_cff.py:21
DTTrackFinderConfig.h
L1MuDTPtaLut
Definition: L1MuDTPtaLut.h:39
DTTrackFinderConfig::produceL1MuDTPhiLut
std::unique_ptr< L1MuDTPhiLut > produceL1MuDTPhiLut(const L1MuDTPhiLutRcd &)
Definition: DTTrackFinderConfig.cc:43
L1DTTrackFinderConfig_cff.dttfpar
dttfpar
Definition: L1DTTrackFinderConfig_cff.py:33
DTTrackFinderConfig::produceL1MuDTPtaLut
std::unique_ptr< L1MuDTPtaLut > produceL1MuDTPtaLut(const L1MuDTPtaLutRcd &)
Definition: DTTrackFinderConfig.cc:53
L1MuDTEtaPatternLutRcd
Definition: L1MuDTEtaPatternLutRcd.h:12
DTTrackFinderConfig::produceL1MuDTTFMasks
std::unique_ptr< L1MuDTTFMasks > produceL1MuDTTFMasks(const L1MuDTTFMasksRcd &)
Definition: DTTrackFinderConfig.cc:92
DTTrackFinderConfig::produceL1MuDTExtLut
std::unique_ptr< L1MuDTExtLut > produceL1MuDTExtLut(const L1MuDTExtLutRcd &)
Definition: DTTrackFinderConfig.cc:33
edm::ParameterSet
Definition: ParameterSet.h:36
L1DTTrackFinderConfig_cff.extlut
extlut
Definition: L1DTTrackFinderConfig_cff.py:3
L1MuDTEtaPatternLut
Definition: L1MuDTEtaPatternLut.h:40
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:73
DTTrackFinderConfig::produceL1MuDTEtaPatternLut
std::unique_ptr< L1MuDTEtaPatternLut > produceL1MuDTEtaPatternLut(const L1MuDTEtaPatternLutRcd &)
Definition: DTTrackFinderConfig.cc:63
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
L1MuDTPhiLut
Definition: L1MuDTPhiLut.h:40
L1DTTrackFinderConfig_cff.philut
philut
Definition: L1DTTrackFinderConfig_cff.py:9
L1MuDTQualPatternLut
Definition: L1MuDTQualPatternLut.h:41
DTTrackFinderConfig::DTTrackFinderConfig
DTTrackFinderConfig(const edm::ParameterSet &)
Definition: DTTrackFinderConfig.cc:21
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:84
L1MuDTTFParameters
Definition: L1MuDTTFParameters.h:36
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
L1MuDTTFParametersRcd
Definition: L1MuDTTFParametersRcd.h:10