Jpp  18.5.2
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 fatal No archive $DIR fi
typeset T BUFFER ARRAY pushd
$DIR eval ls $ID $TYPE 
_ {VERSION}/\*/\*/\* 2> /dev/null | while read BUFFER
 
do set_variable A_ID
 
then git check attr all
$INPUT_FILE grep 
filter
 
then git lfs pull exclude
 
then fatal No corresponding
file 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 $*
&set_variable VERSION
Definition: getLs.sh:21
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
#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.

then if[[$(git rev-parse--is-inside-work-tree)=="true"]]

Definition at line 24 of file getFile.sh.

then let COUNTER
Initial value:
="0"
if [[ ! -d $DIR ]]
set_variable INPUT_FILE
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:47

Definition at line 44 of file getFile.sh.

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

Definition at line 55 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
then eval ls $DIR $ID $TYPE _
Definition: getArchive.sh:104

Definition at line 57 of file getFile.sh.

then git check attr all $INPUT_FILE grep filter

Definition at line 80 of file getFile.sh.

then git lfs pull exclude
Initial value:
= --include $INPUT_FILE
INPUT_FILE="$DIR/$INPUT_FILE"
popd
if [[ ! -f $INPUT_FILE ]]
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
Definition: JDataQuality.sh:76
then JFileTuna f $INPUT_FILE
Definition: file-Tuna.sh:66
set_variable INPUT_FILE

Definition at line 81 of file getFile.sh.

then fatal No corresponding file 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 94 of file getFile.sh.