Changeset 3238


Ignore:
Timestamp:
02/19/04 10:39:30 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3237 r3238  
    1919     - Don't call Sumw2() anymore for projection
    2020
    21    * mjobs/MJExtractSignal.cc:
     21   * mjobs/MJPedestal.cc:
    2222     - added MPedestalCam to output again - MPedestalCam was fixed
    2323       yesterday
  • trunk/MagicSoft/Mars/mfileio/MWriteAsciiFile.cc

    r2173 r3238  
    199199    while ((obj=(MParContainer*)Next()))
    200200    {
     201        //
     202        // Check for the Write flag
     203        //
    201204        if (!obj->IsReadyToSave())
    202205            continue;
    203206
     207        //
     208        // Write container to file
     209        //
    204210        if (!obj->AsciiWrite(*fOut))
    205211            continue;
    206212
     213        //
     214        // Store that at least one container was written
     215        //
    207216        written = kTRUE;
    208217
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r3143 r3238  
    4747#include "MStatusDisplay.h"
    4848
     49#include "MGeomCam.h"
    4950#include "MHCamera.h"
    5051#include "MPedestalCam.h"
     
    114115    obj2->Draw();
    115116    obj2->SetBit(kCanDelete);
     117    gPad->SetLogy();
     118
     119    if (obj1->GetGeomCam().InheritsFrom("MGeomCamMagic"))
     120    {
     121        // Just to get the right (maximum) binning
     122        TH1D *half[2];
     123        half[0] = obj1->Projection("Sector 6-1-2");
     124        half[1] = obj1->Projection("Sector 3-4-5");
     125
     126        half[0]->Reset();
     127        half[1]->Reset();
     128
     129        TH1D *dummy = obj1->Projection("Dummy");
     130
     131        for (int i=1; i<7/*obj1->GetGeomCam().GetNumSectors()*/; i++)
     132            half[(i/3)%2]->Add(obj1->ProjectionS(i, "Dummy"));
     133
     134        for (int i=0; i<2; i++)
     135        {
     136            half[i]->SetLineColor(kRed+i);
     137            half[i]->SetDirectory(0);
     138            half[i]->SetBit(kCanDelete);
     139            half[i]->Draw("same");
     140        }
     141
     142        delete dummy;
     143    }
    116144
    117145    const Double_t min   = obj2->GetBinCenter(obj2->GetXaxis()->GetFirst());
     
    209237    //
    210238    MHCamera disp0(geomcam, "MPedestalCam;ped", "Pedestals");
    211     MHCamera disp1(geomcam, "MPedestalCam;rms", "Pedestal RMS");
     239    MHCamera disp1(geomcam, "MPedestalCam;var", "Sigma Pedestal");
    212240
    213241    disp0.SetCamContent(fPedestalCam, 0);
     
    218246
    219247    disp0.SetYTitle("P [fadc/slice]");
    220     disp1.SetYTitle("P_{RMS} [fadc/slice]");
     248    disp1.SetYTitle("\\sigma_{P} [fadc/slice]");
    221249
    222250    //
Note: See TracChangeset for help on using the changeset viewer.