source: JEM-EUSO/esaf_cc_at_lal/packages/simulation/generators/showers/src/FileShowerGenerator.cc @ 114

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

actual version of ESAF at CCin2p3

File size: 738 bytes
Line 
1// ESAF : Euso Simulation and Analysis Framework
2// $Id: FileShowerGenerator.cc 754 2004-06-15 17:49:45Z thea $
3// Alessandro Thea created Nov, 23 2003
4
5#include "FileShowerGenerator.hh"
6#include "MCTruth.hh"
7#include "ShowerTrack.hh"
8
9ClassImp(FileShowerGenerator)
10
11// ctor
12FileShowerGenerator::FileShowerGenerator(): EventGenerator("file"),
13                                            fTrack(0), fTruth(0) {
14}
15
16// dtor
17FileShowerGenerator::~FileShowerGenerator() {
18    if(fTrack) delete fTrack;
19    if(fTruth) delete fTruth;
20    fTrack = 0;
21    fTruth = 0;
22}
23
24// get a new event
25PhysicsData* FileShowerGenerator::Get() {
26        return fTrack;
27}
28
29// get pointer to MonteCarlo Truth
30MCTruth* FileShowerGenerator::GetTruth() {
31        return fTruth;
32}
Note: See TracBrowser for help on using the repository browser.