Changeset 2512 for trunk


Ignore:
Timestamp:
11/13/03 21:19:13 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2510 r2512  
    11                                                 -*-*- END OF LINE -*-*-
     2 2003/11/13: Thomas Bretz
     3
     4   * macros/readCT1.C:
     5     - fixed to work with the new MHCamera::Draw (see Mantis)
     6     - changed to display event and cleaned event
     7     
     8   * macros/readMagic.C:
     9     - fixed to work with the new MHCamera::Draw (see Mantis)
     10
     11   * mhist/MHEvent.cc:
     12     - fixed display of the energy (see Mantis)
     13     
     14   * mmain/MEventDisplay.cc:
     15     - fixed usage of small canvas with new MHCamera::Draw
     16
     17
     18
    219 2003/11/11: Rudy Bock
    320 
    4    * mfilter/MFGeomag.cc and ...h:
     21   * mfilter/MFGeomag.[h,cc]:
    522     - added a new class which reads two ASCII files (for +ve and -ve
    6      particles) from the mfilter directory, and filters out
    7      low-energy charged Monte Carlo particles which do not reach the
    8      earth's surface. Tables are from Adrian Biland. A method is included which
    9      allows treating gammas as electrons (i.e. rejects low energy particles).
    10 
    11  
     23       particles) from the mfilter directory, and filters out
     24       low-energy charged Monte Carlo particles which do not reach the
     25       earth's surface. Tables are from Adrian Biland. A method is
     26       included which allows treating gammas as electrons (i.e. rejects
     27       low energy particles).
     28
     29
     30
    1231 2003/11/11: Nicola Galante
    1332
     
    1534     - Removed 'const' qualifier for the returned object of the
    1635       method (TH1 *)MHMcTriggerLvl2::GetHistByName(const TString name)
    17  
     36
     37
    1838
    1939 2003/11/10: Nicola Galante
  • trunk/MagicSoft/Mars/macros/readCT1.C

    r2438 r2512  
    8282
    8383    Int_t icount = 0;
    84     MHCamera display(geomcam);
    85     display.Draw();
     84    MHCamera display1(*geomcam);
     85    MHCamera display2(*geomcam);
     86
     87    TCanvas c("Events", "Real Events", 300, 600);
     88    c.SetBorderMode(0);
     89    c.Divide(1,2);
     90    c.cd(1);
     91    display1.Draw();
     92    gPad->cd(1);
     93    hillas.Draw();
     94    c.cd(2);
     95    display2.Draw();
     96    gPad->cd(1);
     97    hillas.Draw();
    8698
    8799    while ((rc=tlist.Process()))
     
    93105            continue;
    94106
    95         display.SetCamContent(*evt);
    96         display.Update();
     107        display1.SetCamContent(*(MCerPhotEvt*)clone.GetClone());
     108        display2.SetCamContent(*(MCerPhotEvt*)plist.FindObject("MCerPhotEvt"));
    97109
    98         if (!HandleInput())
    99             break;
     110        c->GetPad(1)->GetPad(1)->Modified();
     111        c->GetPad(1)->GetPad(1)->Update();
     112        c->GetPad(2)->GetPad(1)->Modified();
     113        c->GetPad(2)->GetPad(1)->Update();
    100114
    101         hillas.Draw();
    102115        hillas.Print();
    103116        hillasext.Print();
    104117        newimgpar.Print();
    105 
    106         display.SetCamContent(*(MCerPhotEvt*)plist.FindObject("MCerPhotEvt"));
    107         display.Update();
    108118
    109119        if (!HandleInput())
  • trunk/MagicSoft/Mars/macros/readMagic.C

    r2438 r2512  
    4646}
    4747
    48 void readMagic(const char *fname="~/Proton_zbin0_0_7_11650to11659_w0.root")
     48void readMagic(const char *fname="../Proton*.root")
    4949{
    5050    MParList plist;
     
    105105    c.Divide(1,2);
    106106    c.cd(1);
    107     gPad->SetBorderMode(0);
    108     gPad->Divide(1,1);
     107    display1.Draw();
    109108    gPad->cd(1);
    110     gPad->SetBorderMode(0);
    111     display1.Draw();
     109    hillas.Draw();
    112110    c.cd(2);
    113     gPad->SetBorderMode(0);
    114     gPad->Divide(1,1);
     111    display2.Draw();
    115112    gPad->cd(1);
    116     gPad->SetBorderMode(0);
    117     display2.Draw();
     113    hillas.Draw();
    118114
    119115    // Use this if you don't want the event to be autoscaled
     
    128124        display2.SetCamContent(*(MCerPhotEvt*)plist.FindObject("MCerPhotEvt"));
    129125
    130         c->cd(1);
    131         gPad->cd(1);
    132         gPad->Modified();
    133         gPad->Update();
    134         c->cd(2);
    135         gPad->cd(1);
    136         hillas.Draw();
    137         gPad->Modified();
    138         gPad->Update();
     126        c->GetPad(1)->GetPad(1)->Modified();
     127        c->GetPad(1)->GetPad(1)->Update();
     128        c->GetPad(2)->GetPad(1)->Modified();
     129        c->GetPad(2)->GetPad(1)->Update();
    139130
    140131        hillas.Print();
  • trunk/MagicSoft/Mars/mhist/MHEvent.cc

    r2490 r2512  
    229229        s += "  E=";
    230230        if (fMcEvt->GetEnergy()>1000)
    231             txt += Form("%.1fTeV", fMcEvt->GetEnergy()/1000);
     231            s += Form("%.1fTeV", fMcEvt->GetEnergy()/1000);
    232232        else
    233             txt += Form("%dGeV", fMcEvt->GetEnergy()+.5);
     233            s += Form("%dGeV", fMcEvt->GetEnergy()+.5);
    234234        s += " r=";
    235235        s += (int)(fMcEvt->GetImpact()/100+.5);
  • trunk/MagicSoft/Mars/mmain/MEventDisplay.cc

    r2488 r2512  
    454454    ReadinEvent();
    455455
    456     TGString *txt = new TGString(Form("of %d.", GetReader()->GetEntries()));
     456    TGString *txt = new TGString(Form("of %d", GetReader()->GetEntries()));
    457457    fNumOfEvts->SetText(txt);
    458458
     
    463463    MHEvent *o = (MHEvent*)plist->FindObject("Signal");
    464464    fCanvas->SetName(Form("%p;%p;PixelContent", o->GetHist(),
    465                           GetCanvas(1)->GetPad(1)->GetPad(1)));
     465                          GetCanvas(1)->GetPad(1)));
    466466
    467467    //
Note: See TracChangeset for help on using the changeset viewer.