Changeset 7579 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
03/08/06 10:17:07 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7578 r7579  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20 2006/03/08 Thomas Bretz
     21
     22   * readdaq.cc, mraw/MRawFileRead.[h,cc], mraw/MRawRunHeader.cc:
     23     - added new force-option to foirce output of run-header
     24
     25
     26
    2027 2006/03/08 Daniela Dorner
    2128
     
    4451
    4552
    46  2006/03/08 Thomas Bretz
    47 
     53 2006/03/07 Thomas Bretz
     54 
    4855   * mcalib/MCalibrateData.cc:
    4956     - take the bad pixel information into account when calculating the
    5057       number of saturating pixels!
     58
    5159
    5260
  • trunk/MagicSoft/Mars/mraw/MRawFileRead.cc

    r7438 r7579  
    102102//
    103103MRawFileRead::MRawFileRead(const char *fname, const char *name, const char *title)
    104     : fFileNames(NULL), fNumFile(0), fIn(NULL), fParList(NULL), fInterleave(1)
     104    : fFileNames(NULL), fNumFile(0), fIn(NULL), fParList(NULL), fInterleave(1), fForce(kFALSE)
    105105{
    106106    fName  = name  ? name  : "MRead";
     
    220220    //
    221221    if (!fRawRunHeader->ReadEvt(*fIn))
    222         return kERROR;
     222        if (!fForce)
     223            return kERROR;
    223224
    224225    if (!(*fIn))
  • trunk/MagicSoft/Mars/mraw/MRawFileRead.h

    r7438 r7579  
    2424    UInt_t    fInterleave;
    2525
     26    Bool_t    fForce;
     27
    2628    Int_t  OpenNextFile(Bool_t print=kTRUE);
    2729    Bool_t CalcNumTotalEvents();
     
    3840
    3941    void SetInterleave(UInt_t i) { fInterleave = i; }
     42    void SetForce(Bool_t b=kTRUE) { fForce=b; }
    4043
    4144    TString GetFullFileName() const;
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc

    r7489 r7579  
    362362        return;
    363363
    364     *fLog << inf << hex;
     364    *fLog << inf << "Assignment:" << hex << endl;
    365365    for (int i=0; i<GetNumPixel(); i++)
    366366        *fLog << setfill('0') << setw(3) << (*fPixAssignment)[i] << " ";
  • trunk/MagicSoft/Mars/readdaq.cc

    r7438 r7579  
    5353    gLog << "     -d1: print data in decimal values" << endl;
    5454    gLog << "     -c1: print MRawCrateArray data" << endl;
     55    gLog << "     -f:  force reading of runheader" << endl;
    5556    gLog << "     -?, -h, --help: This help" << endl << endl;
    5657}
     
    7778    const bool kDecimal    = arg.HasOption("-d") && arg.GetIntAndRemove("-d")==1;
    7879    const bool kPrintArray = arg.HasOption("-c") && arg.GetIntAndRemove("-c")==1;
     80    const bool kForce      = arg.HasOnlyAndRemove("-f");
    7981
    8082    //
     
    152154    //
    153155    MRawFileRead read(kNamein);
     156    read.SetForce(kForce);
    154157    tasks.AddToList(&read);
    155158
    156159    MPrint print0;
    157     MPrint print1("MRawEvtHeader",  "nogains", "PrintEvtHeader");
    158     MPrint print2("MTime",          "", "PrintTime");
    159     MPrint print3("MRawCrateArray", "", "PrintCrateArray");
    160     MPrint print4("MRawEvtData", kDecimal?"dec":"hex", "PrintEvtData");
    161     MPrint print5("MRawEvtData2", kDecimal?"dec":"hex", "PrintEvtData2");
     160    MPrint print1("MRawEvtHeader",  "nogains",            "PrintEvtHeader");
     161    MPrint print2("MTime",          "",                   "PrintTime");
     162    MPrint print3("MRawCrateArray", "",                   "PrintCrateArray");
     163    MPrint print4("MRawEvtData",    kDecimal?"dec":"hex", "PrintEvtData");
     164    MPrint print5("MRawEvtData2",   kDecimal?"dec":"hex", "PrintEvtData2");
    162165
    163166    tasks.AddToList(&print0);
Note: See TracChangeset for help on using the changeset viewer.