Changeset 2372 for trunk/MagicSoft


Ignore:
Timestamp:
10/02/03 23:00:51 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2370 r2372  
    22
    33 
     4  2003/10/02: Thomas Bretz
     5
     6   * mraw/MRawEvtData.cc:
     7     - changed Draw so that also lo-gains are displayed.2
     8
     9
     10
    411  2003/10/01: Nicola Galante
    512
     
    1825
    1926  2003/09/30: Robert Wagner
     27
    2028   * mfileio/MCT1ReadPreProc.cc
    2129     - undone change from 2003/09/26
     
    5563
    5664 2003/09/26: Robert Wagner
     65
    5766   * mfileio/MCT1ReadPreProc.cc
    5867     - provisionally pass complete event time to fTime container,
     
    6271
    6372 2003/09/25: Abelardo Moralejo
     73
    6474   * macros/MagicHillas.C, star.C
    65      - Added cast: TArrayF w(15,(Float_t*)x)  to get rid of warning.
     75     - Added cast: TArrayF w(15,(Float_t*)x) to get rid of warning.
    6676
    6777
    6878
    6979 2003/09/24: Abelardo Moralejo
     80
    7081   * macros/MagicHillas.C, star.C
    7182     - Added const qualifier to TArrayF w(15,x); I got a crash due to
     
    132143       'if' by a 'switch' and slightly corrected text of warning (no
    133144       change in performance or results).
     145
     146
    134147
    135148 2003/09/16: Abelardo Moralejo
     
    152165       correctly implemented, so this should not introduce any change
    153166       in the analysis of present or old MC files.
     167
     168
    154169
    155170 2003/09/12: Thomas Bretz
  • trunk/MagicSoft/Mars/mraw/MRawEvtData.cc

    r2264 r2372  
    258258        *fLog << " of " << (int)GetNumPixels() << "Pixels" << endl;
    259259
    260         TGraph *graph = new TGraph;
     260        TGraph *graphhi = new TGraph;
    261261
    262262        for (int i=0; i<nh; i++)
    263             graph->SetPoint(graph->GetN(), i, higains[i]);
    264 
    265         graph->SetMaximum(256);
    266         graph->SetMinimum(0);
    267 
    268         graph->SetBit(kCanDelete);
    269         graph->Draw(same ? "C*" : "AC*");
    270 
    271         TH1F *hist = graph->GetHistogram();
    272 
    273         hist->SetXTitle("Time/FADC Slices");
    274         hist->SetYTitle("Signal/FADC Units");
     263            graphhi->SetPoint(graphhi->GetN(), i, higains[i]);
     264
     265        graphhi->SetMaximum(256);
     266        graphhi->SetMinimum(0);
     267
     268        graphhi->SetBit(kCanDelete);
     269        graphhi->Draw(same ? "C*" : "AC*");
     270
     271        TH1F *histhi = graphhi->GetHistogram();
     272
     273        histhi->SetXTitle("Time/FADC Slices");
     274        histhi->SetYTitle("Signal/FADC Units");
     275
     276        if (nl>0)
     277        {
     278            TGraph *graphlo = new TGraph;
     279
     280            for (int i=0; i<nl; i++)
     281                graphlo->SetPoint(graphlo->GetN(), i, logains[i]);
     282
     283            graphlo->SetMaximum(256);
     284            graphlo->SetMinimum(0);
     285            graphlo->SetLineColor(kBlue);
     286
     287            graphlo->SetBit(kCanDelete);
     288            graphlo->Draw("C*");
     289
     290            TH1F *histlo = graphlo->GetHistogram();
     291
     292            histlo->SetXTitle("Time/FADC Slices");
     293            histlo->SetYTitle("Signal/FADC Units");
     294        }
    275295
    276296        return;
     
    291311        histh->Draw(same ? "same" : "");
    292312
    293         if (nh>0)
     313        if (nl>0)
    294314        {
    295315            TH1F *histl = new TH1F(name+";2", "FADC Samples", nl, -0.5, nl-.5);
Note: See TracChangeset for help on using the changeset viewer.