Ignore:
Timestamp:
11/15/01 12:06:46 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawCrateArray.cc

    r1031 r1082  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
     18!   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@uni-sw.gwdg.de>
    1919!
    2020!   Copyright: MAGIC Software Development, 2000-2001
  • trunk/MagicSoft/Mars/mraw/MRawCrateData.cc

    r987 r1082  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
     18!   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@uni-sw.gwdg.de>
    1919!
    2020!   Copyright: MAGIC Software Development, 2000-2001
     
    3939
    4040#include "MLog.h"
     41#include "MLogManip.h"
    4142
    4243ClassImp(MRawCrateData);
     
    6465void MRawCrateData::Print(Option_t *t) const
    6566{
    66     gLog << "Crate Number " << fDAQCrateNumber << ":  ";
    67     gLog << "FADCEventNr=" << fFADCEvtNumber << "  ";
    68     gLog << "FADCClockTick=" << fFADCClockTick << " (20MHz)" << endl;
     67    *fLog << all;
     68    *fLog << "Crate Number " << fDAQCrateNumber << ":  ";
     69    *fLog << "FADCEventNr=" << fFADCEvtNumber << "  ";
     70    *fLog << "FADCClockTick=" << fFADCClockTick << " (20MHz)" << endl;
    6971}
  • trunk/MagicSoft/Mars/mraw/MRawEvtData.cc

    r1076 r1082  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
     18!   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@uni-sw.gwdg.de>
    1919!
    2020!   Copyright: MAGIC Software Development, 2000-2001
     
    4949
    5050#include "MRawEvtData.h"
    51 
    52 #include <iomanip.h>
    5351
    5452#include <fstream.h>
     
    155153    fLog->unsetf(ios::showbase);
    156154
    157     *fLog << dec;
     155    *fLog << dec << all;
    158156    *fLog << "HiGain: " << nHiPix << " Pixels with " << (Int_t)nHiSamp << " Samples" << endl;
    159157    *fLog << "LoGain: " << nLoPix << " Pixels with " << (Int_t)nLoSamp << " Samples";;
     
    213211    if (GetNumPixels()==0)
    214212    {
    215         *fLog << "Sorry, no pixel to draw!" << endl;
     213        *fLog << warn << "Sorry, no pixel to draw!" << endl;
    216214        return;
    217215    }
     
    229227            num= GetNumPixels();
    230228
    231         *fLog << "Drawing Graph: Pixel #" << num << " of " << (int)GetNumPixels() << endl;
     229        *fLog << inf << "Drawing Graph: Pixel #" << num << " of " << (int)GetNumPixels() << endl;
    232230
    233231        const Int_t n = GetNumHiGainSamples();
     
    288286    }
    289287
    290     *fLog << dbginf << "Warning - You must specify either 'GRAPH' or 'HIST'" << endl;
     288    *fLog << warn << dbginf << "Warning - You must specify either 'GRAPH' or 'HIST'" << endl;
    291289}
    292290
     
    375373    if (nSamp && ns!=nSamp)
    376374    {
    377         *fLog << "RawEvtData::AddPixel: Error, number of samples in ";
     375        *fLog << err << "RawEvtData::AddPixel: Error, number of samples in ";
    378376        *fLog << "TArrayC doesn't match actual number" << endl;
    379377        return;
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc

    r1004 r1082  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
     18!   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@uni-sw.gwdg.de>
    1919!
    2020!   Copyright: MAGIC Software Development, 2000-2001
     
    9999
    100100#include "MLog.h"
     101#include "MLogManip.h"
     102
    101103#include "MTime.h"
    102104#include "MArrayB.h"
     
    117119    //   set all member to zero, init the pointer to ClonesArray,
    118120    //
    119 
    120121    fPixLoGainOn = new MArrayB;
    121122
     
    180181void MRawEvtHeader::Print(Option_t *o) const
    181182{
     183    *fLog << all;
    182184    *fLog << "DAQEvtNr: " << dec << fDAQEvtNumber << "  (";
    183185    *fLog << "Trigger: ";
     
    214216
    215217    *fLog << endl;
    216 
    217218    *fLog << endl;
    218 
    219219}
    220220
  • trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc

    r1052 r1082  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
     18!   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@uni-sw.gwdg.de>
    1919!
    2020!   Copyright: MAGIC Software Development, 2000-2001
     
    143143void MRawEvtPixelIter::Draw(Option_t *t)
    144144{
    145   char *txt = new char[6+strlen(t)];
    146   sprintf(txt, "%s%d", t, *fHiGainId);
    147   fData->Draw(txt);
    148   delete txt;
     145    fData->Draw(Form("%s%d", t, *fHiGainId));
    149146}
    150147
  • trunk/MagicSoft/Mars/mraw/MRawFileRead.cc

    r1037 r1082  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
     18!   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@uni-sw.gwdg.de>
    1919!
    2020!   Copyright: MAGIC Software Development, 2000-2001
     
    4444
    4545#include "MLog.h"
     46#include "MLogManip.h"
     47
    4648#include "MTime.h"
    4749#include "MParList.h"
     
    9294//
    9395MRawFileRead::MRawFileRead(const char *fname, const char *name, const char *title)
    94     : fFileName(fname)
     96    : fFileName(fname), fIn(NULL)
    9597{
    9698    fName  = name  ? name  : "MRawFileRead";
    9799    fTitle = title ? title : "Read task to read DAQ binary files";
    98100
    99     //
    100     // open the input stream
    101     //
    102     fFileName = fname;
    103     fIn = new ifstream(fname);
     101    fIn = new ifstream;
    104102}
    105103
     
    132130{
    133131    //
     132    // open the input stream
    134133    // first of all check if opening the file in the constructor was
    135134    // successfull
    136135    //
     136    fIn->open(fFileName);
    137137    if (!(*fIn))
    138138    {
    139         *fLog << "Error: Cannot open file '" << fFileName << "'" << endl;
     139        *fLog << err << "Error: Cannot open file '" << fFileName << "'" << endl;
    140140        return kFALSE;
    141141    }
     
    231231// --------------------------------------------------------------------------
    232232//
    233 //  Checks whether the number of read events differs from the number the
    234 //  file should containe (MRawRunHeader). Prints a warning if it doesn't
    235 //  match.
     233//  Close the file. Check whether the number of read events differs from
     234//  the number the file should containe (MRawRunHeader). Prints a warning
     235//  if it doesn't match.
    236236//
    237237Bool_t MRawFileRead::PostProcess()
    238238{
     239    //
     240    // Sanity check for the number of events
     241    //
    239242    if (fRawRunHeader->GetNumEvents() == GetNumExecutions()-1)
    240243        return kTRUE;
    241244
    242     *fLog << "WARNING - number of read events (" << GetNumExecutions()-1;
     245    *fLog << warn << "Warning - number of read events (" << GetNumExecutions()-1;
    243246    *fLog << ") doesn't match number in run header (";
    244247    *fLog << fRawRunHeader->GetNumEvents() << ")." << endl;
  • trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc

    r1031 r1082  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
     18!   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@uni-sw.gwdg.de>
    1919!
    2020!   Copyright: MAGIC Software Development, 2000-2001
     
    130130    if (!fRawEvtHeader)
    131131    {
    132         *fLog << dbginf << "MRawEvtHeader not found... aborting." << endl;
     132        *fLog << err << dbginf << "MRawEvtHeader not found... aborting." << endl;
    133133        return kFALSE;
    134134    }
     
    137137    if (!fRawEvtData)
    138138    {
    139         *fLog << dbginf << "MRawEvtData not found... aborting." << endl;
     139        *fLog << err << dbginf << "MRawEvtData not found... aborting." << endl;
    140140        return kFALSE;
    141141    }
     
    144144    if (!fRawCrateArray)
    145145    {
    146         *fLog << dbginf << "MRawCrateArray not found... aborting." << endl;
     146        *fLog << err << dbginf << "MRawCrateArray not found... aborting." << endl;
    147147        return kFALSE;
    148148    }
     
    151151    if (!fRawEvtTime)
    152152    {
    153         *fLog << dbginf << "MRawEvtTime not found... aborting." << endl;
     153        *fLog << err << dbginf << "MRawEvtTime not found... aborting." << endl;
    154154        return kFALSE;
    155155    }
     
    158158    if (!fRawRunHeader)
    159159    {
    160         *fLog << dbginf << "MRawRunHeader not found... aborting." << endl;
     160        *fLog << err << dbginf << "MRawRunHeader not found... aborting." << endl;
    161161        return kFALSE;
    162162    }
     
    254254    }
    255255
    256     *fLog << dbginf << "Got wrong number for the trigger type: " << type;
    257     *fLog << "  - skipping" << endl;
     256    *fLog << warn << dbginf << "Got wrong number for the trigger type: " << type;
     257    *fLog << " - skipped" << endl;
    258258
    259259    return kCONTINUE;
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc

    r1004 r1082  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
     18!   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@uni-sw.gwdg.de>
    1919!
    2020!   Copyright: MAGIC Software Development, 2000-2001
     
    3737
    3838#include "MLog.h"
     39#include "MLogManip.h"
     40
    3941#include "MArrayS.h"
    4042
     
    7981    if (fMagicNumber != kMagicNumber)
    8082    {
    81         *fLog << "Error: Wrong Magic Number: Not a Magic File!" << endl;
     83        *fLog << err << "Error: Wrong Magic Number: Not a Magic File!" << endl;
    8284        return;
    8385    }
     
    122124void MRawRunHeader::Print(Option_t *t) const
    123125{
    124     *fLog << endl;
     126    *fLog << all << endl;
    125127    *fLog << "MagicNumber:  0x" << hex << fMagicNumber << " - " << (fMagicNumber==kMagicNumber?"OK":"Wrong!") << endl;
    126128    *fLog << "Version:      " << dec << "Format=" << fFormatVersion << "  ";
Note: See TracChangeset for help on using the changeset viewer.