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