Commit 1a2d95be authored by CLICdp user's avatar CLICdp user
Browse files

Update scripts

parent 14fa6bfb
# set general settings
[Corryvreckan]
log_level = "WARNING"
log_format = "DEFAULT"
number_of_tracks=100000
DUT = "006_CP_CC"
reference = "W0013_G03"
[Clicpix2EventLoader]
#log_level=TRACE
[Timepix3EventLoader]
eventLength = 4us
#log_level=TRACE
[Timepix3Clustering]
[SpatialClustering]
detectors = "006_CP_CC"
[TestAlgorithm]
makeCorrelations=true
timingCut=2ms
[BasicTracking]
minHitsOnTrack=5
spatialCutDUT=800um
timingCutDUT=4ms
#[SpatialTracking]
#spatialCut=800um
#minHitsOnTrack=5
[DUTAnalysis]
#[Prealignment]
#log_level=INFO
#detectors="006_CP_CC", "W0013_G03"
#[Alignment]
#alignmentMethod=1
#log_level=DEBUG
#[Millepede]
#log_level=INFO
[OnlineMonitor]
update = 200
[Ignore]
number_of_tracks = 50000
alignmentMethod = 0
iterations = 10
[ClicpixAnalysis]
#!/bin/bash
# Where the code is and which run to analyse
TBCODE=..
CORRY=/home/telescope/corryvreckan
RUN=${1}
# Set up the arguments to be passed to the testbeam code
CONDFILE=${TBCODE}/cond/Alignment${RUN}.dat
HISTOFILE=${TBCODE}/histos/alignmentHistogramsRun${RUN}.root
INPUTFILE=${TBCODE}/pixels/pixelsRun${RUN}.root
NEVENTS=-1
# 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
# Set up the arguments to be passed to Corryvreckan
HISTOGRAMFILE=${CORRY}/macros/histograms_${RUN}.root
INPUTDIR_TPX=/data/tbApril2018/data/Run${RUN}
INPUTDIR_CPX=/data/tbApril2018/clicpix2/Run${RUN}
${CORRY}/bin/corry -c align.conf \
-o detectors_file=${2} \
-o detectors_file_updated=${3} \
-o histogramFile=${HISTOGRAMFILE} \
-o Timepix3EventLoader.inputDirectory=${INPUTDIR_TPX} \
-o Clicpix2EventLoader.inputDirectory=${INPUTDIR_CPX} \
# 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} -a 0
#mv alignmentOutput.dat ${CONDFILE}
#!/bin/bash
CORRY=/home/telescope/corryvreckan
RUN=${1}
ALIGNMENT=28300
# Set up the arguments to be passed to Corryvreckan
CONDFILE=${CORRY}/cond/Alignment${ALIGNMENT}_aligning.conf
HISTOGRAMFILE=${CORRY}/macros/histograms.root
GEOMETRY=${CORRY}/cond/Alignment_April2018_1.conf
HISTOGRAMFILE=${CORRY}/macros/histograms_${RUN}.root
INPUTDIR_TPX=/data/tbApril2018/data/Run${RUN}
INPUTDIR_CPX=/data/tbApril2018/clicpix2/Run${RUN}
${CORRY}/bin/corry -c telescope.conf \
-o histogramFile = "histograms-${1}.root" \
-o detectors_file=${CONDFILE} \
-o detectors_file=${GEOMETRY} \
-o histogramFile=${HISTOGRAMFILE} \
-o Timepix3EventLoader.inputDirectory=${INPUTDIR_TPX} \
-o Clicpix2EventLoader.inputDirectory=${INPUTDIR_CPX} \
###-o OnlineMonitor.canvasTitle="\"CLICdp Online Monitor - Run ${1}\""
-o OnlineMonitor.canvasTitle="\"CLICdp Online Monitor - Run ${1}\""
......@@ -2,35 +2,37 @@
[Corryvreckan]
log_level = "WARNING"
log_format = "DEFAULT"
number_of_tracks=100000
DUT = "006_CP_CC"
reference = "W0013_G03"
detectors_file_updated = "alignmentOutput.conf"
[Clicpix2EventLoader]
masked = W0013_D04, W0013_E03, W0013_G02, W0013_G03, W0013_J05, W0013_L09, W0013_F09
#log_level=TRACE
#discardZeroToT = true
[Timepix3EventLoader]
eventLength = 2us
eventLength = 4us
#log_level=TRACE
[Timepix3Clustering]
[SpatialClustering]
detectors = "006_CP_CC"
[TestAlgorithm]
makeCorrelations=true
timingCut=2ms
[BasicTracking]
minHitsOnTrack=5
[TestAlgorithm]
spatialCutDUT=800um
timingCutDUT=4ms
[DUTAnalysis]
#[Prealignment]
[OnlineMonitor]
update = 200
[ClicpixAnalysis]
[Ignore]
number_of_tracks = 50000
alignmentMethod = 0
iterations = 10
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment