source: JEM-EUSO/esaf_lal/tags/v1_r0/esaf/packages/reconstruction/root/src/RecoPmtToShower.cc @ 117

Last change on this file since 117 was 117, checked in by moretto, 11 years ago

ESAF version compilable on mac OS

File size: 3.6 KB
Line 
1// $Id: RecoPmtToShower.cc
2// Author: Fenu 2011/02/28
3
4/*****************************************************************************
5 * ESAF: Euso Simulation and Analysis Framework                              *
6 *                                                                           *
7 *  Id: RecoPmtToShower                                                           *
8 *  Package: RecoRootEvent                                                   *
9 *  Coordinator: fenu                                               *
10 *                                                                           *
11 *****************************************************************************/
12
13//_____________________________________________________________________________
14//
15// RecoPmtToShower
16//
17// <extensive class description>
18//
19//   Config file parameters
20//   ======================
21//
22//   <parameter name>: <parameter description>
23//   -Valid options: <available options>
24//
25
26#include "RecoPmtToShower.hh"
27#include "Etypes.hh"
28#include "EDetCurve.hh"
29#include "TClass.h"
30#include "TClonesArray.h"
31
32ClassImp(RecoPmtToShower)
33const Int_t fgDefClonesSize=1000;
34//_____________________________________________________________________________
35RecoPmtToShower::RecoPmtToShower() {
36    //
37    // Constructor
38    //
39     if ( TClass::IsCallingNew()) {
40       fDetCurve = NULL;
41     } else {
42       // standard user defined behavior
43       fDetCurve = new TClonesArray("EDetCurve",fgDefClonesSize);
44     }
45
46    Clear();
47}
48
49//_____________________________________________________________________________
50RecoPmtToShower::RecoPmtToShower( const RecoPmtToShower& other ) {
51    //
52    // Copy Constructor
53    //
54    other.Copy( *this );
55}
56
57//_____________________________________________________________________________
58RecoPmtToShower::~RecoPmtToShower() {
59    //
60    // Destructor
61    //
62    Clear();
63}
64
65//_____________________________________________________________________________
66void RecoPmtToShower::Clear() {
67    //
68    // Clear method
69    //
70    fEnergy         = -kHuge;
71
72}
73
74//_____________________________________________________________________________
75void RecoPmtToShower::Copy( TObject& other) const {
76    //
77    // Copy to a new object
78    //
79    TObject::Copy( other );
80   
81    ((RecoPmtToShower&)other).fEnergy  = fEnergy; 
82    ((RecoPmtToShower&)other).fEnergyError  = fEnergyError; 
83    ((RecoPmtToShower&)other).fXmax  = fXmax; 
84    ((RecoPmtToShower&)other).fXmaxFit = fXmaxFit;
85    ((RecoPmtToShower&)other).fRecoCoreX  = fRecoCoreX; 
86    ((RecoPmtToShower&)other).fRecoCoreY  = fRecoCoreY; 
87    ((RecoPmtToShower&)other).fRecoCoreZ  = fRecoCoreZ; 
88    ((RecoPmtToShower&)other).fRecoMaxX  = fRecoMaxX; 
89    ((RecoPmtToShower&)other).fRecoMaxY  = fRecoMaxY; 
90    ((RecoPmtToShower&)other).fRecoMaxZ  = fRecoMaxZ; 
91    ((RecoPmtToShower&)other).fRecoHMax  = fRecoHMax;
92    ((RecoPmtToShower&)other).fTotCTS  = fTotCTS;
93    ((RecoPmtToShower&)other).fDetCurve = fDetCurve;
94    ((RecoPmtToShower&)other).fChiSquare = fChiSquare;
95    ((RecoPmtToShower&)other).fDegreesOfFreedom = fDegreesOfFreedom;
96    ((RecoPmtToShower&)other).fTriggerEvent = fTriggerEvent;
97    ((RecoPmtToShower&)other).fDetCurve = fDetCurve;
98    ((RecoPmtToShower&)other).fCherFound = fCherFound;
99    ((RecoPmtToShower&)other).fFitStatus = fFitStatus;
100    ((RecoPmtToShower&)other).fMaximumPeak = fMaximumPeak;
101    ((RecoPmtToShower&)other).fCherenkovPeak = fCherenkovPeak;
102    ((RecoPmtToShower&)other).fSideEvent = fSideEvent;
103    ((RecoPmtToShower&)other).fGtuMax = fGtuMax;
104    ((RecoPmtToShower&)other).fX_first = fX_first;
105    ((RecoPmtToShower&)other).fDetAtmMass = fDetAtmMass;
106}
107
Note: See TracBrowser for help on using the repository browser.