Jpp  18.2.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
JDetector/plot-PMTParameters.sh File Reference

Go to the source code of this file.

Functions

then fatal Wrong number of
parameters fi set_variable
DETECTOR $argv[1] set_variable
INPUT_FILE $argv[2] 
if (($# > 2))
 
do echo n Creating graphics
for string $STRING 
for ((FLOOR=$FIRST_FLOOR;$FLOOR<=$LAST_FLOOR;FLOOR+=1))
 
do debug ($STRING, $FLOOR) $KEY" JPlot1D -f $
 

Variables

 version
 
then echo Variable JPP_DIR
undefined exit fi source
$JPP_DIR setenv sh $JPP_DIR
typeset A Y_RANGE 
Y_RANGE
 
then usage $script< detector
file >< PMTparametersfile >
nThe list of optional
parameters 
includes
 
then KEYS
 
do sput $STRING $FLOOR sget
MODULE for KEY in 
$KEYS [*]
 
 __pad1__
 

Function Documentation

then fatal Wrong number of parameters fi set_variable DETECTOR $argv [1] set_variable INPUT_FILE $argv [2] if ( ($# > 2)  )
do echo n Creating graphics for string $STRING for ( (FLOOR=$FIRST_FLOOR;$FLOOR<=$LAST_FLOOR;FLOOR+=1)  )
do debug (   $STRING,
  $FLOOR 
)

Definition at line 84 of file JDetector/plot-PMTParameters.sh.

87  {OUTPUT_FILE}:${MODULE}\.${KEY}\$ \
&set_variable OUTPUT_FILE

Variable Documentation

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

Definition at line 6 of file JDetector/plot-PMTParameters.sh.

then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR typeset A Y_RANGE Y_RANGE
Initial value:
=(EFFICIENCY " 0.0 1.5")
Y_RANGE+=(QE " 0.0 1.5")
Y_RANGE+=(gain " 0.0 1.5")
Y_RANGE+=(gainSpread " 0.0 1.0")
Y_RANGE+=(riseTime_ns " 0.0 15.0")
Y_RANGE+=(TTS_ns "-5.0 +5.0")
Y_RANGE+=(threshold " 0.0 1.0")
Y_RANGE+=(slope " 0.0 15.0")
Y_RANGE+=(saturation " 0.0 250.0")
Y_RANGE+=(slewing " 0.0 1.5")
set_variable OUTPUT_FILE $WORKDIR/pmt_parameters.root
set_variable DIR $JPP_DIR/examples/JDetector/
set_variable: FORMAT GRAPHICS_FORMAT gif
set_variable+ BATCH GRAPHICS_BATCH -B
if do_usage $*
then fatal Wrong number of parameters fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER set_variable DETID getDetector D $DETECTOR_ID O string $DIR JPlotPMTParameters a $DETECTOR P $INPUT_FILE o $OUTPUT_FILE d $DEBUG for KEY in TTS_ns QE gain gainSpread
then fatal Wrong number of arguments fi DIR
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR typeset A Y_RANGE Y_RANGE
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:21
then $JPP_DIR examples JDetector JSlewing P slewing
Definition: JSlewing.sh:43
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR
Definition: JLegolas.sh:20
&set_variable OUTPUT_FILE
then $JPP_DIR examples JDetector JToT o $OUTPUT_FILE n N $NPE P gain
Definition: JToT.sh:47
fi set_variable FILENAME $WORKDIR
Definition: datalogs.sh:34
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62

Definition at line 20 of file JDetector/plot-PMTParameters.sh.

then usage $script<detector file><PMTparametersfile> nThe list of optional parameters includes

Definition at line 43 of file JDetector/plot-PMTParameters.sh.

then KEYS
Initial value:
=($argv[3,-1])
else
KEYS=(${(k)Y_RANGE})
$DIR/JPlotPMTParameters
-o $OUTPUT_FILE
-d $DEBUG -A
eval `JPrintDetector -a $DETECTOR -O SUMMARY`
kill_child_processes_at_exit
typeset -Z 4 STRING
typeset -Z 2 FLOOR
then usage $script< detector identifier >< startdate\"YYYY-MM-DDHH:MM:SS\"><finaldate\"YYYY-MM-DDHH:MM:SS\"><QA/QCfile> fi case set_variable QAQC_TXT $argv[4]
Definition: JDataMonitor.sh:24
then fatal No hydrophone data file $HYDROPHONE_TXT fi sort gr k
clean eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY set_variable STRING
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
do JCanberra a $DETECTOR f $INPUT_FILE o $WORKDIR canberra[${EMITTER}\] root T $WORKDIR tripod txt V $WORKDIR sound_velocity txt M $WORKDIR mechanics txt H $WORKDIR hydrophone txt E $EMITTER $DISABLE d $DEBUG!done kill_child_processes_at_exit attach getModule a $DETECTOR typeset Z STRING typeset Z FLOOR for STRING in $STRINGS[*]
Definition: JCanberra.sh:68
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR typeset A Y_RANGE Y_RANGE
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:21
then JCalibrateToT a
Definition: JTuneHV.sh:113
*fatal Wrong number of arguments esac eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY set_variable FIRST_FLOOR
then JFileTuna f $INPUT_FILE
Definition: file-Tuna.sh:66
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:47
then set_variable MODULE getModule a $DETECTOR L $STRING $FLOOR JEditDetector a $DETECTOR M $MODULE add $X o $DETECTOR else echo No update of detector $DETECTOR
do set_variable MODULE getModule a $WORKDIR detector_a datx L $STRING JEditDetector a $WORKDIR detector_a datx M $MODULE setz o $WORKDIR detector_a datx JEditDetector a $WORKDIR detector_b datx M $MODULE setz o $WORKDIR detector_b datx done echo Output stored at $WORKDIR detector_a datx and $WORKDIR tripod_a txt JDrawDetector2D a $WORKDIR detector_a datx a $WORKDIR detector_b datx L BL o detector $FORMAT $BATCH JDrawDetector2D T $WORKDIR tripod_a txt T $WORKDIR tripod_b txt L BL o tripod $FORMAT $BATCH JCompareDetector a $WORKDIR detector_a datx b $WORKDIR detector_b datx o $WORKDIR abc root &dev null for KEY in X Y Z
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:46
source $JPP_DIR setenv csh $JPP_DIR &dev null eval JShellParser o a A
const JModule & getModule(const JDetector &detector, const JModuleLocation &location)
find module with a given string and floor number
then $DIR JPlotNPE PDG P
Definition: JPlotNPE-PDG.sh:62

Definition at line 51 of file JDetector/plot-PMTParameters.sh.

do sput $STRING $FLOOR sget MODULE for KEY in $KEYS[*]

Definition at line 82 of file JDetector/plot-PMTParameters.sh.

__pad1__

Definition at line 91 of file JDetector/plot-PMTParameters.sh.