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 }
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
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.
~DTConfigTester() override
Destructor.
const DTConfigSectColl * getDTConfigSectColl(DTSectCollId) const
Get desired SectorCollector configuration.
T get() const
Definition: EventSetup.h:82
void print() const
Print the setup.
const DTConfigTrigUnit * getDTConfigTrigUnit(DTChamberId) const
Get desired Trigger Unit configuration.
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.