code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash # # This script checks the java version and bails if it's less # than Java6 (because we use @Override annotations on interface # overriding methods. It then proceeds to do a maven build that # first cleans, then builds the normal lifecycle through compilation # unit testing (if available) up to packaging. ...
Shell
#!/bin/sh adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format -
Shell
#!/bin/sh # # Copyright 2013 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
Shell
#!/bin/sh adb shell pm clear com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi MAC_UNAME="Darwin" if [[ "`uname`" == ${MAC_UNAME} ]]; then DATE_FORMAT="%Y-%m-%dT%H:%M:%S" else DATE_FORMAT="%Y-%m-%d %H:%M:%S" fi if [ -z "$1" ]; then NOW_DATE=$(date "+${DATE_FORMAT}") echo Please provide a mock time in the format \"${NOW_DATE}\" or \"d\" to del...
Shell
#!/bin/sh # Remember VERBOSE only works on debug builds of the app adb shell setprop log.tag.iosched_SyncHelper VERBOSE adb shell setprop log.tag.iosched_SessionsHandler VERBOSE adb shell setprop log.tag.iosched_BitmapCache VERBOSE
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell "echo '$*' | sqlite3 -header -column /data/data/com.google.android.apps.iosched/databases/schedule.db"
Shell
#!/bin/sh # Sessions list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/sessions # Vendors list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/vendors # Session detail #adb shell am start -a...
Shell
#!/usr/bin/env bash ############################################################################## ## ## Gradle start up script for UN*X ## ############################################################################## # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to ...
Shell
export myenvsh=$(echo \ /hera/alice/xlu/alice/script/gitEnv-inuse-PWGJE-XGLUtils-STEER.sh \ /home/xlu/Workspace/alice/alice-env.sh \ ) #/home/xlu/workspace/software/alice-env.sh \ #/u/xlu/onlyforUpdage-alice-env.sh #/hera/alice/xlu/alice/script/setupJet.sh #/d/alice11/xlu/alice/alice-env.sh for ii in $myenvsh do if...
Shell
#!/bin/bash # Automatically created by alice-env.sh on Wed Aug 20 17:43:53 BST 2014 # # Triads: they start from 1 (not 0) and must be consecutive # # Format: # TRIAD[n]='ROOT Geant3 AliRoot [FastJet[_FJContrib]]' # # FastJet is optional. FJ Contrib is optional with FastJet 2 and mandatory with # FastJet 3. # # No ...
Shell
# # alice-env.sh -- by Dario Berzano <dario.berzano@cern.ch> # # Prepares the environment for running the ALICE Framework, in particular: # # AliEn # ROOT # Geant 3 # AliRoot # # It optionally supports: # # FastJet # FastJet Contrib # # This script is tested to work under Ubuntu and OS X. For more informati...
Shell
#!/bin/bash # Automatically created by alice-env.sh on Wed Aug 20 17:43:53 BST 2014 # # Triads: they start from 1 (not 0) and must be consecutive # # Format: # TRIAD[n]='ROOT Geant3 AliRoot [FastJet[_FJContrib]]' # # FastJet is optional. FJ Contrib is optional with FastJet 2 and mandatory with # FastJet 3. # # No ...
Shell
#export dataset=$(echo LHC10d) export dataset=$(echo 126432 126088) export datatype=pp export taskname=ESDTRDsignal
Shell
#drawpar on coherent fit output dsets=$(echo $(pwd)/*/X*/coherentFit) dd0=$(pwd) #GSI absd=/hera/alice/xlu/workspace/hera2dbetabloch predo="source $myenvsh -n" #HD #absd=/alidata60/alice_u/lu/workspace/hera2dbetabloch #not necessary if myload is called #predo= #"source /alidata60/alice_u/lu/workspace/source.sh; cd ...
Shell
data=$1 klogx=$2 echo $data $klogx #data root -q -l -b 'drawFractionRatio.C("'$data'",0,"ETA0_'$data'.root","ETA1_'$data'.root","ETA2_'$data'.root","ETA3_'$data'.root","","",1,"ratio to (I)",3,'$klogx',0)' root -q -l -b 'drawFractionRatio.C("'$data'",1,"ETA0_'$data'.root","ETA1_'$data'.root","ETA2_'$data'.root","ETA3...
Shell
cut=$1 files=$2 grep fBeta $files | grep outmn2d_post_iBeta100 | tr -s ',' ' ' | awk '{if($16>'$cut') print $1,$14,$15,$16}' redchiCut=$cut cutdir=patch_cut_moveaway_$redchiCut mkdir -p $cutdir cat >> $cutdir/log <<EOF $(date) EOF for ii in $(grep fBeta $files| grep outmn2d_post_iBe...
Shell
doexec() { tag=$1 cp ../extractHist$tag . cat > subdo$tag.sh <<EOF uname -a source /hera/alice/xlu/alice/script/hera-evn.sh -n cd $dd echo ldd ldd extractHist$tag echo echo ls ls echo echo pwd pwd echo echo go ./extractHist$tag $dir0/$ii > see$tag.log echo done EOF qsub -cwd -l h_rt=10:0:0,h_rss=...
Shell
#e.g. linkEff POS good_v4_MC_04052013_SECO a=$1; sdir=/hera/alice/xlu/workspace/hera2dbetabloch/$2/OutputSecondary ls echo echo $a $sdir for ii in $(find $sdir/MC_$a/LHC*/*seco.root) do echo $ii; ln -s $ii done
Shell
for ii in $(find *.root -type l) do unlink $ii done id=$1 mcid=$( expr $id + 50 ) for ii in $(find ../cmpEta*GrID$mcid/*/Com* ../cmpEta*GrID$id/*/Com* ../../directETAall/hist*/*id$mcid\.root ) do b0=$(basename $ii) d0=$(dirname $ii) b1=$(basename $d0) d1=$(dirname $d0) b2=$(basename $d1) ...
Shell
data=$1 klogx=$2 echo $data $klogx #data root -q -l -b 'drawFractionRatio.C("'$data'",0,"ETA0outgrsys_'$data'_id20.root","ETA1outgrsys_'$data'_id20.root","ETA2outgrsys_'$data'_id20.root","ETA3outgrsys_'$data'_id20.root",1,"ratio to average",3,'$klogx',0)' root -q -l -b 'drawFractionRatio.C("'$data'",1,"ETA0outgrsys_'...
Shell
dd0=$(pwd) ###################################################################### #full run dsets=$(find $(pwd)/*/LHC*/ -type d | grep -v "/cohe" ) jobid=full #short test #dsets=$(echo $(pwd)/DATA_all/LHC10hCEN0_DATA_RAA_ETA0/ ) #jobid=short ecor=_HASENERGYLOSSCORRECTION tofopt=$(echo TOF1SIGMA TOF2SIGMA noTOF) ##...
Shell
for ii in $(find *.root -type l) do unlink $ii done id=$1 mcid=$( expr $id + 50 ) for ii in $(find ../RenorWOele/*ID$mcid*Comb*.root ../RenorWOele/*ID$id*Comb*.root ../RenorWOele/*directMC_id$mcid\.root ) do echo $ii ff=$(basename $ii) ln -s $ii $ff done #for cmpTPC for ii in $(find ../../g25finish/B...
Shell
ln -s ../Sys01/in.log ln -s /hera/alice/xlu/workspace/hera2dbetabloch/getGrSys for ii in $(echo 00 01 02) do #with checkCp=0 ./getGrSys in.log $ii 0 0 > tmp$ii done grep frac tmp* rm -f *.eps ./drawMeanGrSys01 > seetmp
Shell
grep "ystaterr 0.000000" */seedologx0.log | sort -u
Shell
ls -l > seeold.log for ii in $(find *.root -type l) do unlink $ii done echo ls echo for ii in $(echo ../../cmpEta*GrID*{0,5}/*/Com* ../../../directETAall/histRec*/*directMC_id*0.root) do if [ -e $ii ] then b0=$(basename $ii) d0=$(dirname $ii) b1=$(basename $d0) d1=$(dirnam...
Shell
tag=$1 #mBB_anchor6_HASENERGYLOSSCORRECTION res=$2 #3000 #saturation_anchor6 echo $tag echo $res echo echo #compare fromPT and coherent fit result for ii in $(find 1*MC*/coherent_$tag/Sys -type d ) do fitfile=$(echo $(pwd)/$ii/*.root) if [ ! -e $fitfile ] then continue fi echo $fitf...
Shell
data=$1 klogx=$2 echo $data $klogx #data f3=" " bb=$(basename $(pwd)) if [ ${bb:10:4}\kk == Inclkk ] then f3=ETA3_$data.root fi tagid=111 ./drawFractionRatio $data 0 ETA0_$data.root ETA1_$data.root ETA2_$data.root "$f3" " " " " 1 "ratio to ref." $tagid $klogx 0 ./drawFractionRatio $data 1 ETA0...
Shell
hist=$1 echo hist: $hist echo ln -s $hist hist.root echo fitting Rev0 ... ./fith $hist > see0.log endn=1; mkdir -p savepre for now in $(seq 1 $endn); do pre=$(expr $now - 1 ) echo echo now $now, pre $pre; outpre=outfith_*Rev$pre.root echo fitting Rev$now from $outpre ... ls --color=tty...
Shell
for ii in $(find *.root -type l) do unlink $ii done id=$1 mcid=$( expr $id + 50 ) mdir0=$(echo ../../../more_MCjet_10032014/g25finish) mdir1=$(echo ../../../more_MCjet_10032014/g25finish/Beta22*) #mdir0=../../../hyperbin_MCjet_11042014/e27finish #mdir1=../../../hyperbin_MCjet_11042014/e27finish for ii in $(find ...
Shell
grid=$1 tof=$2 echo echo ++++++++++++++++++++++++++ only for FF! +++++++++++++++++++++++++++++++++ echo grid $grid echo tof $tof echo dd0=$(pwd) #GSI absd=/hera/alice/xlu/workspace/hera2dbetabloch/FracFunc_10-d-e #HD #absd=/alidata60/alice_u/lu/workspace/hera2dbetabloch/FracFunc_10-d-e for pp in $(echo $tof/DATA...
Shell
################################################################# #getGrSys on drawpar output #used also for TOF cases dd0=$(pwd) #GSI absd=/hera/alice/xlu/workspace/hera2dbetabloch #also not needed if only running bg, not qsub predo= #"source $myenvsh -n" exec=execqsub #HD #absd=/alidata60/alice_u/lu/workspace/her...
Shell
pp=$(basename $(pwd)); id=${pp:11:2} echo $id if [ $id == 10 -o $id == 20 -o $id == 30 ] then pretag=Renormalized_ fi mcid=$( expr $id + 50 ) rm -f *.eps Frac*.root pwd > gsi_dir ls echo echo klogx=0 if [ ${id:0:1} == 1 -o ${id:1:1} == 1 -o ${id:1:1} == 2 ] then klogx=1 fi for ipar in $(echo 2 0 1 ...
Shell
#!/bin/sh #only do beta100 for ii in $(find ../outmn2d_post_kHESSE1_fkErr0*Beta*.root ) do echo $ii tt=$(echo $ii | tr -s './' ' ' | awk '{print $1}' | tr -d '_' ) echo $tt dd=$(echo 1) #kxmin=$(pwd | grep Xmin-9 | wc | awk '{print $1}') #ktpc1tof9=$(pwd | grep TPC1TOF9 | wc | awk '{print $1...
Shell
rm -f Renormalized_*.root ls echo cp ~/svn.log . logfile=seerenor.log cat > $logfile <<EOF EOF for ii in $(find raw/*.root -type l) do echo $ii #./renormalizeWithoutE $ii >> $logfile ln -s $ii Renormalized_$(basename $ii) done
Shell
rm -f *.eps Frac*.root pwd > gsi_dir #ls echo echo for tpctof in $(echo TPC1TOF1 TPC1TOF0) do for jpt in $(echo 5-10 10-15 15-20 5-100 20-100 0-100) do for id in $(echo 60 70 80) do if [ $tpctof != TPC1TOF0 -a $id != 60 ] then continue fi ...
Shell
#static Int_t Nproton(){ return 30000;} #static Int_t Npion(){ return 49000;} #static Int_t Nkaon(){ return 20000;} #static Int_t Nelectron(){ return 1000;} fNproton=30000; fNpion=49000; ~/.task/2dbetabloch/calc outmn2d_post_save*.root bins p00 $fNproton 79000 > seecalc_mn2d_proton.log ~/.task/2dbe...
Shell
#!/bin/sh #only do beta100 for ii in $(find ../outmn2d_post_kHESSE1_fkErr0*Beta*.root ) do echo $ii tt=$(echo $ii | tr -s './' ' ' | awk '{print $1}' | tr -d '_' ) echo $tt dd=$(echo 1) #kxmin=$(pwd | grep Xmin-9 | wc | awk '{print $1}') #ktpc1tof9=$(pwd | grep TPC1TOF9 | wc | awk '{print $1...
Shell
#FF jpt=all grid=$1 tof=$2 charge=$3 dd0=$(pwd) #for ii in $(echo 10d 10e 11a 10-d-e 10hCEN{0,1,2,3,4,5}) #for ii in $(echo 10-d-e) #FF for ii in $(echo histRecInclusiveTPC histRecIDFFHis) do echo $ii dir=newTCFr250_cmpEta_$charge\_$tof\_GrID$grid/$ii #\_jpt$jpt mkdir -p $dir cd $dir for jj i...
Shell
id=$1 echo $id npolint=$2 echo $npolint tail=$3 echo $tail d0=$(pwd) dir=$d0/ID$id\_$npolint$tail mkdir $dir cd $dir ln -s ../outfith*.root hist.root $(pwd)/../mn2d hist.root $id $npolint > see.log ls cd $d0
Shell
pp=$(basename $(pwd)); id=${pp:11:2} echo id=$id if [ $id == 10 -o $id == 20 -o $id == 30 -o $id == 15 -o $id == 25 ] then pretag=Renormalized_ fi pretag=$pretag\cmp mcid=$( expr $id + 50 ) #rm -f *.eps Frac*.root pwd > gsi_dir ls echo echo klogx=0 if [ ${id:0:1} == 1 ] then klogx=1 fi if ...
Shell
extractHistRec ../$file > seeRec.log #nohup $(pwd)/../extractHistRec ../$file > seeRec.log & #nohup $(pwd)/../extractHistGen ../$file > seeGen.log &
Shell
dir0=$(pwd) for ii in $(find * -type d ); do cd $ii; pwd echo before ... echo ls echo echo after ... rm -f *.eps Frac*.root Combined*.root; ls echo #data=$(pwd | awk -F\/ '{print $11}') data=$(basename $(pwd)) echo raw data: echo $data echo raw data done....
Shell
for ii in $(echo 10d 10e 11a 10hCEN{0,1,2,3,4,5}) do echo $ii dir=EffCmpEta/$ii mkdir -p $dir cd $dir pwd for eta in $(seq 0 3) do ddd="../../LHC*${ii:0:3}MC*${ii:3:4}*ETA$eta*" echo $ddd ls $ddd ln -s $ddd/Out*.root $ii\Eff_ETA$eta.root done l...
Shell
for ii in $(find *.root -type l) do unlink $ii done id=$1 mcid=$( expr $id + 50 ) mdir0=$(echo ../../../more_MCjet_10032014/g25finish) mdir1=$(echo ../../../more_MCjet_10032014/g25finish/Beta22*) for ii in $(find ../cmpEta*GrID$id/*/Com* $mdir0/../direct*/*/*direct*id$mcid\.root) do b0=$(basename $ii) ...
Shell
#e.g. linkEff POS good_v8_MC_14052013_PRIM a=$1; sdir=/hera/alice/xlu/workspace/hera2dbetabloch/$2 ls echo echo $a $sdir for ii in $(find $sdir/MC_$a/LHC{11a,10d,10e}*/Out*.root) do jj=$(echo $ii| awk -F\/ '{print $9}'| awk -F\_ '{print substr($1,4,3)"_"$3}'); echo $ii $jj; ln -s $ii $jj\_eff.root;...
Shell
################################################################# absd=/hera/alice/xlu/workspace/hera2dbetabloch ids=$(echo {1,6}0) ################################################################# cp ~/svn.log grsys_svn.log rm -f outgrsys*.root rm -f seegrsys*.log rm -f ingrsys*.log rm -f subgetgr.sh.{o,e}* ...
Shell
for ii in $(find *.root -type l) do unlink $ii done ls for tpctof in $(echo TPC1TOF0 TPC1TOF1 TPC2TOF0) do for id in $(echo 60 70 80) do for jpt in $(echo 5-10 10-15 15-20 5-100 20-100 0-100) do echo $tpctof $id $jpt for ii in $(find ../histRecTH*$tpctof*JPT$jpt/*i...
Shell
filelist=$1 totn=0 for ii in $(seq 0 20); do jj=$(echo $ii | awk '{print $1/10.}'); if [ $ii -lt 20 ] then kk=$(echo $ii | awk '{print ($1+1)/10.}'); pp=$(grep fBeta $filelist | grep outmn2d_post_iBeta100 | tr -s ',' ' ' | awk '{if($16>='$jj' && $16<'$kk') print $1,$14,$15,$16}' | wc |...
Shell
#predo="source $myenvsh -n" #GSI #predo="source $myenvsh -n" #HD #predo="source /alidata60/alice_u/lu/workspace/source.sh; cd /alidata60/alice_u/...
Shell
cat > tmptmpGetStat.C <<EOF void tmptmpGetStat(const TString fin, const TString jpt, const TString eta){ TFile::Open(fin); const Double_t cont = horiginal->GetEntries()+tof->GetEntries(); printf("jpt %s eta %s count %e\n", jpt.Data(), eta.Data(), cont); } EOF cat > seeStat.log <<EOF EOF #for jpt in $(echo 5-7 7-10 ...
Shell
#static Int_t Nproton(){ return 30000;} #static Int_t Npion(){ return 49000;} #static Int_t Nkaon(){ return 20000;} #static Int_t Nelectron(){ return 1000;} fNproton=30000; fNpion=49000; fNkaon=20000; fNelectron=1000; tot=100000; ~/.task/2dbetabloch/calc outmn2d_post_save*.root mn2d p00 $fNproton $to...
Shell
#export dataset=$(echo LHC10d) export dataset=$(echo 126432 126088) export datatype=pp export taskname=pkRaa
Shell
grep Source seehad* | wc if [ ! -e listofsubmerge.list ] then find AnaOut_all_su* > listofsubmerge.list fi wc listofsubmerge.list read aa echo $aa root -b -l <<EOF #include "../NeutrinoTools.h" ch=NeutrinoTools::InputFiles("listofsubmerge.list","default") ch->Merge("defaultTree.root") EOF root -b -l <<EOF #in...
Shell
date root -b -l <<EOF .L AnaTask1.C+ AnaTask1 t t.DoAnalysis("$1",$2,"$3", 1) .q EOF date
Shell
for ww in $(seq 0 7003); do ii=$(printf %04d $ww) ss=$(echo *n$ii.sh) rr=AnaOut_sub$ii.root; #echo checking $ii ... if [ -e $ss ]; then if [ ! -e $rr ]; then echo "======================= resubmitting $ss $rr ..."; jobfile=$ss qsu...
Shell
date root -l -b <<EOF .L AnaSK.C+ AnaSK t t.DoAnalysis("$1", $2, "$3") .q EOF date
Shell
date root -b -l <<EOF .L AnaND280HL2.C+ AnaND280HL2 t t.DoAnalysis("$1",$2,"$3") .q EOF date
Shell
filelist=$(readlink -f $1) mac=$2 echo filelist $filelist echo mac $mac id=C2 ############################################### dir0=job$id mkdir -p $dir0 echo inputing... nf=$(wc $filelist | awk '{print $1}') echo nf $nf #test #nf=3 ls -lhtB $mac* root -b -l <<EOF .L $mac.C+ .q EOF ls -lhtB $mac* ############...
Shell
date root -b -l <<EOF .L AnaND280.C+ AnaND280 t t.DoAnalysis("$1",$2,"test") .q EOF date
Shell
date tag=r nn=0 #lfc-ls /grid/t2k.org/nd280/raw/ND280/ND280/00001000_00001999/ #lcg-lr lfn:/grid/t2k.org/nd280/production006/B/mcp/neut/2010-11-air/magnet/run4/anal/oa_nt_beam_90400040-0010_cltzobu2i6uk_anal_000_prod6amagnet201011airc-bsdv01_2.root proddir=$(readlink -f $(pwd) | awk -F\/ '{$2=""; $3="";$4="";$5="";...
Shell
for jj in $(seq 0 9) do for dd in $(seq 0 9); do ii=$jj$dd jobfile=m$ii\.log cat > $jobfile <<EOF source $(readlink -f ~/t2k*.sh) cd $(pwd) hadd AnaOut_all_sub$ii.root *AnaOut_sub*$ii\.root > seehadd$ii.log EOF chmod +x $jobfile qsub -l cput=01:30:0...
Shell
export LFC_HOST=lfc.gridpp.rl.ac.uk export LFC_HOME=/grid/t2k.org/nd280 voms-proxy-init -voms t2k.org
Shell
fin=$1 dn=./$(dirname $fin | awk -F\: '{print $2}') fn=$(basename $fin) echo $fin $dn $fn mkdir -p $dn aa=$(echo "lcg-cp -v --vo t2k.org $fin $dn/$fn") echo $aa eval $aa
Shell
filelist=$(readlink -f $1) #RunNumuCCAnalysis.exe exe=$2 id=$3 echo filelist $filelist echo exe $exe echo id $id ############################################### dir0=job$id mkdir -p $dir0 echo inputing... nf=$(wc $filelist | awk '{print $1}') echo nf $nf #test #nf=3 ###########################################...
Shell
file=$1 ff2=$2 ff3=$3 ii=0 echo file $file echo ff2 $ff2 echo ff3 $ff3 #double transverse echo "------------------------------------------------------------------------"; echo plotID=$ii; ii=$( expr $ii + 1 ); root -b -l <<EOF .L style.cxx+ .L plotDoubleT.C+ plotECalPDG("$file",0) plotECalPDG("$file",1) plotECalPDG...
Shell
source ~/gridsetup.sh nn=1 for ii in $(echo /grid/t2k.org/sk/14a/neut/numu_x_numu.h2o.sk.flux13a.neut_532_ap14a_fQv4r0.tar /grid/t2k.org/sk/13a/neut/nu.h2o.sk.flux11a.neut_5141_ap13a.fq_v3r0.tqfix.tar /grid/t2k.org/sk/11c/neut/newpi/numu.h2o.sk_newpi.flux11a.neut_5141.tgz /grid/t2k.org/sk/10a/neut/numu.h2o.sk.flux10a....
Shell
export CVSROOT=:ext:anoncvs@repo.nd280.org:/home/trt2kmgr/ND280Repository export CVS_RSH=ssh unset CVS_SERVER #export dir0=/data/t2k/software/nd280_5A2/work export dir0=/data/t2k/software/nd280_6B/work #export dir0=/data/t2k/software/nd280_5E1/work export mydir=/data/t2k/xlu/software/t2k/nd280 source /data/t2k/softwa...
Shell
curdir=$(pwd) ################### export proj=Cosmic export files=$(find /u/xlu/.task/dedx/Cosmic/2011Data/*kG*{IN,OUT}.root) export hhs=$(seq 0 50) export len=11 mkdir $proj cd $proj /u/xlu/.task/dedx/dosub.sh cd $curdir #exit ################### export proj=pp export files=$(find /u/xlu/.task/dedx/pp/hist/pfm/6t...
Shell
echo prodtag: $prodtag echo echo project: $proj echo echo $files echo echo hhs: $hhs ###### timetag=$(date | tr -s ' ' '_' | tr -s ':' '_' | tr -s '.' '_') echo $timetag jobdir=$(pwd) srcdir=/u/xlu/.task/dedx/ rawdir=$srcdir/$proj/fitting_$prodtag\_$timetag/raw/ mkdir -p $rawdir ###### cp $srcdir/dEdxFit.cxx $ra...
Shell
#export dataset=$(echo LHC10d) #export dataset=$(echo 126432 126088) #export datatype=pp export taskname=TRDdEdx
Shell
export taskname=RecCosmic
Shell
fin=$1 evt0=$2 evt1=$3 kgrid=$4 chunk=${fin##*/} #11000143237007.70.root chunk=${chunk%.*} #11000143237007.70 echo fin:$fin echo evt0:$evt0 echo evt1:$evt1 echo kgrid:$kgrid echo chunk:$chunk echo dir=$chunk\_evt$evt0\_$evt1 mkdir $dir cd $dir ~/.task/Reconstruction/rec $fin $evt0 $evt1 $kgrid cd - exit aliroot -...
Shell
export taskname=AODpkRaa
Shell
#!/bin/sh run=$1 tag=$2 runTrain \ --class=MyTrain \ --name=$tag\_myJob_$run \ --events=-1 \ --run=$run \ --pattern=ESDs/pass2/AOD095/*/ \ --dataDir=/alice/data/2011/LHC11h_2/ \ --date=now \ --cluster= \ --dataSet= \ --type=AOD \ --mode=GRID \ --verb=1 \ --root=v5-...
Shell
#!/bin/sh run=$1 tag=$2 runTrain \ --class=MyTrain \ --name=$tag\_myJob_$run \ --events=-1 \ --run=$run \ --pattern=ESDs/pass2/AOD095/*/ \ --dataDir=/alice/data/2011/LHC11h_2/ \ --date=now \ --cluster= \ --dataSet= \ --type=AOD \ --mode=GRID \ --verb=1 \ --root=v5-...
Shell
rm -f LHC10de.list for ii in $(echo /hera/alice/local/filtered/alice/data/2010/LHC10d/000*/ESDs/pass2/0/root_archive.zip); do echo $ii#FilterEvents_Trees.root ; done > LHC10de.list for ii in $(echo /hera/alice/local/filtered/alice/data/2010/LHC10e/000*/ESDs/pass2/140/root_archive.zip); do echo $ii#FilterEvents_Tr...
Shell
TCF_lib_mk.sh XGLUtils TCF_lib_mk.sh style
Shell
rootfile=$1 logfile=$2 echo "************** varifying caliobj !! **************" ~/.task/CommondEdx/printCalibObj $rootfile > printobj.log bb=$(echo Gain T0 Vd PHQ0 PHQ1 PHQ2 PHQ3 PHQ4 PHQ5 PHQ6 PHQ7) for jj in $bb do echo ============================= echo type $jj echo #grep outcalibobj$jj $log...
Shell
aliroot $1 -b -l <<EOF tree=$2; printf("Tree: %s\n", "$2"); //======================== TList *ll=new TList; gStyle->SetOptStat("enoum"); tree->SetScanField(0); //--- c1=new TCanvas("c1"); TH2D *hmpv=new TH2D("hmpv","", 65, 6539, 6604,200,0,20); tree->Draw("mpv:ibin>>hmpv", "mpv>1e-12"); c1->cd();...
Shell
#cat ~/.data/cosmic/lists/save/2011*/newcheck/0*Trun.log > listrun.log run=$1 tag=$2 dir=$3 outdir=$4/all$tag echo $run $tag $dir $outdir file=$(find $(pwd)/$dir/2*/*$tag\_11000$run*.root) #echo $file #find $outdir #exit if [ ${#file} -gt 0 ] then echo merging $run $tag hadd $outdir/run$run$tag.root $fi...
Shell
rootfile=$1 echo "************** varifying CDB !! **************" ~/.task/CommondEdx/printOCDB $rootfile > printobj.log bb=$(echo PHQ0 PHQ1 PHQ2 PHQ3 PHQ4 PHQ5 PHQ6 PHQ7) for jj in $bb do echo ============================= echo type $jj echo grep outcalibobj$jj printobj.log | sort -n -k 2 > print$...
Shell
indir=$1 echo echo indir:$indir echo files=$(find $indir | grep "/TRDCalibObj") echo files: $files echo for ii in $files do # echo $ii run=$(echo $ii | awk -F\/ '{print $2}') echo $run "$(pwd)/$ii to ~/.data/TRDdEdx_Calib/inuse/TRDCalibObj_0000$run.root" ln -s $(pwd)/$ii ~/.data/TRDdEdx_Calib/inus...
Shell
file=$1 dir=$2 cpath=$3 echo setting run... run=$(echo $file|tr -s '/' '\n' | grep ".root" | awk -F\. '{print $1}') echo setting done cpath="$cpath/$run" echo echo file: $file echo dir: $dir echo run: $run echo cpath: $cpath echo cd $dir mkdir -p $run cd $run echo setting TMPDIR export TMPDIR=/lustre/alice/xlu/my...
Shell
export dataset=$(echo 2011FebMayJun) #test) # #2011MayJun_5kG) # 2011Feb 2011MayJun_1kG) export datatype=cosmic export taskname=dEdxCosmic
Shell
prod=$1 #2011MayJun_5kG tag=$2 jdir=$3 taskname=dEdxCosmic echo 0:$0 echo 1:$1 echo 2:$2 echo 3:$3 echo echo ======================================================================== $prod ======================================================================== echo #################### fvar=$(echo Task$taskname\Tre...
Shell
#! bash ########################################################## myset(){ ##echo "************ myset() ************" export LS_COLORS=$LS_COLORS":*.C=01;31" export LS_COLORS=$LS_COLORS":*.cxx=01;31" #directory #export LS_COLORS=$LS_COLORS":di=00;94" alias rm='rm -i' alias mv='mv -i' alias cp='cp -i' alias ls0...
Shell
#! bash ########################################################## myset(){ ##echo "************ myset() ************" export LS_COLORS=$LS_COLORS":*.C=01;31" export LS_COLORS=$LS_COLORS":*.cxx=01;31" #directory #export LS_COLORS=$LS_COLORS":di=00;94" alias rm='rm -i' alias mv='mv -i' alias cp='cp -i' alias ls0...
Shell
#! /bin/sh /Applications/Adobe\ Flash\ Builder\ 4\ Plug-in/sdks/4.0.0/bin/asdoc -source-path . -doc-sources . -output docs
Shell
#! /bin/sh /Applications/Adobe\ Flash\ Builder\ 4\ Plug-in/sdks/4.0.0/bin/asdoc -source-path . -doc-sources . -output docs
Shell
#!/bin/bash function dumplib() { LIB=$1 for arch in armeabi-v7a armeabi; do VER=$(dump_syms obj/local/$arch/$LIB |grep MODULE | cut -d " " -f 4) mkdir -p symbols/$LIB/$VER dump_syms obj/local/armeabi-v7a/$LIB > symbols/$LIB/$VER/$LIB.sym done } dumplib libopenvpn.so
Shell
#!/bin/bash #NDK_DEBUG=1 ndk-build -j8 # Quick and dirty from ndk-gdb . ${ANDROID_NDK_HOME}/build/tools/ndk-common.sh ANDROID_NDK_ROOT=${ANDROID_NDK_HOME} PROJECT=. APP_ABI=armeabi-v7a AWK_SCRIPTS=${ANDROID_NDK_ROOT}/build/awk PACKAGE_NAME=de.blinkt.openvpn DEBUG_PORT=5039 JDB_PORT=65534 ADB_CMD=adb AWK_CMD=awk ge...
Shell
OPENVPN_PACKAGE_NAME="@PACKAGE_NAME@" OPENVPN_PACKAGE_TARNAME="@PACKAGE_TARNAME@" OPENVPN_PACKAGE_VERSION="@PACKAGE_VERSION@" OPENVPN_PACKAGE_HOST="@host@"
Shell
#!@SHELL@ # # run OpenVPN client against ``test reference'' server # - check that ping, http, ... via tunnel works # - check that interface config / routes are properly cleaned after test end # # prerequisites: # - openvpn binary in current directory # - writable current directory to create subdir for logs # - t_client...
Shell
#! /bin/sh # # t_lpback.sh - script to test OpenVPN's crypto loopback # Copyright (C) 2005 Matthias Andree # Copyright (C) 2014 Steffan Karger # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation;...
Shell
#! /bin/sh # # t_cltsrv.sh - script to test OpenVPN's crypto loopback # Copyright (C) 2005, 2006, 2008 Matthias Andree # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of th...
Shell
#! /bin/sh echo "${role}:${signal}" >&3
Shell
#!/bin/sh # # Bring up vpn routing. # calculate the network address remote_network=`ipcalc -n "$remote"/"$remote_netmask_bits"` remote_network="${remote_network#*=}" # add the stuff that doesn't change if it's not already there grep -q '^202 ' /etc/iproute2/rt_tables if [ "$?" -ne 0 ] then echo 202 vpn.out >> /e...
Shell
#!/bin/sh # # Bring down vpn routing. # calculate the network address remote_network=`ipcalc -n "$remote"/"$remote_netmask_bits"` remote_network="${remote_network#*=}" # clear routing via VPN ip route del "$remote_network"/"$remote_netmask_bits" via "$5" table vpn.out ip route del table vpnonly.out via "$5" iptabl...
Shell
#!/bin/sh # Sample script to perform OCSP queries with OpenSSL # given a certificate serial number. # If you run your own CA, you can set up a very simple # OCSP server using the -port option to "openssl ocsp". # Full documentation and examples: # http://www.openssl.org/docs/apps/ocsp.html # Edit the following val...
Shell