| 1 | /* ======================================================================== *\
|
|---|
| 2 | !
|
|---|
| 3 | ! *
|
|---|
| 4 | ! * This file is part of MARS, the MAGIC Analysis and Reconstruction
|
|---|
| 5 | ! * Software. It is distributed to you in the hope that it can be a useful
|
|---|
| 6 | ! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
|
|---|
| 7 | ! * It is distributed WITHOUT ANY WARRANTY.
|
|---|
| 8 | ! *
|
|---|
| 9 | ! * Permission to use, copy, modify and distribute this software and its
|
|---|
| 10 | ! * documentation for any purpose is hereby granted without fee,
|
|---|
| 11 | ! * provided that the above copyright notice appear in all copies and
|
|---|
| 12 | ! * that both that copyright notice and this permission notice appear
|
|---|
| 13 | ! * in supporting documentation. It is provided "as is" without express
|
|---|
| 14 | ! * or implied warranty.
|
|---|
| 15 | ! *
|
|---|
| 16 | !
|
|---|
| 17 | !
|
|---|
| 18 | ! Author(s): Keiichi Mase 10/2004 <mailto:mase@mppmu.mpg.de>
|
|---|
| 19 | ! Author(s): Markus Meyer 10/2004 <mailto:meyer@astro.uni-wuerzburg.de>
|
|---|
| 20 | !
|
|---|
| 21 | ! Copyright: MAGIC Software Development, 2000-2007
|
|---|
| 22 | !
|
|---|
| 23 | !
|
|---|
| 24 | \* ======================================================================== */
|
|---|
| 25 |
|
|---|
| 26 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 27 | //
|
|---|
| 28 | // MMuonCalibPar
|
|---|
| 29 | //
|
|---|
| 30 | // Storage Container for muon
|
|---|
| 31 | //
|
|---|
| 32 | // This class holds some information for a calibration using muons. Muons
|
|---|
| 33 | // are identified by using the class of the MMuonSearchParCalc. You can fill
|
|---|
| 34 | // these information by using the MMuonCalibParCalc. See also these class
|
|---|
| 35 | // 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
|
|---|
| 41 | //
|
|---|
| 42 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 43 | #include "MMuonCalibPar.h"
|
|---|
| 44 |
|
|---|
| 45 | #include "MLog.h"
|
|---|
| 46 | #include "MLogManip.h"
|
|---|
| 47 |
|
|---|
| 48 | using namespace std;
|
|---|
| 49 |
|
|---|
| 50 | ClassImp(MMuonCalibPar);
|
|---|
| 51 |
|
|---|
| 52 | // --------------------------------------------------------------------------
|
|---|
| 53 | //
|
|---|
| 54 | // Default constructor.
|
|---|
| 55 | //
|
|---|
| 56 | MMuonCalibPar::MMuonCalibPar(const char *name, const char *title)
|
|---|
| 57 | {
|
|---|
| 58 | fName = name ? name : "MMuonCalibPar";
|
|---|
| 59 | fTitle = title ? title : "Parameters to calculate Muon calibration";
|
|---|
| 60 |
|
|---|
| 61 | Reset();
|
|---|
| 62 | }
|
|---|
| 63 |
|
|---|
| 64 | // --------------------------------------------------------------------------
|
|---|
| 65 | //
|
|---|
| 66 | void MMuonCalibPar::Reset()
|
|---|
| 67 | {
|
|---|
| 68 | // fArcLength = -1.;
|
|---|
| 69 | fArcPhi = -1.;
|
|---|
| 70 | fArcWidth = -1.;
|
|---|
| 71 | fChiArcPhi = -1.;
|
|---|
| 72 | fChiArcWidth = -1.;
|
|---|
| 73 | fMuonSize = 0.;
|
|---|
| 74 | // fEstImpact = -1.;
|
|---|
| 75 | fPeakPhi = 0.;
|
|---|
| 76 |
|
|---|
| 77 | fRelTimeMean = 0;
|
|---|
| 78 | fRelTimeSigma = -1;
|
|---|
| 79 | }
|
|---|
| 80 |
|
|---|
| 81 | void MMuonCalibPar::Print(Option_t *) const
|
|---|
| 82 | {
|
|---|
| 83 | *fLog << all;
|
|---|
| 84 | *fLog << GetDescriptor() << endl;
|
|---|
| 85 | *fLog << " - Arc Phi [deg] = " << fArcPhi << endl;
|
|---|
| 86 | *fLog << " - Arc Width [deg] = " << fArcWidth << endl;
|
|---|
| 87 | *fLog << " - Red ChiSq Arc Phi = " << fChiArcPhi << endl;
|
|---|
| 88 | *fLog << " - Red ChiSq Arc Width = " << fChiArcWidth << endl;
|
|---|
| 89 | *fLog << " - Size of muon [phe] = " << fMuonSize << endl;
|
|---|
| 90 | *fLog << " - Peak Phi [deg] = " << fPeakPhi << endl;
|
|---|
| 91 | *fLog << " - Rel.Time Mean [ns] = " << fRelTimeMean << endl;
|
|---|
| 92 | *fLog << " - Rel.Time Sigma [ns] = " << fRelTimeSigma << endl;
|
|---|
| 93 | }
|
|---|
| 94 |
|
|---|