-
Notifications
You must be signed in to change notification settings - Fork 0
/
analyze.cwl
40 lines (34 loc) · 924 Bytes
/
analyze.cwl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
cwlVersion: v1.0
class: CommandLineTool
baseCommand: /bin/zsh
requirements:
DockerRequirement:
dockerPull:
clelange/cmssw:9_2_14
InitialWorkDirRequirement:
listing:
- $(inputs.code)
- $(inputs.data)
inputs:
data:
type: Directory
code:
type: Directory
stdout: analyze.log
outputs:
analyze.log:
type: stdout
# plotter.root:
# type: File
# outputBinding:
# glob: "results/plotter.root"
arguments:
- prefix: -c
valueFrom: |
cp -r ../../code/analyzeNplot .; \
scram b; \
cd ../../code/analyzeNplot; \
mkdir -p ../../../results; \
python runBJetEnergyPeak.py -i /store/user/cmsdas/2018/long_exercises/TopMass -j data/samples_Run2016_25ns.json -o results -n 8
python plotter.py -i results -j data/samples_Run2016_25ns.json -l 35867.
python getNumberOfEvents.py -i results -o table -j data/samples_Run2016_25ns.json