GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CalibCo60.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005-2006 by Christophe Theisen & Olivier Stezowski *
3  * christophe.theisen(AT)cea.fr, stezow(AT)ipnl.in2p3.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
20 
23 #ifndef GW_CALIBCO60_H
24 #define GW_CALIBCO60_H
25 
26 #ifndef GW_BASECALIB_H
27 #include "BaseCalib.h"
28 #endif
29 
30 // root's includes
31 #ifndef ROOT_TH1_H
32 #include <TH1.h>
33 #endif
34 #ifndef ROOT_TAxis_H
35 #include <TAxis.h>
36 #endif
37 #ifndef ROOT_TF1_H
38 #include <TF1.h>
39 #endif
40 #ifndef ROOT_TSpectrum_H
41 #include <TSpectrum.h>
42 #endif
43 
44 
45 namespace Gw {
46 
53 class CalibCo60 : public BaseCalib
54 {
55 public:
56  CalibCo60(); //constructor
57  virtual ~CalibCo60(); // destructor
58 
60  void Calibrate(const TH1 *histo, TF1 *function, Double_t channel1, Double_t channel2,
61  Option_t* AxisOption = "x");
62 
64  void Calibrate(const TH1 *histo, TF1 *function, Option_t* AxisOption="x", Double_t sigma = 2,
65  Option_t* SearOption = "", Double_t threshold = 0.05);
66 
67 protected:
68 
69 
71  ClassDef(CalibCo60,0); // a CalibCo60
72 };
73 
74 // inline members
75 
76 }
77 
78 #endif
79 
80 
81 
ClassDef(CalibCo60, 0)
rootcint dictionary
virtual ~CalibCo60()
Definition: CalibCo60.cpp:63
TH1F * histo[MaxValue]
Definition: ReadDaqAlone.C:31
header file for the calibration facility
BaseCalib is a tool class.
Definition: BaseCalib.h:56
void Calibrate(const TH1 *histo, TF1 *function, Double_t channel1, Double_t channel2, Option_t *AxisOption="x")
Perform the calibration "by hand".
Definition: CalibCo60.cpp:69
CalibCo60 is a service class in order to find calibration coefficients for a TH1 espacially with Co60...
Definition: CalibCo60.h:53