@@ -185,12 +185,12 @@ std::vector<o2::mid::ColumnData> makeFakeDeadChannels()
185185 // - expected refers to the expected fake dead channels obtained by Baptiste
186186 // by comparing the masked channels with the default masks.
187187 std ::vector < o2 ::mid ::ColumnData > fakeDeads ;
188- // fakeDeads.push_back({0, 3, 0x81, 0x0, 0x0, 0x0, 0x0 }); // 40; X1; expected: 0x0; data 10/2023
188+ fakeDeads .push_back ({0 , 3 , 0x81 , 0x0 , 0x0 , 0x0 , 0x1 }); // 40; X1; expected: 0x0; data 10/2023; data 06/2024; data 06/2024
189189 fakeDeads .push_back ({6 , 5 , 0x0 , 0x2a00 , 0x0 , 0x0 , 0x0 }); // 6c; X1; expected: 0x0; data 12/2023: 0x2e00
190190 fakeDeads .push_back ({7 , 5 , 0x0 , 0x6bff , 0x0 , 0x0 , 0x0 }); // 6e; X1; expected: 0x0; data 10/2023: 0x28ff
191191 fakeDeads .push_back ({9 , 5 , 0x0 , 0x0 , 0x0 , 0x0 , 0x2 }); // 60; Y2; expected: 0x0
192192 fakeDeads .push_back ({10 , 2 , 0x0 , 0x0 , 0x0 , 0x0 , 0xe0 }); // 31; Y2;
193- fakeDeads .push_back ({10 , 4 , 0x805f , 0x0 , 0x0 , 0x0 , 0x0 }); // 51; X2; expected: 0x905e; data 12/2023: 0x5f
193+ fakeDeads .push_back ({10 , 4 , 0x905f , 0x0 , 0x0 , 0x0 , 0x0 }); // 51; X2; expected: 0x905e; data 12/2023: 0x5f; data 06/2024
194194 fakeDeads .push_back ({14 , 5 , 0x0 , 0x0 , 0x0 , 0x0 , 0x80 }); // 69; Y2;
195195 fakeDeads .push_back ({16 , 2 , 0x0 , 0x0 , 0x0 , 0x0 , 0xe0 }); // 2c; Y2; expected: 0x80; data 10/2023: 0xa0
196196 fakeDeads .push_back ({16 , 3 , 0x0 , 0xf00 , 0x0 , 0x0 , 0x0 }); // 4e; X2; expected: 0x0; data 10/2023: 0x300
@@ -203,14 +203,14 @@ std::vector<o2::mid::ColumnData> makeFakeDeadChannels()
203203 fakeDeads .push_back ({44 , 5 , 0x2000 , 0x0 , 0x0 , 0x0 , 0x0 }); // ef; X1; expected: 0x0
204204 fakeDeads .push_back ({44 , 6 , 0x0 , 0x0 , 0x0 , 0x0 , 0xf }); // f8; Y1; expected: 0x0; data 10/2023: 0x7
205205 fakeDeads .push_back ({46 , 1 , 0x0 , 0x0 , 0x0 , 0x0 , 0xc0 }); // 91; Y2; expected: 0xc0; data 12/2023: 0x40
206- fakeDeads .push_back ({46 , 2 , 0x0 , 0x0 , 0x0 , 0x0 , 0xc0 }); // b1; Y2; expected: 0xe0; data 10/2023: 0xe0
206+ fakeDeads .push_back ({46 , 2 , 0x0 , 0x0 , 0x0 , 0x0 , 0xe0 }); // b1; Y2; expected: 0xe0; data 10/2023: 0xe0; data 06/2024
207207 fakeDeads .push_back ({46 , 3 , 0x0 , 0x0 , 0x0 , 0x0 , 0xc0 }); // c1; Y2;
208- fakeDeads .push_back ({46 , 4 , 0x0 , 0x0 , 0x0 , 0x0 , 0x58 }); // d1; Y2; expected: 0xe8; data 10/2023: 0x60
208+ fakeDeads .push_back ({46 , 4 , 0x0 , 0x0 , 0x0 , 0x0 , 0xf8 }); // d1; Y2; expected: 0xe8; data 10/2023: 0x60; data 06/2024
209209 fakeDeads .push_back ({46 , 5 , 0x0 , 0x0 , 0x0 , 0x0 , 0x60 }); // e1; Y2;
210- fakeDeads .push_back ({47 , 3 , 0x1 , 0x0 , 0x0 , 0x0 , 0x0 }); // c3; X2; expected: 0x9d; data 10/2023: 0x15
211- // fakeDeads.push_back({47, 5, 0x1, 0x0, 0x0, 0x0, 0x0}); // e3; X2; 0 (expected only)
212- fakeDeads .push_back ({52 , 2 , 0x0 , 0x0 , 0x0 , 0x0 , 0xf8 }); // ac; Y2; expected: 0xb0; data 10/2023: 0xf0
213- fakeDeads .push_back ({52 , 3 , 0x0 , 0x0 , 0x0 , 0x0 , 0x80 }); // cd; Y2; expected: 0x0
210+ fakeDeads .push_back ({47 , 3 , 0x5d , 0x0 , 0x0 , 0x0 , 0x0 }); // c3; X2; expected: 0x9d; data 10/2023: 0x15; data 06/2024
211+ fakeDeads .push_back ({47 , 5 , 0x1 , 0x0 , 0x0 , 0x0 , 0x0 }); // e3; data 06/2023; data 06/2024
212+ fakeDeads .push_back ({52 , 2 , 0x0 , 0x0 , 0x0 , 0x0 , 0xf8 }); // ac; Y2; expected: 0xb0; data 10/2023: 0xf0
213+ fakeDeads .push_back ({52 , 3 , 0x0 , 0x0 , 0x0 , 0x0 , 0x80 }); // cd; Y2; expected: 0x0
214214 // fakeDeads.push_back({64, 4, 0x0, 0x0, 0x0, 0x0, 0x40}); // d1; Y4; expected: 0x0; data 12/2023
215215 fakeDeads .push_back ({68 , 5 , 0x0 , 0x0 , 0x0 , 0x0 , 0xe2 }); // e9; Y4; expected: 0x0; data 10/2023: 0xe0
216216
@@ -238,9 +238,17 @@ void ccdbUtils(const char* what, long timestamp = 0, const char* inFilename = "m
238238 uploadBadChannels (ccdbUrl , timestamp , BadChannelCCDBPath );
239239 } else if (what == whats [2 ]) {
240240 queryBadChannels (ccdbUrl , timestamp , verbose , fakeDeadChannelCCDBPath );
241- } else if (what == whats [3 ]) {
242- uploadBadChannels (ccdbUrl , timestamp , fakeDeadChannelCCDBPath );
243- } else if (what == whats [4 ]) {
241+ return ;
242+ }
243+
244+ whats .emplace_back ("uploadfake" );
245+ if (what == whats .back ()) {
246+ uploadBadChannels (ccdbUrl , timestamp , fakeDeadChannelCCDBPath , makeFakeDeadChannels ());
247+ return ;
248+ }
249+
250+ whats .emplace_back ("querymasks" );
251+ if (what == whats .back ()) {
244252 queryDCSMasks (ccdbUrl , timestamp , verbose );
245253 } else if (what == whats [5 ]) {
246254 writeDCSMasks (ccdbUrl , timestamp );
0 commit comments