Line | |
---|
1 | #ifndef MARS_MSimCamera
|
---|
2 | #define MARS_MSimCamera
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MParList;
|
---|
9 | class MPhotonEvent;
|
---|
10 | class MPhotonStatistics;
|
---|
11 | class MRawRunHeader;
|
---|
12 | class MAnalogChannels;
|
---|
13 |
|
---|
14 | class TF1;
|
---|
15 | class MSpline3;
|
---|
16 |
|
---|
17 | class MSimCamera : public MTask
|
---|
18 | {
|
---|
19 | private:
|
---|
20 | MPhotonEvent *fEvt; //! Event stroing the photons
|
---|
21 | MPhotonStatistics *fStat; //! Valid time range of the phootn event
|
---|
22 | MRawRunHeader *fRunHeader; //! Sampling frequency
|
---|
23 |
|
---|
24 | MAnalogChannels *fCamera; //! Output of the analog signals
|
---|
25 |
|
---|
26 | MSpline3 *fSpline; //! Spline to describe the pulse shape
|
---|
27 |
|
---|
28 | TString fFileName; // File name of a file describing the pulse shape
|
---|
29 |
|
---|
30 | TString fFunction; // Function describing the pulse shape
|
---|
31 | Int_t fNpx; // Number of
|
---|
32 | Float_t fXmin;
|
---|
33 | Float_t fXmax;
|
---|
34 |
|
---|
35 | // MParContainer
|
---|
36 | Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE);
|
---|
37 |
|
---|
38 | // MTask
|
---|
39 | Int_t PreProcess(MParList *pList);
|
---|
40 | Int_t Process();
|
---|
41 | Bool_t ReInit(MParList *pList);
|
---|
42 |
|
---|
43 | Bool_t ReadFile(const char *fname);
|
---|
44 | Bool_t SetFunction(const char *func, Int_t n, Double_t xmin, Double_t xmax);
|
---|
45 |
|
---|
46 | public:
|
---|
47 | MSimCamera(const char *name=NULL, const char *title=NULL);
|
---|
48 | ~MSimCamera();
|
---|
49 |
|
---|
50 | void SetFunction(const TF1 &f);
|
---|
51 | void SetFunction(const char *f) { fFunction=f; fFileName=""; }
|
---|
52 | void SetFileName(const char *n) { fFileName=n; fFunction=""; }
|
---|
53 |
|
---|
54 | void Clear(Option_t *o="");
|
---|
55 |
|
---|
56 | ClassDef(MSimCamera, 0) // Task to simulate the electronic noise and to convert photons into pulses
|
---|
57 | };
|
---|
58 |
|
---|
59 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.