1 |
jueugste |
1.1 |
#!/bin/bash
|
2 |
|
|
|
3 |
|
|
## script tp generate input files from the SE
|
4 |
|
|
## to be used with the prompt analysis framework
|
5 |
|
|
|
6 |
|
|
## path ti the home on the SE (should not be changed)
|
7 |
|
|
SEHOMEDIR="srm://t3se01.psi.ch:8443/srm/managerv2?SFN=/pnfs/psi.ch/cms/trivcat/store/user/jueugste"
|
8 |
|
|
|
9 |
|
|
## -------------------------------------------------------------
|
10 |
|
|
## these line have to be adjusted before usage
|
11 |
|
|
## write this input file
|
12 |
jueugste |
1.4 |
##FILE="input_Run2010B_Nov23.txt"
|
13 |
|
|
FILE="input_Run2010A.txt"
|
14 |
jueugste |
1.1 |
## this is the directory with the input files (relative to the SEHOMEDIR)
|
15 |
jueugste |
1.4 |
DIR="/384_patch2/Data/Run2010A_Dec07/"
|
16 |
|
|
##DIR="/384_patch2/MC/DYJetsToLL_TuneD6T_M-50Madgraph"
|
17 |
jueugste |
1.1 |
|
18 |
|
|
## get the listing and keep only the path and write it to the file
|
19 |
|
|
## append the dcap prefix to acces the data via ROOT
|
20 |
jueugste |
1.2 |
srmls $SEHOMEDIR/$DIR | awk '/.root/ {print "dcap://t3se01.psi.ch:22125" $2}' > $FILE
|