Changeset 2244


Ignore:
Timestamp:
06/27/03 14:22:16 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 added
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2243 r2244  
    11                                                 -*-*- END OF LINE -*-*-
     2
     3 2003/06/27: Thomas Bretz
     4 
     5   * macros/sumevents.C, macros/sumpedestals.C:
     6     - some small changes
     7     
     8   * manalysis/MPedestalCam.cc:
     9     - return pixel as used if the value is valid (>=0)
     10     
     11   * mhist/HistLinkDef.h, mhist/Makefile:
     12     - MHPixVsTime added (Name is preliminary)
     13
     14   * mhist/MHCamEvent.cc:
     15     - removed including MGeomPix
     16     
     17   * mhist/MHCamera.h:
     18     - in SetCamContent copy also number of entries
     19     
     20   * mraw/MRawEvtData.cc:
     21     - fixed to support correct pixel numbering
     22     
     23   * mhist/MHPixVsTime.[h,cc]:
     24     - added
     25
     26
    227
    328 2003/06/27: Abelardo Moralejo
     
    1035  * macros/CT1collectionArea.C, CT1EgyEst.C
    1136    - Changed theta binnings to adapt them to the new standard.
     37
     38
    1239
    1340 2003/06/26: Abelardo Moralejo
     
    2047      them to run on files with hadronness info.
    2148
    22  2003/06/26: Abelardo Moralejo
    23 
    2449  * mhistmc/MHMcEnergyMigration.cc
    2550    - exchanged axes of E_est and E_MC in the 3-d histograms.
     
    3156     - adapted to new function names in MPedestalPix (please Thomas
    3257       check these, I had to do it to make Mars compile)
     58
     59
    3360
    3461 2003/06/26: Thomas Bretz
     
    109136   * mmontecarlo/MMcCollectionAreaCalc.cc:
    110137     - minor change
    111      
    112 
    113  
     138
     139   * macros/sumevents.C, macros/sumpedestals.C:
     140     - added
     141
     142   * mhist/MHCamEvent.cc:
     143     - do not scale with 100
     144
     145   * mhist/MHCamera.cc:
     146     - fixed displaying number of entries when used
     147       SetCamContent(MHCamera&)
     148
    114149
    115150
  • trunk/MagicSoft/Mars/macros/sumevents.C

    r2238 r2244  
    7676    MHCamera *disp0 = h.GetHistByName();
    7777    MHCamera *disp1 = new MHCamera(geom, "MCerPhotEvt;avg", "Cerenkov Photons Avarage");
    78     MHCamera *disp2 = new MHCamera(geom, "MCerPhotEvt;rms", "Cerenkov Photons RMS");
    79     MHCamera *disp3 = new MHCamera(geom, "MCerPhotEvt;rel", "Cerenkov Photons RMS/VAL");
     78    MHCamera *disp2 = new MHCamera(geom, "MCerPhotEvt;err", "Cerenkov Photons Error");
     79    MHCamera *disp3 = new MHCamera(geom, "MCerPhotEvt;rel", "Cerenkov Photons ERR/VAL");
    8080    disp1->SetBit(kCanDelete);
    8181    disp2->SetBit(kCanDelete);
     
    8888    disp2->SetStats(kFALSE);
    8989    disp3->SetStats(kFALSE);
     90
     91    disp1->SetYTitle("a.u.");
     92    disp2->SetYTitle("err");
     93    disp3->SetYTitle("rel.err [%]");
    9094
    9195    c->cd(4);
  • trunk/MagicSoft/Mars/macros/sumpedestals.C

    r2238 r2244  
    7676    MHCamera *disp0 = h.GetHistByName();
    7777    MHCamera *disp1 = new MHCamera(geom, "MPedestalCam;avg", "Pedestals Avarage");
    78     MHCamera *disp2 = new MHCamera(geom, "MPedestalCam;rms", "Pedestals Avarage RMS");
    79     MHCamera *disp3 = new MHCamera(geom, "MPedestalCam;rel", "Pedestals Avarage RMS/VAL");
     78    MHCamera *disp2 = new MHCamera(geom, "MPedestalCam;rms", "Pedestals Avarage Error");
     79    MHCamera *disp3 = new MHCamera(geom, "MPedestalCam;rel", "Pedestals Avarage ERR/VAL");
    8080    disp1->SetBit(kCanDelete);
    8181    disp2->SetBit(kCanDelete);
     
    8888    disp2->SetStats(kFALSE);
    8989    disp3->SetStats(kFALSE);
     90
     91    disp1->SetXTitle("a.u.");
     92    disp2->SetXTitle("err");
     93    disp3->SetXTitle("rel.err [%]");
    9094
    9195    c->cd(4);
     
    114118
    115119    c->cd(2);
    116     gPad->SetLogy();
    117120    disp2->Draw("hist");
    118121
    119122    c->cd(3);
    120     gPad->SetLogy();
    121123    disp3->Draw("hist");
    122124
  • trunk/MagicSoft/Mars/manalysis/MPedestalCam.cc

    r2237 r2244  
    192192        break;
    193193    }
    194     return kTRUE;
     194    return val>=0;
    195195}
  • trunk/MagicSoft/Mars/mhist/HistLinkDef.h

    r2210 r2244  
    4444
    4545#pragma link C++ class MHCamera+;
    46 //#pragma link C++ class MHCurrents+;
    47 //#pragma link C++ class MHOnSubtraction+;
     46#pragma link C++ class MHPixVsTime+;
    4847
    4948#endif
  • trunk/MagicSoft/Mars/mhist/MHCamEvent.cc

    r2238 r2244  
    4343
    4444#include "MGeomCam.h"
    45 #include "MGeomPix.h"
    4645
    4746ClassImp(MHCamEvent);
  • trunk/MagicSoft/Mars/mhist/MHCamera.h

    r2236 r2244  
    9393    virtual void     SetCamContent(const MCamEvent &evt, Int_t type=0) { Reset(); AddCamContent(evt, type); }
    9494    virtual void     SetCamContent(const TArrayD &evt, const TArrayC *used=NULL) { Reset(); AddCamContent(evt, used); }
    95     virtual void     SetCamContent(const MHCamera &d, Int_t type=0) { Reset(), AddCamContent(d, type); }
     95    virtual void     SetCamContent(const MHCamera &d, Int_t type=0) { Reset(); fEntries=d.fEntries-1; AddCamContent(d, type); }
    9696    virtual void     CntCamContent(const MCamEvent &evt, Double_t threshold, Int_t type=0);
    9797    virtual void     CntCamContent(const TArrayD &evt, Double_t threshold, Bool_t ispos=kTRUE);
  • trunk/MagicSoft/Mars/mhist/Makefile

    r2210 r2244  
    3737           MH3.cc \
    3838           MHCamEvent.cc \
     39           MHPixVsTime.cc \
    3940           MHMatrix.cc \
    4041           MHFadcPix.cc \
  • trunk/MagicSoft/Mars/mraw/MRawEvtData.cc

    r2236 r2244  
    447447
    448448        // -1 converts the hardware pixel Id into the software pixel index
    449         const Int_t npix = fRunHeader->GetPixAssignment(ipos);
     449        const Int_t npix = (Int_t)fRunHeader->GetPixAssignment(ipos)-1;
    450450
    451451        // Check whether the pixel is connected or not
    452         if (npix==0)
     452        if (npix<0)
    453453            continue;
    454454
Note: See TracChangeset for help on using the changeset viewer.