source: trunk/MagicSoft/Mars/mmuon/MMuonCalibPar.cc@ 8550

Last change on this file since 8550 was 7176, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 2.6 KB
Line 
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-2005
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/////////////////////////////////////////////////////////////////////////////
38#include "MMuonCalibPar.h"
39
40#include "MLog.h"
41#include "MLogManip.h"
42
43using namespace std;
44
45ClassImp(MMuonCalibPar);
46
47// --------------------------------------------------------------------------
48//
49// Default constructor.
50//
51MMuonCalibPar::MMuonCalibPar(const char *name, const char *title)
52{
53 fName = name ? name : "MMuonCalibPar";
54 fTitle = title ? title : "Parameters to calculate Muon calibration";
55
56 Reset();
57}
58
59// --------------------------------------------------------------------------
60//
61void MMuonCalibPar::Reset()
62{
63// fArcLength = -1.;
64 fArcPhi = -1.;
65 fArcWidth = -1.;
66 fChiArcPhi = -1.;
67 fChiArcWidth = -1.;
68 fMuonSize = 0.;
69// fEstImpact = -1.;
70 fPeakPhi = 0.;
71}
72
73void MMuonCalibPar::Print(Option_t *) const
74{
75 *fLog << all;
76 *fLog << GetDescriptor() << endl;
77 *fLog << " - Arc Phi [deg] = " << fArcPhi << endl;
78 *fLog << " - Arc Width [deg] = " << fArcWidth << endl;
79 *fLog << " - Red ChiSq Arc Phi = " << fChiArcPhi << endl;
80 *fLog << " - Red ChiSq Arc Width = " << fChiArcWidth << endl;
81 *fLog << " - Size of muon [phe] = " << fMuonSize << endl;
82 *fLog << " - Peak Phi [deg] = " << fPeakPhi << endl;
83}
84
Note: See TracBrowser for help on using the repository browser.