Changeset 7084


Ignore:
Timestamp:
05/23/05 11:32:19 (20 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7081 r7084  
    2121
    2222                                                 -*-*- END OF LINE -*-*-
     23 2005/05/23 Daniela Dorner
     24
     25   * datacenter/scripts/fillstar:
     26     - fixed bug in path
     27
     28   * datacenter/macros/fillstar.C, fillcalib.C, fillsignal.C:
     29     - added check
     30
     31
     32
    2333 2005/05/20 Thomas Bretz
    2434
  • trunk/MagicSoft/Mars/datacenter/macros/fillcalib.C

    r7031 r7084  
    109109
    110110    TFile file(fname, "READ");
     111    if (!file.IsOpen())
     112    {
     113        cout << "ERROR - Could not find file " << fname << endl;
     114        return 0;
     115    }
     116
    111117    if (badpix.Read("MBadPixelsCam")<=0)
    112118    {
     
    239245                     " fIsolatedInner=%d, "
    240246                     " fIsolatedOuter=%d, "
    241                      " fIsolatedMaxCluster=%d, ",
     247                     " fIsolatedMaxCluster=%d, "
    242248                     " fArrTimeMeanInner=%s, "
    243249                     " fArrTimeRmsInner=%s, "
  • trunk/MagicSoft/Mars/datacenter/macros/fillsignal.C

    r7010 r7084  
    7070{
    7171    TFile file(fname, "READ");
     72    if (!file.IsOpen())
     73    {
     74        cout << "ERROR - Could not find file " << fname << endl;
     75        return 0;
     76    }
     77
    7278    MStatusArray *arr = (MStatusArray*)file.Get("MStatusDisplay");
    7379    if (!arr)
  • trunk/MagicSoft/Mars/datacenter/macros/fillstar.C

    r7079 r7084  
    8989{
    9090    TFile file(fname, "READ");
     91    if (!file.IsOpen())
     92    {
     93        cout << "ERROR - Could not find file " << fname << endl;
     94        return 0;
     95    }
     96
    9197
    9298    MStatusArray arr;
  • trunk/MagicSoft/Mars/datacenter/scripts/fillstar

    r7052 r7084  
    104104for sequence in ${sequences[@]}
    105105do
    106    no=`printf %08d $sequence | cut -c 4`
     106   no=`printf %08d $sequence | cut -c 0-4`
    107107   no2=`printf %08d $sequence`
    108108   path="/magic/data/star/$no/$no2"
     
    136136             fi
    137137           fi
    138            setstatuslog=$setstatuslogpath/setstatus-fillstar
    139            check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog-$sequence.log | grep int | sed -e 's/(int)//'`
     138           setstatuslog=$setstatuslogpath/setstatus-fillstar-$no2.log
     139           check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`
    140140           case $check4 in
    141141             1)   echo "check4=$check4 -> everthing ok, status has been set" >> $scriptlog 2>&1;;
Note: See TracChangeset for help on using the changeset viewer.