]>
Commit | Line | Data |
---|---|---|
f208787c | 1 | #!/bin/bash |
2 | # List all CDB paths present in the current OCDB folder | |
3 | # The script is meant to check the different CDB path in the reference OCDB | |
4 | # ($ALICE_ROOT) to make sure all entries are copied to the destination OCDB | |
5 | # folder. In particular we are interested in the second of the three levels | |
6 | # composing the CDB-path since usually the copy from one OCDB to the other | |
7 | # is done by lines of the type | |
8 | # TList* l = cdb->GetAll("*/Calib/*"); | |
9 | # TList* l = cdb->GetAll("*/Align/*"); | |
10 | # (see macro CDBToGrid.C) | |
11 | # | |
12 | ||
13 | stdfname="Run0_999999999" | |
14 | msg="List of second level strings for CDB entries:" | |
15 | cd $1 | |
16 | for i in `find ./ -name 'Run*' | grep -v svn` | |
17 | do | |
18 | fname=`echo "$i" | cut -d/ -f5` | |
19 | if(expr match "$fname" "Run0." > /dev/null) | |
20 | then | |
21 | if [[ $fname == Run0_99999999* ]] | |
22 | then | |
23 | second=`echo "$i" | cut -d/ -f3` | |
24 | if [[ $second != Align ]] && [[ $second != Calib ]] && [[ $second != Config ]] | |
25 | then | |
26 | #printf "$second in $i\n" | |
27 | msg="$msg | |
28 | $second for entry $i" | |
29 | fi | |
30 | else | |
31 | echo "Warning: $i is not a good file name for OCDB" | |
32 | fi | |
33 | fi | |
34 | done | |
35 | echo "$msg" | |
36 |