CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
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 &)
tuple cout
Definition: gather_cfg.py:144