Changeset 4895 for trunk


Ignore:
Timestamp:
09/09/04 15:43:47 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4891 r4895  
    2222 2004/09/09: Thomas Bretz
    2323
    24   * mhvstime/MHPixVsTime.[h,cc], mhvstime/MHVsTime.[h,cc],
    25     mhvstime/MHSectorVsTime.[h,cc], mhbase/MH3.[h,cc]:
    26     - changed such that the axis titles can be set via the
    27       title
     24   * mhvstime/MHPixVsTime.[h,cc], mhvstime/MHVsTime.[h,cc],
     25     mhvstime/MHSectorVsTime.[h,cc], mhbase/MH3.[h,cc]:
     26     - changed such that the axis titles can be set via the
     27       title or (if available) a MBinning
     28
     29   * mhbase/MBinning.cc:
     30     - added HasTitle
     31
     32   * mjobs/MJPedestal.cc:
     33     - added lost UseData again to CheckEnvLocal
     34
     35   * mjobs/MJStar.cc:
     36     - fixed handling of Axis titles of histograms
     37
     38   * mjobs/Makefile:
     39     - added path to mhvstime
    2840
    2941
  • trunk/MagicSoft/Mars/manalysis/MParameters.cc

    r4887 r4895  
    7777}
    7878
     79void MParameterD::Print(Option_t *o) const
     80{
     81    *fLog << all << GetDescriptor() << ":  Val=" << fVal << endl;
     82}
     83
     84void MParameterDerr::Print(Option_t *o) const
     85{
     86    *fLog << all << GetDescriptor() << ":  Val=" << fVal << "  Err=" << fErr << endl;
     87}
     88
     89void MParameterI::Print(Option_t *o) const
     90{
     91    *fLog << all << GetDescriptor() << ":  Val=" << fVal << endl;
     92}
  • trunk/MagicSoft/Mars/manalysis/MParameters.h

    r4887 r4895  
    1717    Double_t GetVal() const { return fVal; }
    1818
     19    void Print(Option_t *o="") const;
     20
    1921    ClassDef(MParameterD, 1) // Container to hold a generalized parameters (double)
    2022};
     
    3335    Double_t GetErr() const { return fErr; }
    3436
     37    void Print(Option_t *o="") const;
     38
    3539    ClassDef(MParameterDerr, 1) // Container to hold a generalized parameters (double) and its Error
    3640};
     
    4650    void SetVal(Int_t v) { fVal = v; }
    4751    Int_t GetVal() const { return fVal; }
     52
     53    void Print(Option_t *o="") const;
    4854
    4955    ClassDef(MParameterI, 1) // Container to hold a generalized parameters (integer)
  • trunk/MagicSoft/Mars/mfileio/MReadReports.cc

    r4766 r4895  
    226226Int_t MReadReports::PreProcess(MParList *plist)
    227227{
    228     fList = (MTask*)plist->FindObject("MTaskList");
    229 
    230228    fChains->Delete();
    231229
     
    385383            const Int_t rc = task->CallProcess();
    386384            if (rc)
    387             {
    388                 fList->SetStreamId(task->GetName());
    389385                return rc;
    390             }
    391386        }
    392387
  • trunk/MagicSoft/Mars/mfileio/MReadReports.h

    r4766 r4895  
    2222    TArrayL    fPosEntry; // Store the position in each tree/chain
    2323    TArrayL    fPosTree;  // Number of Tree in file.
    24 
    25     MTask     *fList;     // pointer to the task list to set the stream id
    2624
    2725    Bool_t     fEnableAutoScheme;
  • trunk/MagicSoft/Mars/mfileio/MReadTree.cc

    r4766 r4895  
    601601Int_t MReadTree::PreProcess(MParList *pList)
    602602{
     603    fTaskList = (MTaskList*)pList->FindObject("MTaskList");
     604    if (!fTaskList)
     605        *fLog << warn << "WARNING - Standard tasklist MTaskList not found... ignoring Stream-ID." << endl;
     606
    603607    //
    604608    // Make sure, that all the following calls doesn't result in
     
    854858    const Bool_t rc = fChain->GetEntry(fNumEntry++) != 0;
    855859
     860    if (fTaskList)
     861        fTaskList->SetStreamId(fChain->GetName());
     862
    856863    if (rc)
    857864        SetReadyToSave();
  • trunk/MagicSoft/Mars/mfileio/MReadTree.h

    r4698 r4895  
    88class MChain;
    99class TBranch;
     10class MTaskList;
    1011
    1112class MReadTree : public MRead
     
    2425    TList  *fVetoList;         // List of Branches which are not allowed to get enabled
    2526    TList  *fNotify;           // List of TObjects to notify when switching files
     27
     28    MTaskList *fTaskList;      // Tasklist to set StreamId
    2629
    2730    enum { kChainWasChanged = BIT(14) };
  • trunk/MagicSoft/Mars/mhbase/MH.cc

    r3583 r4895  
    199199#endif
    200200
     201    // All this is reset by TAxis::Set
     202    const TAttAxis att(x);
     203    const Bool_t   tm(x.GetTimeDisplay());
     204    const TString  tf(x.GetTimeFormat());
     205
    201206    //
    202207    // This is a necessary workaround if one wants to set
     
    211216    //
    212217    x.Set(binsx->GetNumBins(), binsx->GetEdges());
     218
     219    // All this is reset by TAxis::Set
     220    att.Copy(x);
     221    x.SetTimeDisplay(tm);
     222    x.SetTimeFormat(tf);
     223
    213224#if ROOT_VERSION_CODE < ROOT_VERSION(3,03,03)
    214225    x.SetTitle(xtitle);
     
    233244#endif
    234245
     246    // All this is reset by TAxis::Set
     247    const TAttAxis attx(x);
     248    const TAttAxis atty(y);
     249    const Bool_t   tmx(x.GetTimeDisplay());
     250    const Bool_t   tmy(y.GetTimeDisplay());
     251    const TString  tfx(x.GetTimeFormat());
     252    const TString  tfy(y.GetTimeFormat());
     253
    235254    //
    236255    // This is a necessary workaround if one wants to set
     
    247266    x.Set(binsx->GetNumBins(), binsx->GetEdges());
    248267    y.Set(binsy->GetNumBins(), binsy->GetEdges());
     268
     269    // All this is reset by TAxis::Set
     270    attx.Copy(x);
     271    atty.Copy(y);
     272    x.SetTimeDisplay(tmx);
     273    y.SetTimeDisplay(tmy);
     274    x.SetTimeFormat(tfx);
     275    y.SetTimeFormat(tfy);
     276
    249277#if ROOT_VERSION_CODE < ROOT_VERSION(3,03,03)
    250278    x.SetTitle(xtitle);
     
    272300#endif
    273301
     302    // All this is reset by TAxis::Set
     303    const TAttAxis attx(x);
     304    const TAttAxis atty(y);
     305    const TAttAxis attz(z);
     306    const Bool_t   tmx(x.GetTimeDisplay());
     307    const Bool_t   tmy(y.GetTimeDisplay());
     308    const Bool_t   tmz(z.GetTimeDisplay());
     309    const TString  tfx(x.GetTimeFormat());
     310    const TString  tfy(y.GetTimeFormat());
     311    const TString  tfz(z.GetTimeFormat());
     312
    274313    //
    275314    // This is a necessary workaround if one wants to set
     
    288327    y.Set(binsy->GetNumBins(), binsy->GetEdges());
    289328    z.Set(binsz->GetNumBins(), binsz->GetEdges());
     329
     330    // All this is reset by TAxis::Set
     331    attx.Copy(x);
     332    atty.Copy(y);
     333    attz.Copy(z);
     334    x.SetTimeDisplay(tmx);
     335    y.SetTimeDisplay(tmy);
     336    z.SetTimeDisplay(tmz);
     337    x.SetTimeFormat(tfx);
     338    y.SetTimeFormat(tfy);
     339    z.SetTimeFormat(tfz);
     340
    290341#if ROOT_VERSION_CODE < ROOT_VERSION(3,03,03)
    291342    x.SetTitle(xtitle);
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r4760 r4895  
    461461*/
    462462
     463// --------------------------------------------------------------------------
     464//
     465// The following resource options are available:
     466//   Prefix.DataCheckDisplay: Yes, No
     467//   Prefix.DataCheck:        Yes, No
     468//   Prefix.UseData:          Yes, No
     469//
    463470Bool_t MJPedestal::CheckEnvLocal()
    464471{
     
    467474
    468475    SetDataCheck(GetEnv("DataCheck", fDataCheck));
    469     SetOverwrite(GetEnv("Overwrite", fOverwrite));
     476    SetUseData(GetEnv("UseData", fUseData));
    470477
    471478    return kTRUE;
     
    565572    if (fSequence.IsValid())
    566573    {
     574        const TString type = fUseData ? "data" : "pedestal";
    567575        const Int_t n0 = fUseData ? fSequence.SetupDatRuns(iter, fPathData) : fSequence.SetupPedRuns(iter, fPathData);
    568576        const Int_t n1 = fUseData ? fSequence.GetNumDatRuns() : fSequence.GetNumPedRuns();
    569577        if (n0==0)
    570578        {
    571             *fLog << err << "ERROR - No input files of sequence found!" << endl;
     579            *fLog << err << "ERROR - No " << type << " input files of sequence found in " << fPathData << endl;
    572580            return kFALSE;
    573581        }
    574582        if (n0!=n1)
    575583        {
    576             *fLog << err << "ERROR - Number of files found (" << n0 << ") doesn't match number of files in sequence (" << n1 << ")" << endl;
     584            *fLog << err << "ERROR - Number of " << type << " files found (" << n0 << ") in " << fPathData << " doesn't match number of files in sequence (" << n1 << ")" << endl;
    577585            return kFALSE;
    578586        }
Note: See TracChangeset for help on using the changeset viewer.