Changeset 9573


Ignore:
Timestamp:
04/19/10 13:40:16 (15 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9571 r9573  
    3030   * mgeom/MGeom.[h,cc]:
    3131     - implemented function to return the distance squared
     32
     33   * mjobs/MJSimulation.cc:
     34     - display degree symbol correctly in plots
     35     - added artificial star-files to output
     36     - for the moment the output of the reflector files is suppressed
     37
     38   * mmuon/MHSingleMuon.cc:
     39     - catch if the fit failed
     40     - replaced use of gMinuit by direct access to the function
     41
     42   * mpointing/MPointing.cc:
     43     - replaced deg-symbol by UTF8 character
     44
     45   * mpointing/MPointingDevCalc.cc:
     46     - added more information
     47
     48   * msignal/MSignalCam.[h,cc]:
     49     - made the data members describing the image persistent.
     50       they are not guranteed to have correct contents. Use
     51       MNewImagePar instead.
     52     - increased class version number accordingly
     53
     54   * msimreflector/MMirrorHex.h:
     55     - added Getter for fD
    3256
    3357
  • trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc

    r9369 r9573  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MHSingleMuon.cc,v 1.19 2009-03-01 21:48:14 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MHSingleMuon.cc,v 1.20 2010-04-19 12:40:16 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    8484
    8585#include <TF1.h>
    86 #include <TMinuit.h>
    8786#include <TPad.h>
    8887#include <TCanvas.h>
     
    231230
    232231        // use only the inner pixles. FIXME: This is geometry dependent
    233         if(gpix.GetAidx()>0)
     232        if (gpix.GetAidx()>0)
    234233            continue;
    235234
    236235        fHistWidth.Fill(dist*fGeomCam->GetConvMm2Deg(), pix.GetNumPhotons());
    237236    }
     237
    238238    // Setup the function and perform the fit
    239239    TF1 g1("g1", "gaus");//, -fHistTime.GetXmin(), fHistTime.GetXmax());
     
    253253    //           R  use the range specified in the function range
    254254    //           Q  quiet mode
    255     fHistTime.Fit(&g1, "QNB");
    256 
    257     Double_t dummy;
    258     gMinuit->GetParameter(1, fRelTimeMean,   dummy);  // get the mean  value
    259     gMinuit->GetParameter(2, fRelTimeSigma,  dummy);  // get the sigma value
     255    if (fHistTime.Fit(&g1, "QNB"))
     256        return kTRUE;
     257
     258    fRelTimeMean  = g1.GetParameter(1);
     259    fRelTimeSigma = g1.GetParameter(2);
    260260
    261261    // The mean arrival time which was subtracted before will
     
    435435    fHistWidth.Fit(&f1, "QRN");
    436436
    437     chi = f1.GetChisquare()/f1.GetNDF();
    438 
    439     Double_t ferr;
    440     gMinuit->GetParameter(2, width, ferr); // get the sigma value
     437    if (!gMinuit)
     438        return kFALSE;
     439
     440    chi   = f1.GetChisquare()/f1.GetNDF();
     441    width = f1.GetParameter(2);
    441442
    442443    return kTRUE;
  • trunk/MagicSoft/Mars/mpointing/MPointing.cc

    r8958 r9573  
    268268        sout += '\t';
    269269        sout += Form("%11f", val);
    270         sout += "°     \t";
     270        sout += UTF8::kDeg;
     271        sout += "     \t";
    271272        val *= TMath::DegToRad();
    272273
  • trunk/MagicSoft/Mars/mpointing/MPointingDevCalc.cc

    r9565 r9573  
    126126//               shifted a little bit.
    127127//
    128 //   16.04.2006: Around this date a roque lamp focussing hass been done
     128//   16.04.2006: Around this date a roque lamp focussing has been done
    129129//
    130130//   25.04.2006: A missalignment introduced with the roque adjust has been
     
    171171//   01. Feb. 2010              New pointing models for both telescopes
    172172//   26. Feb. 2010              New pointing models for both telescopes
     173//   31. Mar. 2010              New pointing models for both telescopes
    173174//
    174175// From 2.2.2006 beginnig of the night (21:05h, run >=81855) to 24.2.2006
     
    277278//
    278279//
     280// [2010-02-03 M. Garcz.]
     281//
     282// New LUTs for M2
     283//
     284//
    279285// Others
    280286// ------
  • trunk/MagicSoft/Mars/msignal/MSignalCam.cc

    r9374 r9573  
    1818!   Author(s): Thomas Bretz, 03/2005 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2007
     20!   Copyright: MAGIC Software Development, 2000-2010
     21!
     22! Version 2:
     23! ----------
     24!
     25! Made persistent (the correct contets is not guranteed, because it is
     26! calculated from the outside (e.g. in MImgCleanStd))
     27!
     28!    Short_t       fNumIslands;                  //!
     29!    Short_t       fNumSinglePixels;             //!
     30!    Float_t       fSizeSinglePixels;            //!
     31!    Float_t       fSizeSubIslands;              //!
     32!    Float_t       fSizeMainIsland;              //!
    2133!
    2234!
  • trunk/MagicSoft/Mars/msignal/MSignalCam.h

    r8528 r9573  
    2020    friend class MSignalCamIter;
    2121private:
    22     Short_t       fNumIslands;
    23     Short_t       fNumSinglePixels;
    24     Float_t       fSizeSinglePixels;
    25     Float_t       fSizeSubIslands;
    26     Float_t       fSizeMainIsland;
     22    Short_t       fNumIslands;                  //!
     23    Short_t       fNumSinglePixels;             //!
     24    Float_t       fSizeSinglePixels;            //!
     25    Float_t       fSizeSubIslands;              //!
     26    Float_t       fSizeMainIsland;              //!
    2727
    2828    Int_t         fNumPixelsSaturatedHiGain;
     
    9494    operator TIterator*() const;
    9595
    96     ClassDef(MSignalCam, 1) // class for an event containing cerenkov photons
     96    ClassDef(MSignalCam, 2) // class for an event containing cerenkov photons
    9797};
    9898
  • trunk/MagicSoft/Mars/msimreflector/MMirrorHex.h

    r9371 r9573  
    2424    Double_t GetMaxR() const { return fMaxR; }
    2525    Double_t GetA() const;
     26    Double_t GetD() const { return fD; }
    2627
    2728    Bool_t CanHit(const MQuaternion &p) const;
Note: See TracChangeset for help on using the changeset viewer.