source: trunk/MagicSoft/Mars/manalysis/MHadroness.cc@ 1466

Last change on this file since 1466 was 1337, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 2.1 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 5/2002 <mailto:tbretz@astro.uni-wuerzburg.de>
19!
20! Copyright: MAGIC Software Development, 2000-2002
21!
22!
23\* ======================================================================== */
24
25/////////////////////////////////////////////////////////////////////////////
26//
27// MHadroness
28//
29// The Value must be in the range [0,1]
30// It should be the value used for gamma/hadron seperation.
31// For quality histograms look at MHHadroness
32//
33/////////////////////////////////////////////////////////////////////////////
34#include "MHadroness.h"
35
36#include "MLog.h"
37#include "MLogManip.h"
38
39ClassImp(MHadroness);
40
41// --------------------------------------------------------------------------
42//
43// Default constructor.
44//
45MHadroness::MHadroness(const char *name, const char *title)
46 : fHadroness(-1)
47{
48 fName = name ? name : "MHadroness";
49 fTitle = title ? title : "Storage container for hadroness value";
50}
51
52// --------------------------------------------------------------------------
53//
54// Reset hadroness, -1 indicates: invalid value
55//
56void MHadroness::Reset()
57{
58 fHadroness = -1;
59}
60
61// --------------------------------------------------------------------------
62//
63// Print the hillas Parameters to *fLog
64//
65void MHadroness::Print(Option_t *) const
66{
67 *fLog << all << GetDescriptor() << ": Hadroness = " << fHadroness << endl;
68}
69
Note: See TracBrowser for help on using the repository browser.