source: trunk/MagicSoft/Mars/manalysis/MSigmabarParam.cc@ 5563

Last change on this file since 5563 was 2173, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 3.2 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): Robert Wagner 10/2002 <mailto:magicsoft@rwagner.de>
19!
20! Copyright: MAGIC Software Development, 2002
21!
22!
23\* ======================================================================== */
24
25/////////////////////////////////////////////////////////////////////////////
26// //
27// MSigmabarParam //
28// //
29// Storage Container for parameters characterizing a distribution of //
30// events in the Sigmabar-Theta plane //
31// //
32// For CT1 tests, we just store Sigmabar_max, Sigmabar_min, Theta_max, //
33// Theta_min. Later MJD and perhaps more than two points on the //
34// distribution might follow. //
35// //
36// This implementation is still PRELIMINARY and requires some workarounds //
37// put in SPECIFICALLY FOR THE CT1 TESTS, since a database to access is //
38// missing. It is not the FINAL MAGIC VERSION. //
39// //
40/////////////////////////////////////////////////////////////////////////////
41#include "MSigmabarParam.h"
42
43#include "MLog.h"
44#include "MLogManip.h"
45
46ClassImp(MSigmabarParam);
47
48using namespace std;
49
50MSigmabarParam::MSigmabarParam(const char *name, const char *title) : fSigmabarMin(0), fSigmabarMax(0), fMjdMin(0), fMjdMax(0), fThetaMin(0), fThetaMax(0), fRunNumber(0)
51{
52 fName = name ? name : "MSigmabarParam";
53 fTitle = title ? title : "Storage container for characterizing a distribution of events in the Sigmabar-Theta plane";
54}
55
56MSigmabarParam::~MSigmabarParam()
57{
58 // nothing special yet
59}
60
61void MSigmabarParam::SetRunNumber(Int_t r)
62{
63 fRunNumber = r;
64}
65
66void MSigmabarParam::SetParams(Int_t r, Double_t si, Double_t sx, Double_t ti, Double_t tx, Double_t mi, Double_t mx)
67{
68 fSigmabarMin = si;
69 fSigmabarMax = sx;
70 fThetaMin = ti;
71 fThetaMax = tx;
72 fMjdMin = mi;
73 fMjdMax = mx;
74 //fRunNumber = r;
75}
76
77void MSigmabarParam::Print(Option_t *) const
78{
79 *fLog << endl << "Run " << fRunNumber << " | "
80 << "Sigmabar Min, Max: " << fSigmabarMin << " " << fSigmabarMax
81 << "| Theta Min, Max: " << fThetaMin << " " << fThetaMax << endl;
82}
Note: See TracBrowser for help on using the repository browser.