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 }
34 
36 
37  cout << "DTConfigTester::analyze()" << endl;
38  cout << "\tRun number :" << e.id().run() << endl;
39  cout << "\tEvent number :" << e.id().event() << endl;
40 
41  using namespace edm;
42 
44  es.get< DTConfigManagerRcd >().get( dtConfig ) ;
45 
46  cout << "\tPrint configuration :" << endl;
47 
52 
53  dtConfig->getDTConfigBti(btiid)->print();
54  dtConfig->getDTConfigTraco(tracoid)->print();
55  dtConfig->getDTConfigTSTheta(chid)->print();
56  dtConfig->getDTConfigTSPhi(chid)->print();
57  dtConfig->getDTConfigTrigUnit(chid)->print();
58 
59  if(dtConfig->lutFromDB())
60  dtConfig->getDTConfigLUTs(chid)->print();
61  else {
62  cout << "*******************************************************************************" << endl;
63  cout << "* DTTrigger configuration : LUT parameters from GEOMETRY *" << endl;
64  cout << "*******************************************************************************" << endl;
65  }
66 
67  dtConfig->getDTConfigSectColl(scid)->print();
68  dtConfig->getDTConfigPedestals()->print();
69 
70 /*
71  // 100209 SV testing luts for each chamber type: keep in case lut from DB debug is necessary
72  DTChamberId chid1(-2,3,1);
73  cout << "\n CHAMBER -2 3 1" << endl;
74  dtConfig->getDTConfigLUTs(chid1)->print();
75 
76  DTChamberId chid2(0,2,2);
77  cout << "\n CHAMBER 0 2 2" << endl;
78  dtConfig->getDTConfigLUTs(chid2)->print();
79 
80  DTChamberId chid3(-2,4,8);
81  cout << "\n CHAMBER -2 4 8" << endl;
82  dtConfig->getDTConfigLUTs(chid3)->print();
83 
84  DTChamberId chid4(1,4,12);
85  cout << "\n CHAMBER 1 4 12" << endl;
86  dtConfig->getDTConfigLUTs(chid4)->print();
87 
88  DTChamberId chid5(-2,4,5);
89  cout << "\n CHAMBER -2 4 5 " << endl;
90  dtConfig->getDTConfigLUTs(chid5)->print();
91 
92  DTChamberId chid6(0,4,2);
93  cout << "\n CHAMBER 0 4 2" << endl;
94  dtConfig->getDTConfigLUTs(chid6)->print();
95 
96  DTChamberId chid7(-2,4,9);
97  cout << "\n CHAMBER -2 4 9" << endl;
98  dtConfig->getDTConfigLUTs(chid7)->print();
99 
100  DTChamberId chid8(0,4,11);
101  cout << "\n CHAMBER 0 4 11" << endl;
102  dtConfig->getDTConfigLUTs(chid8)->print();
103 
104  DTChamberId chid9(-2,1,1);
105  cout << "\n CHAMBER -2 1 1" << endl;
106  dtConfig->getDTConfigLUTs(chid9)->print();
107 
108  DTChamberId chid10(-2,4,13);
109  cout << "\n CHAMBER -2 4 13" << endl;
110  dtConfig->getDTConfigLUTs(chid10)->print();
111 
112  DTChamberId chid11(1,4,4);
113  cout << "\n CHAMBER 1 4 4 " << endl;
114  dtConfig->getDTConfigLUTs(chid11)->print();
115 
116  DTChamberId chid12(-2,4,14);
117  cout << "\n CHAMBER -2 4 14" << endl;
118  dtConfig->getDTConfigLUTs(chid12)->print();
119 
120  DTChamberId chid13(0,4,10);
121  cout << "\n CHAMBER 0 4 10" << endl;
122  dtConfig->getDTConfigLUTs(chid13)->print();
123 
124  DTChamberId chid14(-2,4,11);
125  cout << "\n CHAMBER -2 4 11" << endl;
126  dtConfig->getDTConfigLUTs(chid14)->print();
127 
128  DTChamberId chid15(1,4,9);
129  cout << "\n CHAMBER 1 4 9" << endl;
130  dtConfig->getDTConfigLUTs(chid15)->print();
131 
132  DTChamberId chid16(0,1,2);
133  cout << "\n CHAMBER 0 1 2 " << endl;
134  dtConfig->getDTConfigLUTs(chid16)->print();
135 
136  DTChamberId chid17(-2,2,1);
137  cout << "\n CHAMBER -2 2 1" << endl;
138  dtConfig->getDTConfigLUTs(chid17)->print();
139 
140  DTChamberId chid18(0,3,2);
141  cout << "\n CHAMBER 0 3 2 " << endl;
142  dtConfig->getDTConfigLUTs(chid18)->print();
143 
144  DTChamberId chid19(-2,4,10);
145  cout << "\n CHAMBER 0 2 2" << endl;
146  dtConfig->getDTConfigLUTs(chid19)->print();
147 
148  DTChamberId chid20(0,4,14);
149  cout << "\n CHAMBER 0 4 14" << endl;
150  dtConfig->getDTConfigLUTs(chid20)->print();
151 
152  DTChamberId chid21(-2,4,12);
153  cout << "\n CHAMBER -2 4 12" << endl;
154  dtConfig->getDTConfigLUTs(chid21)->print();
155 
156  DTChamberId chid22(1,4,8);
157  cout << "\n CHAMBER 1 4 8" << endl;
158  dtConfig->getDTConfigLUTs(chid22)->print();
159 
160  DTChamberId chid23(-2,4,1);
161  cout << "\n CHAMBER -2 4 1" << endl;
162  dtConfig->getDTConfigLUTs(chid23)->print();
163 
164  DTChamberId chid24(0,4,6);
165  cout << "\n CHAMBER 0 4 6" << endl;
166  dtConfig->getDTConfigLUTs(chid24)->print();
167 
168  DTChamberId chid25(-2,4,4);
169  cout << "\n CHAMBER -2 4 4" << endl;
170  dtConfig->getDTConfigLUTs(chid25)->print();
171 
172  DTChamberId chid26(1,4,13);
173  cout << "\n CHAMBER 1 4 13 " << endl;
174  dtConfig->getDTConfigLUTs(chid26)->print();
175 
176 */
177  return;
178 
179 }
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:60
HLT enums.
void print() const
Print the setup.
T get() const
Definition: EventSetup.h:63
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.