source: branches/AddingGoogleTestEnvironment/manalysis/MEnergyEstimate.cc@ 18752

Last change on this file since 18752 was 8073, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 2.0 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 1/2002 <mailto:tbretz@uni-sw.gwdg.de>
19! Author(s): Wolfgang Wittek 1/2002 <mailto:wittek@mppmu.mpg.de>
20!
21! Copyright: MAGIC Software Development, 2000-2002
22!
23!
24\* ======================================================================== */
25
26/////////////////////////////////////////////////////////////////////////////
27//
28// MEnergyEstimate
29//
30// Task to estimate the energy by a rule, eg:
31//
32// MEnergyEstimate est;
33// est.SetRule("0.5 + (1.1*MHillas.fLength) + (2.2*MHillasSrc.fDist) + (3.3*MHillas.fSize) +"
34// "(4.4*MHillas.fSize*MHillas.fLength) + (5.5*MHillasSrc.fDist*MHillas.fLength)");
35//
36// For description of rules, see MDataPhrase.
37//
38// The default rule is "MMcEvt.fEnergy"
39//
40// Output:
41// MEnergyEst [MParameterD]
42//
43/////////////////////////////////////////////////////////////////////////////
44#include "MEnergyEstimate.h"
45
46ClassImp(MEnergyEstimate);
47
48using namespace std;
49
50// --------------------------------------------------------------------------
51//
52// Default constructor. Initialize fData with default rule "MMcEvt.fEnergy"
53//
54MEnergyEstimate::MEnergyEstimate(const char *name, const char *title)
55 : MParameterCalc("MMcEvt.fEnergy")
56{
57 fName = name ? name : "MEnergyEstimate";
58 fTitle = title ? title : "Task to estimate the energy by a rule";
59
60 SetNameParameter("MEnergyEst");
61}
Note: See TracBrowser for help on using the repository browser.