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
Copy file name to clipboardExpand all lines: doc/DevelopersTips.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -455,19 +455,25 @@ FROM (SELECT substring(ccdb_paths.path from '^qc\/\w*\/') as task,
455
455
456
456
Get the total number of versions and size from QCDB.
457
457
458
+
This can also be done on the MC machine : http://ali-qcdbmc-gpn.cern.ch:8083/browse/?report=true
459
+
Then the metadata for the run number is 1048595861
460
+
But of course stuff linked to run numbers won't work.
461
+
458
462
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
459
463
```sql
460
-
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;
464
+
selectsubstring(pathfrom'^qc_async\/\w*\/MO\/') as task, count(distinct path) from ccdb, ccdb_paths whereccdb_paths.pathid=ccdb.pathidANDccdb.metadata->'1048595860'in ('557926','557876','557862','557744','555259','555254','555232','555226','555208','555202','555187','555172','555160','555156','555124','555121','555071') group by task;
461
465
```
462
466
463
467
List the detectors and the number of versions (Qo+MO)
464
468
```sql
465
-
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;
469
+
selectsubstring(pathfrom'^qc_async\/\w*\/') as task, count( path) from ccdb, ccdb_paths whereccdb_paths.pathid=ccdb.pathidANDccdb.metadata->'1048595860'in ('557926','557876','557862','557744','555259','555254','555232','555226','555208','555202','555187','555172','555160','555156','555124','555121','555071') group by task;
466
470
```
467
471
468
472
List the tasks and the number of objects for each (in a number of runs)
473
+
--> this gives the number of tasks in general as well (number of rows)
474
+
--> replace MO by QO to see the checks
469
475
```sql
470
-
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;
476
+
selectsubstring(pathfrom'^qc_async\/\w*\/MO\/\w*\/') as task, count(distinct path) from ccdb, ccdb_paths whereccdb_paths.pathid=ccdb.pathidANDccdb.metadata->'1048595860'in ('557926','557876','557862','557744','555259','555254','555232','555226','555208','555202','555187','555172','555160','555156','555124','555121','555071') group by task;
471
477
```
472
478
Replace the | with tab in a text editor and paste in Excel to then manipulate it to know the number of tasks per det.
473
479
@@ -476,6 +482,12 @@ Total number of paths
476
482
selectcount(distinct ccdb_paths.pathid) from ccdb, ccdb_paths whereccdb_paths.pathid=ccdb.pathidANDccdb_paths.pathlike'qc/%';
477
483
```
478
484
485
+
Total number of tasks and checks
486
+
```sql
487
+
select distinct(substring(pathfrom'^qc_mc\/\w*\/MO\/\w*\/')) as task from ccdb_paths;
488
+
select distinct(substring(pathfrom'^qc_mc\/\w*\/QO\/\w*\/')) as task from ccdb_paths;
489
+
```
490
+
479
491
### Merge and upload QC results for all subjobs of a grid job
480
492
481
493
Please keep in mind that the file pattern in Grid could have changed since this was written.
0 commit comments