source: trunk/MagicSoft/Mars/msimcamera/MSimRandomPhotons.h@ 9368

Last change on this file since 9368 was 9241, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MSimRandomPhotons
2#define MARS_MSimRandomPhotons
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class MGeomCam;
9class MParList;
10class MPhotonEvent;
11class MPhotonStatistics;
12//class MCorsikaEvtHeader;
13class MCorsikaRunHeader;
14
15class MSimRandomPhotons : public MTask
16{
17private:
18 MGeomCam *fGeom; //! container with the geometry
19 MPhotonEvent *fEvt; //! Event storing the photons
20 MPhotonStatistics *fStat; //! Container storing evenet statistics
21// MCorsikaEvtHeader *fEvtHeader; //! Header storing event information
22 MCorsikaRunHeader *fRunHeader; //! Header storing run information
23
24
25 // FIXME: Make this a single number per Pixel/APD
26 Double_t fFreqFixed; // [1/ns] A fixed frequency per pixel
27 Double_t fFreqNSB; // [1/ns/cm^2] A frequency depending on area
28
29 Bool_t fSimulateWavelength;
30
31 TString fNameGeomCam;
32
33 // MTask
34 Int_t PreProcess(MParList *pList);
35 Int_t Process();
36
37 // MParContainer
38 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE);
39
40public:
41 MSimRandomPhotons(const char *name=NULL, const char *title=NULL);
42
43 void SetFreq(Float_t fnsb, Float_t fdc) { fFreqNSB=fnsb; fFreqFixed=fdc; }
44
45 void SetNameGeomCam(const char *name="MGeomCam") { fNameGeomCam = name; }
46
47 ClassDef(MSimRandomPhotons, 0) // Simulate possonian photons (like NSB or dark current)
48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.