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