Jpp  16.0.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JBeaconSimulator.sh
Go to the documentation of this file.
1 #!/bin/bash
2 
3 #
4 # \author mjongen
5 #
6 # compile
7 make JBeaconSimulator
8 if [ ! "$?" == "0" ]
9 then
10  echo "Unsuccesful compilation"
11  exit 1
12 fi
13 
14 PMT=0
15 OPENING_ANGLE=2
16 FLOOR=2
17 
18 # run JBeaconSimulator for PMT${PMT} on the source DOM with a large opening angle
19 # we run both tracking and MCMCM
20 
21 echo "MCMC"
22 ./JBeaconSimulator -N 10000 -a $ARCA14DET -o out_MCMC.root -s "1 1" -t "1 ${FLOOR} ${PMT}" -opening-angle ${OPENING_ANGLE} -m 3 -write-paths -stepsizes "8 5 4" -target-step-size-deg 1 -tangential-step-size-deg 0.1
23 #-stepsizes "0.3 0.5 1 2 3"
24 
25 #echo "tracker"
26 #./JBeaconSimulator -N 50000000 -tracker -a $ARCA14DET -o out_tracker.root -s "1 1" -t "1 ${FLOOR} ${PMT}" -opening-angle ${OPENING_ANGLE} #-write-paths
27 
28 ./JMarkovPathReader -f out_MCMC_PMT${PMT}.paths
29 ./JMarkovPathReader -f out_tracker_PMT${PMT}.paths
30 
31 # then we open the resulting files to check if they give similar results
32 root -l out_tracker_PMT${PMT}.root out_MCMC_PMT${PMT}.root out_tracker_PMT${PMT}.paths.root out_MCMC_PMT${PMT}.paths.root ob.C
static const JPBS_t PMT(3, 4, 2, 3)
PBS of photo-multiplier tube (PMT)
o $QUALITY_ROOT d $DEBUG!JPlot1D f
Definition: JDataQuality.sh:66
then JShowerPostfit f $INPUT_FILE o $OUTPUT_FILE N
exit
Definition: JPizza.sh:36
then echo
then JConvertDetectorFormat a $DETECTOR[1] o
do JPlot2D f $WORKDIR detector root
then JCalibrateToT a
Definition: JTuneHV.sh:116
bool write(const Vec &v, std::ostream &os)
Write a Vec(tor) to a stream.
Definition: io_ascii.hh:154