Changeset 1599 for trunk/MagicSoft


Ignore:
Timestamp:
11/11/02 10:21:55 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1597 r1599  
    11                                                                  -*-*- END -*-*-
     2
     3 2002/11/11: Thomas Bretz
     4
     5   * manalysis/MHillas.cc:
     6     - moved division by size before test of number of used pixels
     7
     8   * mfileio/MCT1ReadPreProc.cc:
     9     - added a eof-conditional
     10
     11   * mhist/MH3.cc:
     12     - added a 'nonew' option to DrawClone
     13
     14   * mhist/MHHadronness.cc:
     15     - check for NaN in Fill
     16
     17
     18
    219 2002/11/08: Oscar Blanch
    320
    421   * mgeom/MGeomPMT.[h,cc]:
    522     - added
    6      - Infromation about simulated QE
    7 
    8    * mgeom/MGeomMirror.[h,cc];
     23     - Information about simulated QE
     24
     25   * mgeom/MGeomMirror.[h,cc]:
    926     - added
    1027     - Mirrors properties
     
    1330     - modified to compile new classes
    1431
    15    * mmc/MMcConfigRunHeader.[h,cc]
    16      -added
    17 
    18    *mmc/Makefile
    19      -modified to compile new classes
     32   * mmc/MMcConfigRunHeader.[h,cc]:
     33     - added
     34
     35   * mmc/Makefile:
     36     - modified to compile new classes
     37
     38
    2039
    2140 2002/11/08: Thomas Bretz
  • trunk/MagicSoft/Mars/manalysis/MHillas.cc

    r1540 r1599  
    289289    }
    290290
     291    fMeanX /= fSize;                                 // [mm]
     292    fMeanY /= fSize;                                 // [mm]
     293
    291294    if (fNumUsedPixels<3)
    292295    {
     
    294297        return 3;
    295298    }
    296 
    297     fMeanX /= fSize;                                 // [mm]
    298     fMeanY /= fSize;                                 // [mm]
    299299
    300300    //
  • trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc

    r1584 r1599  
    732732    fIn->read((Byte_t*)&event, size1+size2);
    733733
     734    if (fIn->eof())
     735        return kFALSE;
     736
    734737    ProcessEvent(event);
    735738
  • trunk/MagicSoft/Mars/mhist/MH3.cc

    r1574 r1599  
    420420TObject *MH3::DrawClone(Option_t *opt) const
    421421{
    422     TCanvas &c = *MH::MakeDefCanvas(fHist);
    423 
    424     //
    425     // This is necessary to get the expected bahviour of DrawClone
    426     //
    427     gROOT->SetSelectedPad(NULL);
    428 
    429422    TString str(opt);
     423
     424    TVirtualPad *c = gPad;
     425    if (!str.Contains("nonew", TString::kIgnoreCase))
     426    {
     427        c = MH::MakeDefCanvas(fHist);
     428
     429        //
     430        // This is necessary to get the expected bahviour of DrawClone
     431        //
     432        gROOT->SetSelectedPad(NULL);
     433    }
    430434
    431435    if (str.Contains("COL", TString::kIgnoreCase))
     
    439443    {
    440444        TProfile *p = ((TH2*)fHist)->ProfileX("_pfx", -1, 9999, "s");
     445        p->SetLineColor(kBlue);
    441446        p->Draw(only?"":"same");
    442447        p->SetBit(kCanDelete);
     
    446451    {
    447452        TProfile *p = ((TH2*)fHist)->ProfileY("_pfy", -1, 9999, "s");
     453        p->SetLineColor(kBlue);
    448454        p->Draw(only?"":"same");
    449455        p->SetBit(kCanDelete);
     
    451457    }
    452458
    453     if (fHist->TestBit(kIsLogx)) c.SetLogx();
    454     if (fHist->TestBit(kIsLogy)) c.SetLogy();
    455     if (fHist->TestBit(kIsLogz)) c.SetLogz();
    456 
    457     c.Modified();
    458     c.Update();
    459 
    460     return &c;
     459    if (fHist->TestBit(kIsLogx)) c->SetLogx();
     460    if (fHist->TestBit(kIsLogy)) c->SetLogy();
     461    if (fHist->TestBit(kIsLogz)) c->SetLogz();
     462
     463    c->Modified();
     464    c->Update();
     465
     466    return c;
    461467}
    462468
     
    493499    {
    494500        TProfile *p = ((TH2*)fHist)->ProfileX("_pfx", -1, 9999, "s");
     501        p->SetLineColor(kBlue);
    495502        p->Draw(only?"":"same");
    496503        p->SetBit(kCanDelete);
     
    500507    {
    501508        TProfile *p = ((TH2*)fHist)->ProfileY("_pfy", -1, 9999, "s");
     509        p->SetLineColor(kBlue);
    502510        p->Draw(only?"":"same");
    503511        p->SetBit(kCanDelete);
  • trunk/MagicSoft/Mars/mhist/MHHadronness.cc

    r1574 r1599  
    182182// histogram dependant on the particle id.
    183183//
     184// Sometimes a distance is calculated as NaN (not a number). Such events
     185// are skipped at the moment.
     186//
    184187Bool_t MHHadronness::Fill(const MParContainer *par)
    185188{
     189    // Preliminary Workaround: FIXME!
     190
     191    const Double_t h = fHadronness->GetHadronness();
     192
     193    if (TMath::IsNaN(h))
     194        return kCONTINUE;
     195
    186196    if (fMcEvt->GetPartId()==kGAMMA)
    187         fGhness->Fill(fHadronness->GetHadronness());
     197        fGhness->Fill(h);
    188198    else
    189         fPhness->Fill(fHadronness->GetHadronness());
     199        fPhness->Fill(h);
    190200
    191201    return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.