// $Id: RecoHmaxByShapeMethod.cc,v 1.1 2005/01/05 13:08:20 pesce Exp $
// Author: R.Pesce 2005/01/04
/*****************************************************************************
* ESAF: Euso Simulation and Analysis Framework *
* *
* Id: RecoHmaxByShapeMethod *
* Package: <packagename> *
* Coordinator: <coordinator> *
* *
*****************************************************************************/
//_____________________________________________________________________________
//
// RecoHmaxByShapeMethod
//
// <extensive class description>
//
// Config file parameters
// ======================
//
// <parameter name>: <parameter description>
// -Valid options: <available options>
//
#include "RecoHmaxByShapeMethod.hh"
ClassImp(RecoHmaxByShapeMethod)
//_____________________________________________________________________________
RecoHmaxByShapeMethod::RecoHmaxByShapeMethod() {
//
// Constructor
//
fQuality = -1;
fHmax = -1;
fErrorHmax = -1;
fTempHisto = NULL;
}
//_____________________________________________________________________________
RecoHmaxByShapeMethod::~RecoHmaxByShapeMethod() {
//
// Destructor
//
Clear();
}
//_____________________________________________________________________________
RecoHmaxByShapeMethod::RecoHmaxByShapeMethod( const RecoHmaxByShapeMethod& other ) {
//
// Copy constructor
//
other.Copy( *this );
}
//_____________________________________________________________________________
void RecoHmaxByShapeMethod::Copy( RecoHmaxByShapeMethod& other ) const {
//
// Copy to a new object
//
((RecoHmaxByShapeMethod&)other).fQuality = fQuality;
((RecoHmaxByShapeMethod&)other).fHmax = fHmax;
((RecoHmaxByShapeMethod&)other).fErrorHmax = fErrorHmax;
((RecoHmaxByShapeMethod&)other).fTempHisto = fTempHisto ? (TH1F*)fTempHisto->Clone() : NULL;
}
//_____________________________________________________________________________
void RecoHmaxByShapeMethod::Clear() {
//
// Clear method
//
fQuality = -1;
fHmax = -1;
fErrorHmax = -1;
SafeDelete(fTempHisto);
}
//_____________________________________________________________________________
void RecoHmaxByShapeMethod::SetTempHisto(TH1F* t) {
//
// Set the temp histo
//
SafeDelete(fTempHisto);
fTempHisto = (TH1F*)t->Clone();
}