Changeset 8776


Ignore:
Timestamp:
Dec 3, 2007, 5:46:31 PM (13 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8775 r8776  
    2929   * mhflux/MHAlpha.[h,cc]:
    3030     - added new member functions to apply scaling to off-data
    31      - added a public member function which allows to reinitiate fitting
     31     - added a public member function which allows to reinitiate
     32       fitting
    3233
    3334   * mhist/MHCamera.cc:
    34      - replaced a loop to reset the used pixels by a call to fUsed.Reset()
     35     - replaced a loop to reset the used pixels by a call
     36       to fUsed.Reset()
    3537
    3638   * mmuon/MHSingleMuon.[h,cc]:
     
    4345
    4446   * mmuon/MMuonCalibParCalc.cc:
    45      - copy result of arrival time fit from histogram to storage container
     47     - copy result of arrival time fit from histogram to storage
     48       container
    4649
    4750
  • trunk/MagicSoft/Mars/mmuon/MHSingleMuon.h

    r7369 r8776  
    2828    TH1F     fHistTime;   // Histogram of arrival time distribution along the arc.
    2929
     30    Double_t fRelTimeMean;   // Result of the gaus fit to the arrival time
     31    Double_t fRelTimeSigma;  // Result of the gaus fit to the arrival time
     32
    3033    Bool_t FindRangeAboveThreshold(const TProfile &h, Float_t thres, Int_t &first, Int_t &last) const;
    3134
     
    4346    const TProfile &GetHistWidth() const { return fHistWidth; }
    4447
     48    Double_t GetRelTimeMean() const  { return fRelTimeMean; }
     49    Double_t GetRelTimeSigma() const { return fRelTimeSigma; }
     50
    4551    Float_t CalcSize() const;
    4652
     
    4854    void Paint(Option_t *o="");
    4955
    50     ClassDef(MHSingleMuon, 1)
     56    ClassDef(MHSingleMuon, 2)
    5157};
    5258
  • trunk/MagicSoft/Mars/mmuon/MMuonCalibPar.cc

    r7176 r8776  
    1919!   Author(s): Markus Meyer 10/2004 <mailto:meyer@astro.uni-wuerzburg.de>
    2020!
    21 !   Copyright: MAGIC Software Development, 2000-2005
     21!   Copyright: MAGIC Software Development, 2000-2007
    2222!
    2323!
     
    3434// these information by using the MMuonCalibParCalc. See also these class
    3535// manuals.
     36//
     37// Class Version 2:
     38// ----------------
     39//   + Float_t fRelTimeMean;   // Result of the gaus fit to the arrival time
     40//   + Float_t fRelTimeSigma;  // Result of the gaus fit to the arrival time
    3641//
    3742/////////////////////////////////////////////////////////////////////////////
     
    6974//    fEstImpact   = -1.;
    7075    fPeakPhi     =  0.;
     76
     77    fRelTimeMean    =  0;
     78    fRelTimeSigma   = -1;
    7179}
    7280
     
    8189    *fLog << " - Size of muon   [phe] = " << fMuonSize    << endl;
    8290    *fLog << " - Peak Phi       [deg] = " << fPeakPhi     << endl;
     91    *fLog << " - Rel.Time Mean   [ns] = " << fRelTimeMean  << endl;
     92    *fLog << " - Rel.Time Sigma  [ns] = " << fRelTimeSigma << endl;
    8393}
    8494
  • trunk/MagicSoft/Mars/mmuon/MMuonCalibPar.h

    r7009 r8776  
    2626    Float_t fPeakPhi;       // The angle which indicates the peak position in the estimated circle
    2727
     28    Float_t fRelTimeMean;      // [ns] Result of the gaus fit to the arrival time
     29    Float_t fRelTimeSigma;     // [ns] Result of the gaus fit to the arrival time
     30
    2831public:
    2932    MMuonCalibPar(const char *name=NULL, const char *title=NULL);
     
    4144    //Bool_t  IsUseUnmap()        const { return fUseUnmap; }
    4245    Float_t GetPeakPhi()        const { return fPeakPhi; }
     46    Float_t GetRelTimeMean()    const { return fRelTimeMean; }
     47    Float_t GetRelTimeSigma()   const { return fRelTimeSigma; }
    4348
    4449//    void    SetArcLength(Float_t len)       { fArcLength = len; }
     
    5156    //void    SetUseUnmap()                   { fUseUnmap = kTRUE; }
    5257    void    SetPeakPhi(Float_t phi)         { fPeakPhi = phi; }
     58    void    SetTime(Float_t mean, Float_t sigma) { fRelTimeMean=mean; fRelTimeSigma=sigma; }
    5359
    5460    void    Print(Option_t *opt=NULL) const;
    5561
    56     ClassDef(MMuonCalibPar, 1) // Container to hold muon calibration parameters
     62    ClassDef(MMuonCalibPar, 2) // Container to hold muon calibration parameters
    5763};
    5864   
  • trunk/MagicSoft/Mars/mmuon/MMuonCalibParCalc.cc

    r7369 r8776  
    175175    fMuonCalibPar->SetArcPhi(arcphi);
    176176
     177    fMuonCalibPar->SetTime(fHist->GetRelTimeMean(), fHist->GetRelTimeSigma());
     178
    177179//    const Float_t conv = TMath::RadToDeg()*fGeomCam->GetConvMm2Deg();
    178180//    fMuonCalibPar->SetArcLength(fMuonCalibPar->GetArcPhi()
Note: See TracChangeset for help on using the changeset viewer.