Last change
on this file was 19542, checked in by tbretz, 5 years ago |
Allow to turn some checks off for testing purposes (only\!), replaces MReflector by the new base class MOptics
|
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 |
|
---|
8 | class MGeomCam;
|
---|
9 | class MParList;
|
---|
10 | class MParSpline;
|
---|
11 | class MPhotonEvent;
|
---|
12 | class MPhotonStatistics;
|
---|
13 | class MCorsikaRunHeader;
|
---|
14 | class MPedestalCam;
|
---|
15 |
|
---|
16 | class MSimRandomPhotons : public MTask
|
---|
17 | {
|
---|
18 | private:
|
---|
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 | TString fFileNameNSB;
|
---|
36 |
|
---|
37 | Bool_t fForce;
|
---|
38 |
|
---|
39 | // MTask
|
---|
40 | Int_t PreProcess(MParList *pList);
|
---|
41 | Bool_t ReInit(MParList *pList);
|
---|
42 | Int_t Process();
|
---|
43 |
|
---|
44 | // MParContainer
|
---|
45 | Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE);
|
---|
46 |
|
---|
47 | public:
|
---|
48 | MSimRandomPhotons(const char *name=NULL, const char *title=NULL);
|
---|
49 |
|
---|
50 | void SetFreq(Float_t fnsb, Float_t fdc) { fFreqNSB=fnsb; fFreqFixed=fdc; }
|
---|
51 |
|
---|
52 | void SetNameGeomCam(const char *name="MGeomCam") { fNameGeomCam = name; }
|
---|
53 |
|
---|
54 | ClassDef(MSimRandomPhotons, 0) // Simulate possonian photons (like NSB or dark current)
|
---|
55 | };
|
---|
56 |
|
---|
57 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.