| Line | |
|---|
| 1 | #ifndef MARS_MSimAbsorption
|
|---|
| 2 | #define MARS_MSimAbsorption
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MTask
|
|---|
| 5 | #include "MTask.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | class MParList;
|
|---|
| 9 | class MParSpline;
|
|---|
| 10 | class MPhotonEvent;
|
|---|
| 11 | class MCorsikaEvtHeader;
|
|---|
| 12 |
|
|---|
| 13 | class MSimAbsorption : public MTask
|
|---|
| 14 | {
|
|---|
| 15 | private:
|
|---|
| 16 | MPhotonEvent *fEvt; //! Event stroing the photons
|
|---|
| 17 | MCorsikaEvtHeader *fHeader; //! Header storing event information
|
|---|
| 18 |
|
|---|
| 19 | MParSpline *fSpline; //! Spline to interpolate wavelength or incident angle
|
|---|
| 20 |
|
|---|
| 21 | TString fParName; // Container name of the spline containing the curve
|
|---|
| 22 | Bool_t fUseTheta; // Switches between using wavelength or incident angle
|
|---|
| 23 |
|
|---|
| 24 | // MParContainer
|
|---|
| 25 | Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE);
|
|---|
| 26 |
|
|---|
| 27 | // MTask
|
|---|
| 28 | Int_t PreProcess(MParList *pList);
|
|---|
| 29 | Bool_t ReInit(MParList *pList);
|
|---|
| 30 | Int_t Process();
|
|---|
| 31 |
|
|---|
| 32 | public:
|
|---|
| 33 | MSimAbsorption(const char *name=NULL, const char *title=NULL);
|
|---|
| 34 |
|
|---|
| 35 | // MSimAbsorption
|
|---|
| 36 | void SetParName(const char *name) { fParName=name; }
|
|---|
| 37 |
|
|---|
| 38 | void SetUseTheta(Bool_t b=kTRUE) { fUseTheta = b; }
|
|---|
| 39 |
|
|---|
| 40 | ClassDef(MSimAbsorption, 0) // Task to calculate wavelength or incident angle dependent absorption
|
|---|
| 41 | };
|
|---|
| 42 |
|
|---|
| 43 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.