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

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