Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
b949add6
Commit
b949add6
authored
Apr 25, 2016
by
Daniel Hynds
Browse files
Merge branch 'master' of
ssh://gitlab.cern.ch:7999/CLICdp/tbAnalysis
sa
Former-commit-id: 381d94b2c6dbd8f824acf70e24ee5376a0c9b755
parents
d6295511
4fc4ece1
Changes
1
Hide whitespace changes
Inline
Side-by-side
branches/trunk/macros/analyse.sh
View file @
b949add6
#!/bin/bash
# Where the code is and which run to analyse
TBCODE
=
..
RUN
=
1100
RUN
=
${
1
}
DATADIR
=
${
TBCODE
}
/example/Run
${
RUN
}
CONDFILE
=
${
TBCODE
}
/cond/
a
lignment
Run
${
RUN
}
.dat
# Set up the arguments to be passed to the testbeam code
CONDFILE
=
${
TBCODE
}
/cond/
A
lignment
${
RUN
}
.dat
HISTOFILE
=
${
TBCODE
}
/histos/histogramsRun
${
RUN
}
.root
INPUTFILE
=
${
TBCODE
}
/pixels/pixelsRun
${
RUN
}
.root
NEVENTS
=
-1
EVENTTIME
=
0.00005
STARTTIME
=
0
${
TBCODE
}
/bin/tbAnalysis
-d
${
DATADIR
}
-c
${
CONDFILE
}
-n
${
NEVENTS
}
-h
${
HISTOFILE
}
-t
${
EVENTTIME
}
-o
${
STARTTIME
}
# If the alignment file for this run does not exist, get it from the DB
if
[
!
-f
${
CONDFILE
}
]
then
while
read
run align dut thl angle
do
if
[
"
$run
"
==
"
$RUN
"
]
then
CONDFILE
=
${
TBCODE
}
/cond/Alignment
${
align
}
.dat
echo
New cond file is
${
CONDFILE
}
fi
done
<<<
"
$(
grep
${
RUN
}
runListAngledHVCMOS.dat
)
"
fi
# Launch the testbeam analysis and replace the original alignment file with the new one
${
TBCODE
}
/bin/tbAnalysis
-c
${
CONDFILE
}
-n
${
NEVENTS
}
-h
${
HISTOFILE
}
-t
${
INPUTFILE
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment