You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
selectcount(distinct ccdb_paths.pathid) from ccdb, ccdb_paths whereccdb_paths.pathid=ccdb.pathidANDccdb_paths.pathlike'qc/%';
449
-
```
450
-
451
446
Number of versions: check the web interface of the qcdb.
452
447
453
-
List the tasks and the number of objects for each (in a number of runs)
454
-
```sql
455
-
selectsubstring(pathfrom'^qc\/\w*\/MO\/\w*\/') as task, count(distinct path) from ccdb, ccdb_paths whereccdb_paths.pathid=ccdb.pathidANDccdb.metadata->'1048595860'in ('539908') group by task;
456
-
```
457
-
458
448
List the tasks of a certain class in a certain run
459
449
```
460
450
select substring(path from '^qc\/\w*\/MO\/\w*\/') as task from ccdb, ccdb_paths where ccdb_paths.pathid = ccdb.pathid AND ccdb.metadata -> '1048595860' in ('539908') and ccdb.metadata -> '809471350' = 'o2::quality_control::postprocessing::SliceTrendingTask' group by task;
461
451
```
462
452
463
-
List the detectors and the number of objects for each (in a list of runs)
464
-
```sql
465
-
selectsubstring(pathfrom'^qc\/\w*\/MO\/') as task, count(distinct path) from ccdb, ccdb_paths whereccdb_paths.pathid=ccdb.pathidANDccdb.metadata->'1048595860'in ('541814','541620','541616','541600','541599','541598','541597','541595','541486','541485','541468','541466','540894','540893','540888','540887','540884','540882','540881','540879','540855','540854','540852','540851','540848','540847','540846','540834','540831','540825','540824','540781','540778','540766','540721','540711','540646','540644','540643','540602') group by task;
466
-
```
467
-
468
-
List the detectors and the number of versions
469
-
```sql
470
-
selectsubstring(pathfrom'^qc\/\w*\/') as task, count( path) from ccdb, ccdb_paths whereccdb_paths.pathid=ccdb.pathidANDccdb.metadata->'1048595860'in ('541814','541620','541616','541600','541599','541598','541597','541595','541486','541485','541468','541466','540894','540893','540888','540887','540884','540882','540881','540879','540855','540854','540852','540851','540848','540847','540846','540834','540831','540825','540824','540781','540778','540766','540721','540711','540646','540644','540643','540602') group by task;
471
-
```
472
-
473
453
List average number of version per run per detector ?
474
454
475
455
```sql
@@ -484,6 +464,31 @@ FROM (SELECT substring(ccdb_paths.path from '^qc\/\w*\/') as task,
484
464
) subquery ;
485
465
```
486
466
467
+
#### for the review
468
+
469
+
Get the total number of versions and size from QCDB.
470
+
471
+
List the detectors and the number of objects for each (in a list of runs produced in BK), replace MO by QO for the number of quality objects
472
+
```sql
473
+
selectsubstring(pathfrom'^qc_async\/\w*\/MO\/') as task, count(distinct path) from ccdb, ccdb_paths whereccdb_paths.pathid=ccdb.pathidANDccdb.metadata->'1048595860'in ('545367','545345','545312','545311','545289','545262','545249','545246','545223','545222','545210','545185','545184','545171','544991','544968','544963','544947','544917','544896','544886','544868','544813','544794','544742','544693','544583','544582','544551','544549','544518','544491','544476','544474','544454','544391','544389','543873','543872','543818','543734','543733','543732','543536','543515','543469','543467') group by task;
474
+
```
475
+
476
+
List the detectors and the number of versions (Qo+MO)
477
+
```sql
478
+
selectsubstring(pathfrom'^qc_async\/\w*\/') as task, count( path) from ccdb, ccdb_paths whereccdb_paths.pathid=ccdb.pathidANDccdb.metadata->'1048595860'in ('545367','545345','545312','545311','545289','545262','545249','545246','545223','545222','545210','545185','545184','545171','544991','544968','544963','544947','544917','544896','544886','544868','544813','544794','544742','544693','544583','544582','544551','544549','544518','544491','544476','544474','544454','544391','544389','543873','543872','543818','543734','543733','543732','543536','543515','543469','543467') group by task;
479
+
```
480
+
481
+
List the tasks and the number of objects for each (in a number of runs)
482
+
```sql
483
+
selectsubstring(pathfrom'^qc_async\/\w*\/MO\/\w*\/') as task, count(distinct path) from ccdb, ccdb_paths whereccdb_paths.pathid=ccdb.pathidANDccdb.metadata->'1048595860'in ('545367','545345','545312','545311','545289','545262','545249','545246','545223','545222','545210','545185','545184','545171','544991','544968','544963','544947','544917','544896','544886','544868','544813','544794','544742','544693','544583','544582','544551','544549','544518','544491','544476','544474','544454','544391','544389','543873','543872','543818','543734','543733','543732','543536','543515','543469','543467') group by task;
484
+
```
485
+
Replace the | with tab in a text editor and paste in Excel to then manipulate it to know the number of tasks per det.
486
+
487
+
Total number of paths
488
+
```sql
489
+
selectcount(distinct ccdb_paths.pathid) from ccdb, ccdb_paths whereccdb_paths.pathid=ccdb.pathidANDccdb_paths.pathlike'qc/%';
490
+
```
491
+
487
492
### Merge and upload QC results for all subjobs of a grid job
488
493
489
494
Please keep in mind that the file pattern in Grid could have changed since this was written.
0 commit comments