|
1 | 1 | #!/bin/bash |
2 | 2 |
|
| 3 | +# default |
| 4 | +GRPMAG=o2sim_grp_b5m_128HB.root |
| 5 | + |
3 | 6 | if [[ $RUNNUMBER -le 518547 ]]; then |
4 | 7 | # default B GRP till run 518547 |
5 | 8 | GRPMAG=o2sim_grp_b5m_128HB.root |
6 | | - # default collision context till 13.06.2022 |
7 | | - COLLISIONCONTEXT=collisioncontext_Single_4b_2_2_2_noLR.root |
8 | 9 | fi |
9 | 10 |
|
10 | | -if [[ $RUNNUMBER -ge 517676 ]] && [[ $RUNNUMBER -le 517679 ]]; then |
11 | | - COLLISIONCONTEXT=collisioncontext_Single_3b_0_2_2.root |
| 11 | +# LHC22e: 519041 - 520099 |
| 12 | +if [[ $RUNNUMBER -ge 519041 ]] && [[ $RUNNUMBER -le 520099 ]]; then |
| 13 | + # +30kA/+6kA |
| 14 | + GRPMAG=o2sim_grp_b5p_128HB.root |
12 | 15 | fi |
13 | 16 |
|
14 | | -if [[ $RUNNUMBER -ge 517684 ]] && [[ $RUNNUMBER -le 517693 ]]; then |
15 | | - COLLISIONCONTEXT=collisioncontext_Single_3b_3_1_1.root |
| 17 | +# LHC22f: 520143 - 520473 |
| 18 | +if [[ $RUNNUMBER -ge 520143 ]] && [[ $RUNNUMBER -le 520473 ]]; then |
| 19 | + # +30kA/+6kA |
| 20 | + GRPMAG=o2sim_grp_b5p_128HB.root |
16 | 21 | fi |
17 | 22 |
|
18 | | -if [[ $RUNNUMBER -ge 519041 ]] && [[ $RUNNUMBER -le 519507 ]]; then |
19 | | - COLLISIONCONTEXT=collisioncontext_Single_16b_8_8_8_noLR.root |
| 23 | +# LHC22g: 520474 - 520477 |
| 24 | +if [[ $RUNNUMBER -ge 520474 ]] && [[ $RUNNUMBER -le 520477 ]]; then |
| 25 | + # +12kA/+6kA |
| 26 | + GRPMAG=o2sim_grp_b2p_128HB.root |
20 | 27 | fi |
21 | 28 |
|
22 | | -if [[ $RUNNUMBER -ge 519903 ]] && [[ $RUNNUMBER -le 520099 ]]; then |
23 | | - COLLISIONCONTEXT=collisioncontext_Single_4b_2_2_2_noLR.root |
| 29 | +# LHC22h: 520495 - 520509 |
| 30 | +if [[ $RUNNUMBER -ge 520495 ]] && [[ $RUNNUMBER -le 520509 ]]; then |
| 31 | + # 0kA/0kA |
| 32 | + GRPMAG=o2sim_grp_b0_128HB.root |
24 | 33 | fi |
25 | 34 |
|
26 | | -# B field update |
27 | | -if [[ $RUNNUMBER -ge 519041 ]]; then |
28 | | - GRPMAG=o2sim_grp_b5p_128HB.root |
| 35 | +# LHC22i: 520529 - 520542 |
| 36 | +if [[ $RUNNUMBER -ge 520529 ]] && [[ $RUNNUMBER -le 520542 ]]; then |
| 37 | + # -12kA/-6kA |
| 38 | + GRPMAG=o2sim_grp_b2m_128HB.root |
| 39 | +fi |
| 40 | + |
| 41 | +# LHC22j: 520543 - 521150 |
| 42 | +if [[ $RUNNUMBER -ge 520543 ]] && [[ $RUNNUMBER -le 521150 ]]; then |
| 43 | + # -30kA/-6kA |
| 44 | + GRPMAG=o2sim_grp_b5m_128HB.root |
| 45 | +fi |
| 46 | + |
| 47 | +# LHC22m: 521326 - 521907 |
| 48 | +if [[ $RUNNUMBER -ge 521326 ]]; then |
| 49 | + # -30kA/-6kA |
| 50 | + GRPMAG=o2sim_grp_b5m_128HB.root |
29 | 51 | fi |
30 | 52 |
|
31 | 53 | echo "GRP B field = $GRPMAG" |
32 | | -echo "filling scheme = $COLLISIONCONTEXT" |
33 | 54 |
|
34 | | -ln -s $COLLISIONCONTEXT collisioncontext.root |
35 | 55 | ln -s $GRPMAG o2sim_grp.root |
0 commit comments