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

Go to the source code of this file.

Functions

then fatal Invalid path $argv[1] fi if (($ID==0))
 
then fatal Invalid detector
identifier $argv[2] fi 
if (($RUN==0))
 
then if (($A_COUNTER > $COUNTER))
 
then fatal File $OUTPUT_FILE
already exists fi cp p
$INPUT_FILE $OUTPUT_FILE 
if (($?==0))
 

Variables

 script
 
then usage $script< path >
< detectoridentifier >< run >
< type >< outputfile >
nUtility script to retrieve
file from archive nNote that
extension from name of file in
archive is taken fi case
set_variable VERSION 
$argv [5]
 
let ID =" $argv[2]"
 
let RUN =" $argv[3]"
 
*fatal Wrong number of
arguments esac 
if [[!-d $DIR]]
 
then fatal Invalid run $argv[3]
fi setopt extendedglob typeset
Z8 ID let 
COUNTER
 
then typeset T BUFFER ARRAY
eval ls $DIR $ID $TYPE 
_ {VERSION}/\*/\*/\* 2> /dev/null | while read BUFFER
 
do set_variable A_ID
 
then fatal No corresponding
files found in archive $DIR fi 
OUTPUT_FILE
 

Function Documentation

then fatal Invalid path $argv [1] fi if ( ($ID==0)  )
then fatal Invalid detector identifier $argv [2] fi if ( ($RUN==0)  )
then if ( ($A_COUNTER > $COUNTER )
then fatal File $OUTPUT_FILE already exists fi cp p $INPUT_FILE $OUTPUT_FILE if ( ($?==0)  )

Variable Documentation

script
Initial value:
=${0##*/}
source ${0%${script}}ulib.sh
set_variable: DEBUG ARCHIVE_DEBUG 2
if do_usage $*
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:21
#define VERSION
Definition: elog-version.h:27
script
Definition: JAcoustics.sh:2
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62

Definition at line 5 of file getFile.sh.

Definition at line 19 of file getFile.sh.

let ID =" $argv[2]"

Definition at line 21 of file getFile.sh.

let RUN =" $argv[3]"

Definition at line 22 of file getFile.sh.

* fatal Wrong number of arguments esac if[[!-d $DIR]]

Definition at line 24 of file getFile.sh.

then let COUNTER
Initial value:
="0"
if [[ -d $DIR/$ID/$TYPE ]]
set_variable INPUT_FILE
then ls $DIR $ID
Definition: getArchive.sh:85
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:47

Definition at line 44 of file getFile.sh.

then typeset T BUFFER ARRAY eval ls $DIR $ID $TYPE _ {VERSION}/\*/\*/\* 2> /dev/null | while read BUFFER

Definition at line 51 of file getFile.sh.

Initial value:
{ARRAY[-6]}
set_variable A_TYPE ${ARRAY[-5]}
set_variable A_VERSION ${ARRAY[-4]#_}
let A_MINRUN=" ${ARRAY[-3]}"
let A_MAXRUN=" ${ARRAY[-2]}"
set_variable A_FILENAME ${ARRAY[-1]}
let A_COUNTER="${A_FILENAME:r}"
if (( $RUN >= $A_MINRUN && $RUN <= $A_MAXRUN ))
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:21
then eval ls $DIR $ID $TYPE _
Definition: getArchive.sh:104

Definition at line 53 of file getFile.sh.

then fatal No corresponding files found in archive $DIR fi OUTPUT_FILE
Initial value:
=.${INPUT_FILE:e}
if [[ -f $OUTPUT_FILE ]]
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
Definition: JDataQuality.sh:76
set_variable INPUT_FILE

Definition at line 77 of file getFile.sh.