Changeset 4700


Ignore:
Timestamp:
08/23/04 09:45:40 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4698 r4700  
    3131   * mfileio/MWriteRootFile.[h,cc]:
    3232     - added cd() member function
     33
     34   * mimage/MHHillas.[h,cc]:
     35     - added display of camera on top of MeanXY-plot
    3336
    3437
  • trunk/MagicSoft/Mars/mimage/MHHillas.cc

    r2416 r4700  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  2001 <mailto:tbretz@uni-sw.gwdg.de>
    19 !             Wolfgang Wittek  2002 <mailto:wittek@mppmu.mpg.de>
    20 !
    21 !   Copyright: MAGIC Software Development, 2000-2002
     18!   Author(s): Thomas Bretz  2001 <mailto:tbretz@astro.uni-wuerzburg.de>
     19!   Author(s): Wolfgang Wittek  2002 <mailto:wittek@mppmu.mpg.de>
     20!
     21!   Copyright: MAGIC Software Development, 2000-2004
    2222!
    2323!
     
    5050#include "MBinning.h"
    5151
     52#include "MHCamera.h"
    5253
    5354ClassImp(MHHillas);
     
    6061//
    6162MHHillas::MHHillas(const char *name, const char *title)
    62     : fMm2Deg(1), fUseMmScale(kTRUE)
     63    : fGeomCam(0), fMm2Deg(1), fUseMmScale(kTRUE)
    6364{
    6465    //
     
    141142Bool_t MHHillas::SetupFill(const MParList *plist)
    142143{
    143     const MGeomCam *geom = (MGeomCam*)plist->FindObject("MGeomCam");
    144     if (!geom)
     144    fGeomCam = (MGeomCam*)plist->FindObject("MGeomCam");
     145    if (!fGeomCam)
    145146        *fLog << warn << GetDescriptor() << ": No Camera Geometry available. Using mm-scale for histograms." << endl;
    146147    else
    147148    {
    148         fMm2Deg = geom->GetConvMm2Deg();
     149        fMm2Deg = fGeomCam->GetConvMm2Deg();
    149150        SetMmScale(kFALSE);
    150151    }
     
    159160    if (!bins)
    160161    {
    161         float r = geom ? geom->GetMaxRadius() : 600;
     162        float r = fGeomCam ? fGeomCam->GetMaxRadius() : 600;
    162163        r *= 0.9;
    163164        if (!fUseMmScale)
     
    312313    SetColors();
    313314    fCenter->Draw("colz");
     315    if (fGeomCam)
     316    {
     317        MHCamera *cam = new MHCamera(*fGeomCam);
     318        cam->Draw("same");
     319        cam->SetBit(kCanDelete);
     320    }
    314321
    315322    pad->cd(5);
  • trunk/MagicSoft/Mars/mimage/MHHillas.h

    r2416 r4700  
    99class TH2F;
    1010class MHillas;
     11class MGeomCam;
    1112
    1213class MHHillas : public MH
     
    2425
    2526    void SetColors() const;
     27
     28    MGeomCam *fGeomCam; //! Camera geometry for plots (for the moment this is a feature for a loop only!)
    2629
    2730    Float_t fMm2Deg;
Note: See TracChangeset for help on using the changeset viewer.