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

Go to the source code of this file.

Functions

do set_array DAQHEADER (JPrintDAQHeader-f ${INPUT_FILE}) set_variable DETID $
 
then cp $PMT_PARAMETER_FILE
$OUTPUT_PMT else echo
$PMT_PARAMETER_FILE
$OUTPUT_PMT fi fi 
if ((1))
 

Variables

 version
 
then echo Variable JPP_DIR
undefined exit fi source
$JPP_DIR setenv sh $JPP_DIR 
set_variable
 
then usage $script< detector
file >< inputfiles > n Note
that if more than one input
file is 
specified
 
then usage $script< detector
file >< inputfiles > n Note
that if more than one input
file is all other arguments
must be provided fi case
set_variable 
PMT_PARAMETER_FILE
 
&set_variable WORKDIR
 
&set_array INPUT_FILES
 
set_variable DETECTOR_FILE ="$OPTARG"
 
*set_variable DETECTOR_FILE
set_array INPUT_FILES $argv[2,-3]
set_variable WORKDIR $argv[-2]
set_variable
PMT_PARAMETER_FILE $argv[-1]
esac timer_start set_variable
PMT_DIR $WORKDIR PMTfiles
set_variable CAL_DIR $WORKDIR
caldata set_variable TOT_DIR
$WORKDIR fitdata for DIR in
$PMT_DIR $CAL_DIR 
$TOT_DIR
 
do if [[!-d ${DIR}]]
 
then echo Creating output directory
 
set_variable RUNID
 
then echo WARNING
 
skip continue
 
fi set_array RUN_NUMBERS
 
then JCalibrateToT a
 

Function Documentation

do set_array DAQHEADER ( JPrintDAQHeader-f ${INPUT_FILE )

Definition at line 85 of file JTuneHV.sh.

85  {INPUT_FILE})
do set_array DAQHEADER(JPrintDAQHeader-f ${INPUT_FILE}) set_variable DETID $
Definition: JTuneHV.sh:85
then set_variable DETID
Definition: JEditTuneHV.sh:63
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 INPUT_FILE
then cp $PMT_PARAMETER_FILE $OUTPUT_PMT else echo $PMT_PARAMETER_FILE $OUTPUT_PMT fi fi if ( (1)  )

Variable Documentation

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

Definition at line 5 of file JTuneHV.sh.

then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR set_variable

Definition at line 34 of file JTuneHV.sh.

then usage $script<detector file><inputfiles> n Note that if more than one input file is specified

Definition at line 36 of file JTuneHV.sh.

then usage $script<detector file><inputfiles> n Note that if more than one input file is all other arguments must be provided fi case set_variable PMT_PARAMETER_FILE

Definition at line 36 of file JTuneHV.sh.

& set_variable WORKDIR

Definition at line 41 of file JTuneHV.sh.

& set_array INPUT_FILES

Definition at line 42 of file JTuneHV.sh.

a DETECTOR_FILE ="$OPTARG"

Definition at line 43 of file JTuneHV.sh.

* set_variable DETECTOR_FILE set_array INPUT_FILES $argv [2,-3] set_variable WORKDIR $argv [-2] set_variable PMT_PARAMETER_FILE $argv [-1] esac timer_start set_variable PMT_DIR $WORKDIR PMTfiles set_variable CAL_DIR $WORKDIR caldata set_variable TOT_DIR $WORKDIR fitdata for DIR in $PMT_DIR $CAL_DIR $TOT_DIR

Definition at line 43 of file JTuneHV.sh.

Definition at line 63 of file JTuneHV.sh.

then echo Creating output directory

Definition at line 83 of file JTuneHV.sh.

set_variable RUNID
Initial value:
if [ -z $RUNID ]
do set_array DAQHEADER(JPrintDAQHeader-f ${INPUT_FILE}) set_variable DETID $
Definition: JTuneHV.sh:85

Definition at line 87 of file JTuneHV.sh.

then echo WARNING

Definition at line 91 of file JTuneHV.sh.

skip continue

Definition at line 92 of file JTuneHV.sh.

fi set_array RUN_NUMBERS
Initial value:
set_variable FILENAME ${${INPUT_FILE##*/}%.*}
set_variable OUTPUT_PMT $PMT_DIR/${FILENAME}_PMT.txt
set_variable OUTPUT_CALTOT $CAL_DIR/${FILENAME}_calToT.root
set_variable OUTPUT_FITTOT $TOT_DIR/${FILENAME}_fitToT.root
set_variable LOG_FITTOT $TOT_DIR/${FILENAME}_fitToT.log
if [ ! -z $PMT_PARAMETER_FILE ]
*set_variable DETECTOR_FILE set_array INPUT_FILES $argv[2,-3] set_variable WORKDIR $argv[-2] set_variable PMT_PARAMETER_FILE $argv[-1] esac timer_start set_variable PMT_DIR $WORKDIR PMTfiles set_variable CAL_DIR $WORKDIR caldata set_variable TOT_DIR $WORKDIR fitdata for DIR in $PMT_DIR $CAL_DIR $TOT_DIR
Definition: JTuneHV.sh:43
fi set_array RUN_NUMBERS
Definition: JTuneHV.sh:95
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 INPUT_FILE
then set_variable RUNID
Definition: JEditTuneHV.sh:67

Definition at line 95 of file JTuneHV.sh.

then JFitK40 d $DEBUG f mergecalibrateK40_searecalibration_evenFix root a
Initial value:
-C ${TIMESLICE_SELECTOR}
-o ${OUTPUT_CALTOT} --!
fi
if (( 1 ))
o $QUALITY_ROOT d $DEBUG!JPlot1D f
Definition: JDataQuality.sh:66
set_variable DETECTOR_FILE
Definition: JTuneHV.sh:43
static const double C
Physics constants.
then JConvertDetectorFormat a $DETECTOR[1] o
set_variable INPUT_FILE

Definition at line 116 of file JTuneHV.sh.