Changeset 7212 for trunk/MagicSoft


Ignore:
Timestamp:
07/22/05 15:59:46 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7211 r7212  
    2020
    2121                                                 -*-*- END OF LINE -*-*-
     22 2005/07/12 Daniela Dorner
     23
     24   * sinope.cc:
     25     - added option to select only data or only calibration events for
     26       the datacheck
     27
     28   * datacenter/scripts/runstar, runcallisto:
     29     - increased number of processes to ensure, that the runtime of a
     30       process doesn't exeed 12 hours
     31
     32   * datacenter/scripts/runganymed:
     33     - removed second execution of ganymed
     34
     35
     36
    2237 2005/07/22 Thomas Bretz
    2338
  • trunk/MagicSoft/Mars/datacenter/scripts/runcallisto

    r7141 r7212  
    3838datetime=`date +%F-%H-%M-%S`
    3939year=`date +%Y`
    40 pno=24 # number of processes, i.e. number of todo-files
     40pno=500 # number of processes, i.e. number of todo-files
    4141
    4242todofile=$listpath/ToDo-$table-$column
  • trunk/MagicSoft/Mars/datacenter/scripts/runganymed

    r7182 r7212  
    190190     mode="onoff" >> $scriptlog 2>&1
    191191  fi
    192   ganymedrc=/magic/datacenter/setup/ganymed/ganymed_$mode
     192  ganymedrc=/magic/datacenter/setup/ganymed/ganymed_$mode.rc
    193193 
    194194  echo "run ganymed..." >> $scriptlog 2>&1
    195   ./ganymed -b -q -v4 -f --sum --config=$ganymedrc.rc --log=$outpath/ganymed$no2.log --html=$outpath/ganymed$no2.html --out=$outpath $datasetfile  2>> $scriptlog> /dev/null
     195  ./ganymed -b -q -v4 -f --sum --config=$ganymedrc --log=$outpath/ganymed$no2.log --html=$outpath/ganymed$no2.html --out=$outpath $datasetfile  2>> $scriptlog> /dev/null
    196196  check1=$?
    197197
    198198  case $check1 in
    199199     0)   echo "check1=$check1 -> everthing ok " >> $scriptlog 2>&1
    200           echo "-> do ganymed a second time "  >> $scriptlog 2>&1
    201           ./ganymed -b -q -v4 -f --skip-res --config=$ganymedrc-fs.rc --log=$outpath/ganymed$no2-fs.log --html=$outpath/ganymed$no2-fs.html --out=$outpath --outf=ganymed$no2-fs.root $datasetfile  2>> $scriptlog> /dev/null
    202           check2=$?
    203          
    204           case $check2 in
    205              0)   echo "check2=$check2 -> everthing ok " >> $scriptlog 2>&1
    206                   echo "-> inserting the status for ganymed for dataset $dataset into the db" >> $scriptlog 2>&1
    207                   setstatuslogpath=$logpath/setstatus/ganymed/$no
    208                   if [ ! -d $setstatuslogpath ]
    209                   then
    210                      mkdir -pv $setstatuslogpath >> $scriptlog 2>&1
    211                      if [ ! -d $setstatuslogpath ]
    212                      then
    213                         echo "could not make setstatuslogpath "$setstatuslogpath >> $scriptlog 2>&1
    214                         continue
    215                      fi
    216                   fi
    217                   setstatuslog=$setstatuslogpath/setstatus-ganymed-$no2.log
    218                   check4=`root -q -b $macrospath/setstatus.C+\("\"$dataset\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`
    219                   case $check4 in
    220                      1)   echo "check4=$check4 -> everthing ok, status has been set" >> $scriptlog 2>&1;;
    221                      *)   echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;;
    222                   esac
    223                   ;;
    224              *)   echo "check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
     200          echo "-> inserting the status for ganymed for dataset $dataset into the db" >> $scriptlog 2>&1
     201          setstatuslogpath=$logpath/setstatus/ganymed/$no
     202          if [ ! -d $setstatuslogpath ]
     203          then
     204             mkdir -pv $setstatuslogpath >> $scriptlog 2>&1
     205             if [ ! -d $setstatuslogpath ]
     206             then
     207                echo "could not make setstatuslogpath "$setstatuslogpath >> $scriptlog 2>&1
     208                continue
     209             fi
     210          fi
     211          setstatuslog=$setstatuslogpath/setstatus-ganymed-$no2.log
     212          check4=`root -q -b $macrospath/setstatus.C+\("\"$dataset\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`
     213          case $check4 in
     214             1)   echo "check4=$check4 -> everthing ok, status has been set" >> $scriptlog 2>&1;;
     215             *)   echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;;
    225216          esac
    226217          ;;
  • trunk/MagicSoft/Mars/datacenter/scripts/runstar

    r7141 r7212  
    3636datetime=`date +%F-%H-%M-%S`
    3737year=`date +%Y`
    38 pno=24 # number of processes, i.e. number of todo-files
     38pno=500 # number of processes, i.e. number of todo-files
    3939
    4040todofile=$listpath/ToDo-$table-$column
  • trunk/MagicSoft/Mars/sinope.cc

    r7184 r7212  
    1616#include "MRawFileRead.h"
    1717#include "MArrayD.h"
     18#include "MFTriggerPattern.h"
     19#include "MTriggerPatternDecode.h"
     20#include "MContinue.h"
    1821#include "MTaskInteractive.h"
    1922#include "MLog.h"
     
    212215    gLog << "   -q                        Quit when job is finished" << endl;
    213216    gLog << "   -f                        Force overwrite of existing files" << endl;
     217    gLog << "   -dat                      Run sinope only for data events in the run" << endl;
     218    gLog << "   -cal                      Run sinope only for calibration events in the run" << endl;
    214219    gLog << "   --ind=path                Path where to search for the data file" << endl;
    215220    gLog << "                             [default=standard path in datacenter]" << endl;
     
    278283    const Bool_t  kBatch      = arg.HasOnlyAndRemove("-b");
    279284    const Bool_t  kOverwrite  = arg.HasOnlyAndRemove("-f");
     285    const Bool_t  kData       = arg.HasOnlyAndRemove("-dat");
     286    const Bool_t  kCal        = arg.HasOnlyAndRemove("-cal");
    280287    //const Bool_t  kForceExec  = arg.HasOnlyAndRemove("-ff");
    281288
     
    283290    /*const TString*/ kOutpath    = arg.GetStringAndRemove("--out=",  "");
    284291
    285     const Int_t   kNumEvents  = arg.GetIntAndRemove("--num=", 1000);
     292    const Int_t   kNumEvents  = arg.GetIntAndRemove("--num=", header.GetNumEvents());
    286293    const Int_t   kRunNumber  = arg.GetIntAndRemove("--run=",  -1);
    287294    const TString kDate       = arg.GetStringAndRemove("--date=", "");
     
    401408    MTaskInteractive task;
    402409
     410    MTriggerPatternDecode decode;
     411    MFTriggerPattern      ftp;
     412    if (kCal || kData)
     413    {
     414        ftp.SetDefault(kTRUE);
     415        ftp.DenyCalibration();
     416        if (!kCal)
     417        {
     418            ftp.DenyPedestal();
     419            ftp.SetInverted();
     420        }
     421    }
     422    MContinue conttp(&ftp, "ContTrigPattern");
     423
    403424    task.SetPreProcess(PreProcess);
    404425    task.SetProcess(Process);
     
    407428    MTaskList tlist;
    408429    tlist.AddToList(&read);
     430    if (kCal || kData)
     431    {
     432        tlist.AddToList(&decode);
     433        tlist.AddToList(&conttp);
     434    }
    409435    tlist.AddToList(&task);
    410436
Note: See TracChangeset for help on using the changeset viewer.