CMS 3D CMS Logo

DTConfigTester.cc
Go to the documentation of this file.
2 
5 
8 
13 
14 using std::cout;
15 using std::endl;
16 
18  cout << "DTConfigTester::DTConfigTester()" << endl;
19 
20  my_wh = ps.getUntrackedParameter<int>("wheel");
21  my_sec = ps.getUntrackedParameter<int>("sector");
22  my_st = ps.getUntrackedParameter<int>("station");
23  my_traco = ps.getUntrackedParameter<int>("traco");
24  my_bti = ps.getUntrackedParameter<int>("bti");
25  my_sl = ps.getUntrackedParameter<int>("sl");
26 }
27 
29  // cout << "DTConfigTester::~DTConfigTester()" << endl;
30 }
31 
33  cout << "DTConfigTester::analyze()" << endl;
34  cout << "\tRun number :" << e.id().run() << endl;
35  cout << "\tEvent number :" << e.id().event() << endl;
36 
37  using namespace edm;
38 
40  es.get<DTConfigManagerRcd>().get(dtConfig);
41 
42  cout << "\tPrint configuration :" << endl;
43 
44  DTBtiId btiid(my_wh, my_st, my_sec, my_sl, my_bti);
45  DTTracoId tracoid(my_wh, my_st, my_sec, my_traco);
46  DTChamberId chid(my_wh, my_st, my_sec);
47  DTSectCollId scid(my_wh, my_sec);
48 
49  dtConfig->getDTConfigBti(btiid)->print();
50  dtConfig->getDTConfigTraco(tracoid)->print();
51  dtConfig->getDTConfigTSTheta(chid)->print();
52  dtConfig->getDTConfigTSPhi(chid)->print();
53  dtConfig->getDTConfigTrigUnit(chid)->print();
54 
55  if (dtConfig->lutFromDB())
56  dtConfig->getDTConfigLUTs(chid)->print();
57  else {
58  cout << "******************************************************************"
59  "*************"
60  << endl;
61  cout << "* DTTrigger configuration : LUT parameters from "
62  "GEOMETRY *"
63  << endl;
64  cout << "******************************************************************"
65  "*************"
66  << endl;
67  }
68 
69  dtConfig->getDTConfigSectColl(scid)->print();
70  dtConfig->getDTConfigPedestals()->print();
71 
72  /*
73  // 100209 SV testing luts for each chamber type: keep in case lut from DB
74  debug is necessary DTChamberId chid1(-2,3,1); cout << "\n CHAMBER -2 3 1"
75  << endl; dtConfig->getDTConfigLUTs(chid1)->print();
76 
77  DTChamberId chid2(0,2,2);
78  cout << "\n CHAMBER 0 2 2" << endl;
79  dtConfig->getDTConfigLUTs(chid2)->print();
80 
81  DTChamberId chid3(-2,4,8);
82  cout << "\n CHAMBER -2 4 8" << endl;
83  dtConfig->getDTConfigLUTs(chid3)->print();
84 
85  DTChamberId chid4(1,4,12);
86  cout << "\n CHAMBER 1 4 12" << endl;
87  dtConfig->getDTConfigLUTs(chid4)->print();
88 
89  DTChamberId chid5(-2,4,5);
90  cout << "\n CHAMBER -2 4 5 " << endl;
91  dtConfig->getDTConfigLUTs(chid5)->print();
92 
93  DTChamberId chid6(0,4,2);
94  cout << "\n CHAMBER 0 4 2" << endl;
95  dtConfig->getDTConfigLUTs(chid6)->print();
96 
97  DTChamberId chid7(-2,4,9);
98  cout << "\n CHAMBER -2 4 9" << endl;
99  dtConfig->getDTConfigLUTs(chid7)->print();
100 
101  DTChamberId chid8(0,4,11);
102  cout << "\n CHAMBER 0 4 11" << endl;
103  dtConfig->getDTConfigLUTs(chid8)->print();
104 
105  DTChamberId chid9(-2,1,1);
106  cout << "\n CHAMBER -2 1 1" << endl;
107  dtConfig->getDTConfigLUTs(chid9)->print();
108 
109  DTChamberId chid10(-2,4,13);
110  cout << "\n CHAMBER -2 4 13" << endl;
111  dtConfig->getDTConfigLUTs(chid10)->print();
112 
113  DTChamberId chid11(1,4,4);
114  cout << "\n CHAMBER 1 4 4 " << endl;
115  dtConfig->getDTConfigLUTs(chid11)->print();
116 
117  DTChamberId chid12(-2,4,14);
118  cout << "\n CHAMBER -2 4 14" << endl;
119  dtConfig->getDTConfigLUTs(chid12)->print();
120 
121  DTChamberId chid13(0,4,10);
122  cout << "\n CHAMBER 0 4 10" << endl;
123  dtConfig->getDTConfigLUTs(chid13)->print();
124 
125  DTChamberId chid14(-2,4,11);
126  cout << "\n CHAMBER -2 4 11" << endl;
127  dtConfig->getDTConfigLUTs(chid14)->print();
128 
129  DTChamberId chid15(1,4,9);
130  cout << "\n CHAMBER 1 4 9" << endl;
131  dtConfig->getDTConfigLUTs(chid15)->print();
132 
133  DTChamberId chid16(0,1,2);
134  cout << "\n CHAMBER 0 1 2 " << endl;
135  dtConfig->getDTConfigLUTs(chid16)->print();
136 
137  DTChamberId chid17(-2,2,1);
138  cout << "\n CHAMBER -2 2 1" << endl;
139  dtConfig->getDTConfigLUTs(chid17)->print();
140 
141  DTChamberId chid18(0,3,2);
142  cout << "\n CHAMBER 0 3 2 " << endl;
143  dtConfig->getDTConfigLUTs(chid18)->print();
144 
145  DTChamberId chid19(-2,4,10);
146  cout << "\n CHAMBER 0 2 2" << endl;
147  dtConfig->getDTConfigLUTs(chid19)->print();
148 
149  DTChamberId chid20(0,4,14);
150  cout << "\n CHAMBER 0 4 14" << endl;
151  dtConfig->getDTConfigLUTs(chid20)->print();
152 
153  DTChamberId chid21(-2,4,12);
154  cout << "\n CHAMBER -2 4 12" << endl;
155  dtConfig->getDTConfigLUTs(chid21)->print();
156 
157  DTChamberId chid22(1,4,8);
158  cout << "\n CHAMBER 1 4 8" << endl;
159  dtConfig->getDTConfigLUTs(chid22)->print();
160 
161  DTChamberId chid23(-2,4,1);
162  cout << "\n CHAMBER -2 4 1" << endl;
163  dtConfig->getDTConfigLUTs(chid23)->print();
164 
165  DTChamberId chid24(0,4,6);
166  cout << "\n CHAMBER 0 4 6" << endl;
167  dtConfig->getDTConfigLUTs(chid24)->print();
168 
169  DTChamberId chid25(-2,4,4);
170  cout << "\n CHAMBER -2 4 4" << endl;
171  dtConfig->getDTConfigLUTs(chid25)->print();
172 
173  DTChamberId chid26(1,4,13);
174  cout << "\n CHAMBER 1 4 13 " << endl;
175  dtConfig->getDTConfigLUTs(chid26)->print();
176 
177  */
178  return;
179 }
DTConfigManager::getDTConfigTraco
const DTConfigTraco * getDTConfigTraco(DTTracoId) const
Get desired TRACO configuration.
Definition: DTConfigManager.cc:87
DTConfigTSPhi::print
void print() const
Print the setup.
Definition: DTConfigTSPhi.cc:402
DTConfigTester::my_st
int my_st
Definition: DTConfigTester.h:44
DTTracoId
Definition: DTTracoId.h:34
DTConfigManager::getDTConfigLUTs
const DTConfigLUTs * getDTConfigLUTs(DTChamberId) const
Get desired LUT configuration.
Definition: DTConfigManager.cc:149
ESHandle.h
DTConfigManager::lutFromDB
bool lutFromDB() const
Lut from DB flag.
Definition: DTConfigManager.h:105
edm
HLT enums.
Definition: AlignableModifier.h:19
DTConfigTSTheta::print
void print() const
Print the setup.
Definition: DTConfigTSTheta.cc:49
gather_cfg.cout
cout
Definition: gather_cfg.py:144
DTBtiId.h
DTTracoId.h
DTConfigTrigUnit::print
void print() const
Print the setup.
Definition: DTConfigTrigUnit.cc:50
DTConfigTester::my_sl
int my_sl
Definition: DTConfigTester.h:47
DTSectCollId.h
DTConfigManager.h
DTConfigManager::getDTConfigBti
const DTConfigBti * getDTConfigBti(DTBtiId) const
Get desired BTI configuration.
Definition: DTConfigManager.cc:58
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
DTConfigTester::~DTConfigTester
~DTConfigTester() override
Destructor.
Definition: DTConfigTester.cc:28
edm::EventSetup::get
T get() const
Definition: EventSetup.h:80
DTConfigManager::getDTConfigTSTheta
const DTConfigTSTheta * getDTConfigTSTheta(DTChamberId) const
Get desired Trigger Server Theta configuration.
Definition: DTConfigManager.cc:116
edm::ESHandle
Definition: DTSurvey.h:22
DTSectCollId
Definition: DTSectCollId.h:18
DTConfigBti::print
void print() const
Print the setup.
Definition: DTConfigBti.cc:212
DTConfigLUTs::print
void print() const
Print the setup.
Definition: DTConfigLUTs.cc:96
DTChamberId.h
DTConfigManagerRcd
Definition: DTConfigManagerRcd.h:31
DTConfigTester::my_sec
int my_sec
Definition: DTConfigTester.h:43
DTConfigTester::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: DTConfigTester.cc:32
DTConfigPedestals::print
void print() const
Print the setup.
Definition: DTConfigPedestals.cc:86
edm::ParameterSet
Definition: ParameterSet.h:47
DTConfigTester::my_bti
int my_bti
Definition: DTConfigTester.h:46
DTConfigTraco::print
void print() const
Print the setup.
Definition: DTConfigTraco.cc:219
DTConfigTester.h
DTConfigManager::getDTConfigTrigUnit
const DTConfigTrigUnit * getDTConfigTrigUnit(DTChamberId) const
Get desired Trigger Unit configuration.
Definition: DTConfigManager.cc:138
DTConfigManager::getDTConfigPedestals
const DTConfigPedestals * getDTConfigPedestals() const
Get desired Pedestals configuration.
Definition: DTConfigManager.cc:171
edm::EventSetup
Definition: EventSetup.h:57
DTBtiId
Definition: DTBtiId.h:32
get
#define get
DTConfigManagerRcd.h
DTConfigTester::my_wh
int my_wh
Definition: DTConfigTester.h:42
DTConfigTester::my_traco
int my_traco
Definition: DTConfigTester.h:45
EventSetup.h
DTConfigSectColl::print
void print() const
Print the setup.
Definition: DTConfigSectColl.cc:110
DTConfigManager::getDTConfigTSPhi
const DTConfigTSPhi * getDTConfigTSPhi(DTChamberId) const
Get desired Trigger Server Phi configuration.
Definition: DTConfigManager.cc:127
DTChamberId
Definition: DTChamberId.h:14
edm::Event
Definition: Event.h:73
DTConfigManager::getDTConfigSectColl
const DTConfigSectColl * getDTConfigSectColl(DTSectCollId) const
Get desired SectorCollector configuration.
Definition: DTConfigManager.cc:160
DTConfigTester::DTConfigTester
DTConfigTester(const edm::ParameterSet &)
Constructor.
Definition: DTConfigTester.cc:17
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37