source: trunk/MagicSoft/Mars/manalysis/MParameters.cc@ 6888

Last change on this file since 6888 was 4895, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 2.7 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): Thomas Bretz 03/2003 <mailto:tbretz@astro.uni-wuerzburg.de>
19!
20! Copyright: MAGIC Software Development, 2000-2004
21!
22!
23\* ======================================================================== */
24
25/////////////////////////////////////////////////////////////////////////////
26//
27// MParameterD, MParameterI
28//
29// Storage Container for doubles and ints
30//
31// This classes can be used for intermidiate variables which we don't want
32// to have in a special container.
33//
34/////////////////////////////////////////////////////////////////////////////
35#include "MParameters.h"
36
37#include <fstream>
38
39#include "MLog.h"
40#include "MLogManip.h"
41
42ClassImp(MParameterD);
43ClassImp(MParameterI);
44ClassImp(MParameterDerr);
45//ClassImp(MParameter);
46
47using namespace std;
48
49// --------------------------------------------------------------------------
50//
51// Default constructor.
52//
53MParameterD::MParameterD(const char *name, const char *title)
54{
55 fName = name ? name : "MParameterD";
56 fTitle = title ? title : "Storgare container for general parameters (double)";
57}
58
59// --------------------------------------------------------------------------
60//
61// Default constructor.
62//
63MParameterDerr::MParameterDerr(const char *name, const char *title)
64{
65 fName = name ? name : "MParameterDerr";
66 fTitle = title ? title : "Storgare container for general parameters (double) and its error";
67}
68
69// --------------------------------------------------------------------------
70//
71// Default constructor.
72//
73MParameterI::MParameterI(const char *name, const char *title)
74{
75 fName = name ? name : "MParameterI";
76 fTitle = title ? title : "Storgare container for general parameters (integer)";
77}
78
79void MParameterD::Print(Option_t *o) const
80{
81 *fLog << all << GetDescriptor() << ": Val=" << fVal << endl;
82}
83
84void MParameterDerr::Print(Option_t *o) const
85{
86 *fLog << all << GetDescriptor() << ": Val=" << fVal << " Err=" << fErr << endl;
87}
88
89void MParameterI::Print(Option_t *o) const
90{
91 *fLog << all << GetDescriptor() << ": Val=" << fVal << endl;
92}
Note: See TracBrowser for help on using the repository browser.