source: trunk/MagicSoft/Mars/manalysis/MHadronness.cc@ 1985

Last change on this file since 1985 was 1557, 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// MHadronness
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 MHHadronness
32//
33/////////////////////////////////////////////////////////////////////////////
34#include "MHadronness.h"
35
36#include "MLog.h"
37#include "MLogManip.h"
38
39ClassImp(MHadronness);
40
41// --------------------------------------------------------------------------
42//
43// Default constructor.
44//
45MHadronness::MHadronness(const char *name, const char *title)
46 : fHadronness(-1)
47{
48 fName = name ? name : "MHadronness";
49 fTitle = title ? title : "Storage container for hadroness value";
50}
51
52// --------------------------------------------------------------------------
53//
54// Reset hadroness, -1 indicates: invalid value
55//
56void MHadronness::Reset()
57{
58 fHadronness = -1;
59}
60
61// --------------------------------------------------------------------------
62//
63// Print the hillas Parameters to *fLog
64//
65void MHadronness::Print(Option_t *) const
66{
67 *fLog << all << GetDescriptor() << ": Hadronness = " << fHadronness << endl;
68}
69
Note: See TracBrowser for help on using the repository browser.