Last change
on this file since 117 was
117,
checked in by moretto, 11 years ago
|
ESAF version compilable on mac OS
|
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 | |
---|
9 | ClassImp(FileShowerGenerator) |
---|
10 | |
---|
11 | // ctor |
---|
12 | FileShowerGenerator::FileShowerGenerator(): EventGenerator("file"), |
---|
13 | fTrack(0), fTruth(0) { |
---|
14 | } |
---|
15 | |
---|
16 | // dtor |
---|
17 | FileShowerGenerator::~FileShowerGenerator() { |
---|
18 | if(fTrack) delete fTrack; |
---|
19 | if(fTruth) delete fTruth; |
---|
20 | fTrack = 0; |
---|
21 | fTruth = 0; |
---|
22 | } |
---|
23 | |
---|
24 | // get a new event |
---|
25 | PhysicsData* FileShowerGenerator::Get() { |
---|
26 | return fTrack; |
---|
27 | } |
---|
28 | |
---|
29 | // get pointer to MonteCarlo Truth |
---|
30 | MCTruth* FileShowerGenerator::GetTruth() { |
---|
31 | return fTruth; |
---|
32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.