Universita' di GenovaINFN Sezione di Genova  
AIRWATCH / EUSO Genova

RecoHmaxByShapeMethod - source file

// $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();
}
About Us | EUSO Official Website | Web pages created by Roberto Pesce and Alessandro Thea - Last Update Wed Nov 16 16:57:39 2005 Wed Nov 16 16:29:22 2005