/[PAMELA software]/PamCut/CollectionActions/Histo1DActions/Histo1DAction/Histo1DAction.cpp
ViewVC logotype

Contents of /PamCut/CollectionActions/Histo1DActions/Histo1DAction/Histo1DAction.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Sep 25 15:36:36 2009 UTC (15 years, 2 months ago) by pam-fi
Branch: MAIN
Added to repository.

1 /*
2 * Histo1DAction.cpp
3 *
4 * Created on: 25/ago/2009
5 * Author: Nicola Mori
6 */
7
8 /*! @file Histo1DAction.cpp The Histo1DAction class implementation file. */
9
10 #include "Histo1DAction.h"
11
12 template<>
13 void Histo1DAction<Int_t>::_CreateHisto() {
14
15 _rootHisto = new TH1I();
16 }
17
18 template<>
19 void Histo1DAction<Float_t>::_CreateHisto() {
20
21 _rootHisto = new TH1F();
22 }
23
24 template<>
25 void Histo1DAction<Double_t>::_CreateHisto() {
26
27 _rootHisto = new TH1D();
28 }
29
30
31 template<>
32 Histo1DAction<Int_t>::~Histo1DAction() {
33
34 TH1I *dummy = (TH1I*)_rootHisto;
35 delete dummy;
36 _rootHisto = NULL;
37
38 }
39
40 template<>
41 Histo1DAction<Float_t>::~Histo1DAction() {
42
43 TH1F *dummy = (TH1F*)_rootHisto;
44 delete dummy;
45 _rootHisto = NULL;
46 }
47
48 template<>
49 Histo1DAction<Double_t>::~Histo1DAction() {
50
51 TH1D *dummy = (TH1D*)_rootHisto;
52 delete dummy;
53 _rootHisto = NULL;
54 }
55
56
57

  ViewVC Help
Powered by ViewVC 1.1.23