Universita' di GenovaINFN Sezione di Genova  
AIRWATCH / EUSO Genova

FileShowerGenerator - source file

// ESAF : Euso Simulation and Analysis Framework
// $Id: FileShowerGenerator.cc,v 1.5 2004/06/15 17:49:45 thea Exp $
// Alessandro Thea created Nov, 23 2003

#include "FileShowerGenerator.hh"
#include "MCTruth.hh"
#include "ShowerTrack.hh"

ClassImp(FileShowerGenerator)

// ctor
 FileShowerGenerator::FileShowerGenerator(): EventGenerator("file"),
                                            fTrack(0), fTruth(0) {
}

// dtor
 FileShowerGenerator::~FileShowerGenerator() {
    if(fTrack) delete fTrack;
    if(fTruth) delete fTruth;
    fTrack = 0;
    fTruth = 0;
}

// get a new event
 PhysicsData* FileShowerGenerator::Get() {
	return fTrack;
}

// get pointer to MonteCarlo Truth
 MCTruth* FileShowerGenerator::GetTruth() {
	return fTruth;
}
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