Jpp  15.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
JEvtReweightMupageParameterScan.sh File Reference

Go to the source code of this file.

Functions

do set_variable INDEX_WORKDIR ((INDEX_WORKDIR-1)) done set_variable DETX_FILE $
 
then fatal Number of input parameters (=${#PARAMETERS}) is incompatible with given formula
 
fi set_array MC_MERGE_FILES (find ${WORKDIR}-maxdepth 1-name"*.merge.root") if(($
 
then if (is_CCNikhef)
 
then fatal Please specify a
valid directory for local
scratch files other than tmp
fi 
elif (is_CCLyon)
 
skip elif ((BINFRAC< 1.0))
 
then if ((i+JOB_SIZE-1<=N_PARSETS))
 

Variables

 version
 
then echo Variable JPP_DIR
undefined exit fi source
$JPP_DIR setenv sh $JPP_DIR
set_variable 
IFS0
 
then usage $script< detector
file >< inputfile > fi case
set_array 
PARAMETERS
 
&set_variable FORMULA
 
&set_variable WORKDIR
 
&set_variable INPUT_FILES
 
set_variable DETX_FILE
 
*set_variable INDEX_WORKDIR
 
 while [[!-d ${argv[${INDEX_WORKDIR}]}]]
 
then echo printf s n
 
then rm
 
then echo Submitting
reweighting and histogram
comparison jobs to nikhef stbc
batch 
queue
 
do if [["$(JPrintHeader -f ${INPUT_FILE} -k simul --)"!=" 0"]]
 
then set_array INPUT_MC_FILES
 
then timer_start JAAMuonPostfit f
 
then echo
 
done set_variable OUTPUT_FILE
 
then set_variable EXEC_FILE
 
then set_array JOBRANGE
 
then chmod x
 

Function Documentation

do set_variable INDEX_WORKDIR ( (INDEX_WORKDIR-1)  )

Definition at line 61 of file JEvtReweightMupageParameterScan.sh.

64  {argv[1]}
then fatal Number of input parameters ( )

Definition at line 80 of file JEvtReweightMupageParameterScan.sh.

80 {#PARAMETERS}) is incompatible with given formula: ${FORMULA}"
is
Definition: JDAQCHSM.chsm:167
&set_variable FORMULA
then usage $script< detector file >< inputfile > fi case set_array PARAMETERS
fi set_array MC_MERGE_FILES ( find ${WORKDIR}-maxdepth 1-name"*.merge.root"  )

Definition at line 83 of file JEvtReweightMupageParameterScan.sh.

83  {WORKDIR} -maxdepth 1 -name "*.merge.root")
84 
85 if (( ${#MC_MERGE_FILES} != 0 )); then
then usage $script< detector file >< inputfile > nUtility script to create PDF and CDF of transition time distribution fi case set_variable WORKDIR
Definition: JLegolas.sh:31
then echo Enter input within $TIMEOUT_S seconds echo n User name
Definition: JCookie.sh:42
fi set_array MC_MERGE_FILES(find ${WORKDIR}-maxdepth 1-name"*.merge.root") if(($
then if ( is_CCNikhef  )
then fatal Please specify a valid directory for local scratch files other than tmp fi elif ( is_CCLyon  )
skip elif ( (BINFRAC< 1.0)  )
then if ( (i+JOB_SIZE-1<=N_PARSETS)  )

Variable Documentation

version
Initial value:
=1.0
script=${0##*/}
if [ -z $JPP_DIR ]

Definition at line 5 of file JEvtReweightMupageParameterScan.sh.

then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR set_variable IFS0
Initial value:
{IFS}
set_variable IFS $'\n'
set_variable: DEBUG REWEIGHT_MUPAGE_DEBUG 2
set_variable+ BATCH_PROCESSING REWEIGHT_MUPAGE_BATCH_PROCESSING 1
set_variable+ BATCH_LOGGING REWEIGHT_MUPAGE_BATCH_LOGGING 1
set_variable: QUEUE_SIZE REWEIGHT_MUPAGE_QUEUE_SIZE 3
set_variable: QUEUE_NAME REWEIGHT_MUPAGE_QUEUE_NAME /tmp/queue
set_variable: JOB_SIZE REWEIGHT_MUPAGE_JOB_SIZE 1
set_variable: TEST_TYPE1D REWEIGHT_MUPAGE_TEST_TYPE1D 0
set_variable: TEST_TYPE1D_PARAMETERS REWEIGHT_MUPAGE_TEST_TYPE1D_PARAMETERS 0.05
set_variable: TEST_TYPE2D REWEIGHT_MUPAGE_TEST_TYPE2D 2
set_variable: TEST_TYPE2D_PARAMETERS REWEIGHT_MUPAGE_TEST_TYPE2D_PARAMETERS 0.05
set_variable: SCRATCHDIR REWEIGHT_MUPAGE_SCRATCHDIR /tmp
set_variable: N_TRIGGERED_HITS_RANGE REWEIGHT_MUPAGE_N_TRIGGERED_HITS_RANGE "20 $((2**31))"
set_variable: COSTH_RANGE REWEIGHT_MUPAGE_COSTH_RANGE "-1.0 1.0"
set_variable: ENERGY_RANGE REWEIGHT_MUPAGE_ENERGY_RANGE "0.0 $((2.0**31))"
set_array PARAMETERS "1.0"
if do_usage $*
then usage $script< detector file >< inputfile > nUtility script to create PDF and CDF of transition time distribution fi case set_variable WORKDIR
Definition: JLegolas.sh:31
then echo Submitting reweighting and histogram comparison jobs to nikhef stbc batch queue
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:20
&set_variable FORMULA
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
then usage $script< detector file >< inputfile > fi case set_array PARAMETERS

Definition at line 22 of file JEvtReweightMupageParameterScan.sh.

then usage $script<detector file><inputfile> fi case set_array PARAMETERS

Definition at line 53 of file JEvtReweightMupageParameterScan.sh.

& set_variable FORMULA

Definition at line 54 of file JEvtReweightMupageParameterScan.sh.

& set_variable WORKDIR

Definition at line 55 of file JEvtReweightMupageParameterScan.sh.

set_array INPUT_FILES
Initial value:
{argv[2, $(( INDEX_WORKDIR - 1 )) ]}
set_variable FORMULA ${argv[ $(( INDEX_WORKDIR + 1 )) ]}
set_array PARAMETERS ${argv[ $(( INDEX_WORKDIR + 2 )), -1]}
esac
set_variable N_PAR $(echo -n ${FORMULA} | grep -oP "(^|[^x])\[[0-9]*\]" | cut -d'[' -f2- | sort -u | wc -l)
set_variable N_PARSETS $(( ${#PARAMETERS} / N_PAR ))
if (( ${#PARAMETERS} % N_PAR != 0 ))
then usage $script< detector file >< inputfile > nUtility script to create PDF and CDF of transition time distribution fi case set_variable WORKDIR
Definition: JLegolas.sh:31
*set_variable INDEX_WORKDIR
then echo
const int n
Definition: JPolint.hh:660
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:20
&set_variable FORMULA
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:47
double u[N+1]
Definition: JPolint.hh:739
then usage $script< detector file >< inputfile > fi case set_array PARAMETERS
do if[[!-f $ACOUSTICS_WORKDIR/${KEY}.txt]]
Definition: JAcoustics.sh:39

Definition at line 56 of file JEvtReweightMupageParameterScan.sh.

set_variable DETX_FILE

Definition at line 57 of file JEvtReweightMupageParameterScan.sh.

* set_variable INDEX_WORKDIR

Definition at line 57 of file JEvtReweightMupageParameterScan.sh.

while[[!-d ${argv[${INDEX_WORKDIR}]}]]

Definition at line 60 of file JEvtReweightMupageParameterScan.sh.

then echo printf s n
Initial value:
echo "----------------------------"
echo "Remove the above regular files? (y/n)"
read REUSE_MC_MERGE_FILES
if [[ ${REUSE_MC_MERGE_FILES} == "y" || ${REUSE_MC_MERGE_FILES} == "Y" ||
${REUSE_MC_MERGE_FILES} == "yes" || ${REUSE_MC_MERGE_FILES} == "Yes" || ${REUSE_MC_MERGE_FILES} == "YES" ]]
std::istream & read(std::istream &in, JTestSummary &summary, const char delimiter= ' ')
Read test summary.
then echo
fi set_array MC_MERGE_FILES(find ${WORKDIR}-maxdepth 1-name"*.merge.root") if(($

Definition at line 88 of file JEvtReweightMupageParameterScan.sh.

then rm
Initial value:
fi
fi
if [[ ${BATCH_PROCESSING} == 1 ]]
fi set_array MC_MERGE_FILES(find ${WORKDIR}-maxdepth 1-name"*.merge.root") if(($

Definition at line 98 of file JEvtReweightMupageParameterScan.sh.

then fatal No batch processing option available yet for CC Lyon else echo Submitting reweighting and histogram comparison jobs to local batch queue

Definition at line 111 of file JEvtReweightMupageParameterScan.sh.

then if[[${BATCH_PROCESSING}==1]]

Definition at line 136 of file JEvtReweightMupageParameterScan.sh.

then set_array INPUT_MC_FILES
Initial value:
else # DAQ-file
set_array INPUT_DAQ_FILES ${INPUT_DAQ_FILES[@]} ${INPUT_FILE}
fi
set_variable DAQ_POSTFIT_FILE ${WORKDIR}/DAQ.postfit.root
if ( ! reuse_file ${DAQ_POSTFIT_FILE} )
then usage $script< detector file >< inputfile > nUtility script to create PDF and CDF of transition time distribution fi case set_variable WORKDIR
Definition: JLegolas.sh:31
set_variable INPUT_FILE
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:20
Q DAQ
Definition: JDataQuality.sh:52
set_variable NUMBER_OF_ITERATIONS set_variable EPSILON cat acoustics_fit_parameters txt<< EOF $CONFIGURATION[*]Nmin=3;sigma_s=100.0e-6;stdev=10.0;mestimator=0;fixStrings=0;EOF for STRING in $STRINGS[*];do#fit stretching and(z) position of given string set_variable DETECTOR_TMP/tmp/detector_A.datx JEditDetector-a $DETECTOR-o $DETECTOR_TMP-r $STRING JEditDetector-a $DETECTOR-o $DETECTOR-k $STRING for MUL in 0.005 0.001;do DX_M=0.2 for((N=0;$N< $NUMBER_OF_ITERATIONS;++N));do CHI2[3]=$CHI2[1] fitPositionOfString $STRING Z $DX_M fitStretchingOfString $STRING $MUL if(($CHI2[3]-$CHI2[1]< $EPSILON));then break fi done if(($N >=$NUMBER_OF_ITERATIONS));then printf"warning: reached maximum number of iterations %d - converenge %7.3f\n"$N $(($CHI2[3]-$CHI2[1])) fi done JMergeDetector-a $DETECTOR-a $DETECTOR_TMP-o $DETECTOR rm-f $DETECTOR_TMP JConvertDetectorFormat-a $DETECTOR-o $DETECTOR-r-d 0 > &dev null done
then set_array INPUT_MC_FILES
then usage $script< string identifier >< detectorfile > event file(toashort file)+" "\nNote that the event files and toashort files should be one-to-one related." fi if (( $

Definition at line 137 of file JEvtReweightMupageParameterScan.sh.

then timer_start JAAMuonPostfit f

Definition at line 155 of file JEvtReweightMupageParameterScan.sh.

then echo

Definition at line 192 of file JEvtReweightMupageParameterScan.sh.

done set_variable OUTPUT_FILE
Initial value:
{MC_MERGE_FILE:r}.reweighting.${i}.root
if (( i % JOB_SIZE == 1 ))
data_type r[M+1]
Definition: JPolint.hh:742

Definition at line 308 of file JEvtReweightMupageParameterScan.sh.

then set_variable EXEC_FILE
Initial value:
{SCRATCHDIR}/${MC_MERGE_FILE:t:r}.reweighting.${i}.$((i+JOB_SIZE-1)).sh
else
set_variable EXEC_FILE ${SCRATCHDIR}/${MC_MERGE_FILE:t:r}.reweighting.${i}.${N_PARSETS}.sh
fi
set_variable START_JOB 1
unset SUBMIT_JOB
elif (( i % JOB_SIZE == 0 || i == N_PARSETS ))
then fatal Please specify a valid directory for local scratch files other than tmp fi elif(is_CCLyon)
data_type r[M+1]
Definition: JPolint.hh:742
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:20
then set_variable EXEC_FILE

Definition at line 313 of file JEvtReweightMupageParameterScan.sh.

then set_array JOBRANGE

Definition at line 323 of file JEvtReweightMupageParameterScan.sh.

then chmod x
Initial value:
if ( is_CCNikhef )
then set_variable EXEC_FILE

Definition at line 388 of file JEvtReweightMupageParameterScan.sh.