/[PAMELA software]/PamCut/CollectionActions/Histo2DActions/Histo2DAction/Histo2DAction.cpp
ViewVC logotype

Contents of /PamCut/CollectionActions/Histo2DActions/Histo2DAction/Histo2DAction.cpp

Parent Directory Parent Directory | Revision Log Revision Log


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

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

  ViewVC Help
Powered by ViewVC 1.1.23