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

Last change on this file since 2098 was 1682, checked in by rwagner, 22 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
48MSigmabarParam::MSigmabarParam(const char *name, const char *title) : fSigmabarMin(0), fSigmabarMax(0), fMjdMin(0), fMjdMax(0), fThetaMin(0), fThetaMax(0), fRunNumber(0)
49{
50 fName = name ? name : "MSigmabarParam";
51 fTitle = title ? title : "Storage container for characterizing a distribution of events in the Sigmabar-Theta plane";
52}
53
54MSigmabarParam::~MSigmabarParam()
55{
56 // nothing special yet
57}
58
59void MSigmabarParam::SetRunNumber(Int_t r)
60{
61 fRunNumber = r;
62}
63
64void MSigmabarParam::SetParams(Int_t r, Double_t si, Double_t sx, Double_t ti, Double_t tx, Double_t mi, Double_t mx)
65{
66 fSigmabarMin = si;
67 fSigmabarMax = sx;
68 fThetaMin = ti;
69 fThetaMax = tx;
70 fMjdMin = mi;
71 fMjdMax = mx;
72 //fRunNumber = r;
73}
74
75void MSigmabarParam::Print()
76{
77 *fLog << endl << "Run " << fRunNumber << " | "
78 << "Sigmabar Min, Max: " << fSigmabarMin << " " << fSigmabarMax
79 << "| Theta Min, Max: " << fThetaMin << " " << fThetaMax << endl;
80}
Note: See TracBrowser for help on using the repository browser.