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 
std::unique_ptr< L1MuDTTFParameters > produceL1MuDTTFParameters(const L1MuDTTFParametersRcd &)
DTTrackFinderConfig(const edm::ParameterSet &)
std::unique_ptr< L1MuDTPtaLut > produceL1MuDTPtaLut(const L1MuDTPtaLutRcd &)
std::unique_ptr< L1MuDTTFMasks > produceL1MuDTTFMasks(const L1MuDTTFMasksRcd &)
std::unique_ptr< L1MuDTQualPatternLut > produceL1MuDTQualPatternLut(const L1MuDTQualPatternLutRcd &)
std::unique_ptr< L1MuDTExtLut > produceL1MuDTExtLut(const L1MuDTExtLutRcd &)
std::unique_ptr< L1MuDTPhiLut > produceL1MuDTPhiLut(const L1MuDTPhiLutRcd &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
std::unique_ptr< L1MuDTEtaPatternLut > produceL1MuDTEtaPatternLut(const L1MuDTEtaPatternLutRcd &)