Last change
on this file since 117 was
117,
checked in by moretto, 11 years ago
|
ESAF version compilable on mac OS
|
File size:
1.3 KB
|
Line | |
---|
1 | // ESAF : Euso Simulation and Analysis Framework |
---|
2 | // $Id: LightToEuso.cc 2695 2006-05-27 19:09:42Z moreggia $ |
---|
3 | // Marco Pallavicini created Mar, 13 2002 |
---|
4 | |
---|
5 | #include "LightToEuso.hh" |
---|
6 | #include "EventGenerator.hh" |
---|
7 | #include "RadiativeTransfer.hh" |
---|
8 | #include "LightSource.hh" |
---|
9 | #include "Atmosphere.hh" |
---|
10 | |
---|
11 | ClassImp(LightToEuso) |
---|
12 | |
---|
13 | //______________________________________________________________________________ |
---|
14 | LightToEuso::LightToEuso(const string& name) : EsafConfigurable(), EsafMsgSource(), fGenerator(0), |
---|
15 | fLight(0), fRadiative(0) { |
---|
16 | // |
---|
17 | // ctor |
---|
18 | // |
---|
19 | fName = name; |
---|
20 | } |
---|
21 | |
---|
22 | //______________________________________________________________________________ |
---|
23 | LightToEuso::~LightToEuso() { |
---|
24 | // |
---|
25 | // dtor |
---|
26 | // |
---|
27 | SafeDelete(fGenerator); |
---|
28 | SafeDelete(fLight); |
---|
29 | SafeDelete(fRadiative); |
---|
30 | Atmosphere::Delete(); |
---|
31 | } |
---|
32 | |
---|
33 | //______________________________________________________________________________ |
---|
34 | void LightToEuso::Reset() { |
---|
35 | // |
---|
36 | // get ready for next event. Reset method of every imbricated object is called. |
---|
37 | // |
---|
38 | |
---|
39 | Atmosphere::Reset(); // has an effect in random mode only |
---|
40 | Atmosphere::Get()->ResetClouds(); |
---|
41 | Atmosphere::Get()->ResetAerosol(); |
---|
42 | if(fGenerator) fGenerator->Reset(); |
---|
43 | if(fLight) fLight->Reset(); |
---|
44 | if(fRadiative) fRadiative->Reset(); |
---|
45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.