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 
23  setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTExtLut);
24  setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTPhiLut);
25  setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTPtaLut);
28  setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTTFParameters);
29  setWhatProduced(this, &DTTrackFinderConfig::produceL1MuDTTFMasks);
30 
31 }
32 
33 
35 
36 
37 unique_ptr<L1MuDTExtLut> DTTrackFinderConfig::produceL1MuDTExtLut(const L1MuDTExtLutRcd& iRecord) {
38 
39  unique_ptr<L1MuDTExtLut> extlut = unique_ptr<L1MuDTExtLut>( new L1MuDTExtLut() );
40 
41  if ( extlut->load() != 0 ) {
42  cout << "Can not open files to load extrapolation look-up tables for DTTrackFinder!" << endl;
43  }
44 
45  return extlut;
46 }
47 
48 unique_ptr<L1MuDTPhiLut> DTTrackFinderConfig::produceL1MuDTPhiLut(const L1MuDTPhiLutRcd& iRecord) {
49 
50  unique_ptr<L1MuDTPhiLut> philut = unique_ptr<L1MuDTPhiLut>( new L1MuDTPhiLut() );
51 
52  if ( philut->load() != 0 ) {
53  cout << "Can not open files to load phi-assignment look-up tables for DTTrackFinder!" << endl;
54  }
55 
56  return philut;
57 }
58 
59 unique_ptr<L1MuDTPtaLut> DTTrackFinderConfig::produceL1MuDTPtaLut(const L1MuDTPtaLutRcd& iRecord) {
60 
61  unique_ptr<L1MuDTPtaLut> ptalut = unique_ptr<L1MuDTPtaLut>( new L1MuDTPtaLut() );
62 
63  if ( ptalut->load() != 0 ) {
64  cout << "Can not open files to load pt-assignment look-up tables for DTTrackFinder!" << endl;
65  }
66 
67  return ptalut;
68 }
69 
70 unique_ptr<L1MuDTEtaPatternLut> DTTrackFinderConfig::produceL1MuDTEtaPatternLut(const L1MuDTEtaPatternLutRcd& iRecord) {
71 
72  unique_ptr<L1MuDTEtaPatternLut> etalut = unique_ptr<L1MuDTEtaPatternLut>( new L1MuDTEtaPatternLut() );
73 
74  if ( etalut->load() != 0 ) {
75  cout << "Can not open files to load eta track finder look-up tables for DTTrackFinder!" << endl;
76  }
77 
78  return etalut;
79 }
80 
81 unique_ptr<L1MuDTQualPatternLut> DTTrackFinderConfig::produceL1MuDTQualPatternLut(const L1MuDTQualPatternLutRcd& iRecord) {
82 
83  unique_ptr<L1MuDTQualPatternLut> qualut = unique_ptr<L1MuDTQualPatternLut>( new L1MuDTQualPatternLut() );
84 
85  if ( qualut->load() != 0 ) {
86  cout << "Can not open files to load eta matching look-up tables for DTTrackFinder!" << endl;
87  }
88 
89  return qualut;
90 }
91 
92 unique_ptr<L1MuDTTFParameters> DTTrackFinderConfig::produceL1MuDTTFParameters(const L1MuDTTFParametersRcd& iRecord) {
93 
94  unique_ptr<L1MuDTTFParameters> dttfpar = unique_ptr<L1MuDTTFParameters>( new L1MuDTTFParameters() );
95 
96  dttfpar->reset();
97 
98  return dttfpar;
99 }
100 
101 unique_ptr<L1MuDTTFMasks> DTTrackFinderConfig::produceL1MuDTTFMasks(const L1MuDTTFMasksRcd& iRecord) {
102 
103  unique_ptr<L1MuDTTFMasks> dttfmsk = unique_ptr<L1MuDTTFMasks>( new L1MuDTTFMasks() );
104 
105  dttfmsk->reset();
106 
107  return dttfmsk;
108 }
109 
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 &)