source: trunk/MagicSoft/Mars/mtemp/mifae/library/MCalibrateDC.h@ 4073

Last change on this file since 4073 was 4073, checked in by jlopez, 21 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MCalibrateDC
2#define MARS_MCalibrateDC
3
4#ifndef ROOT_TArrayD
5#include <TArrayD.h>
6#endif
7
8#ifndef ROOT_TString
9#include <TString.h>
10#endif
11
12#ifndef MARS_MHCamera
13#include "MHCamera.h"
14#endif
15
16#ifndef MARS_MTime
17#include "MTime.h"
18#endif
19
20#ifndef MARS_MTask
21#include "MTask.h"
22#endif
23
24class TH1F;
25class MGeomCam;
26class MCameraDC;
27
28class MCalibrateDC : public MTask
29{
30
31private:
32
33 MGeomCam *fGeomCam;
34 MCameraDC *fCurr;
35 MTime *fTimeCurr;
36
37 MTime fStartingMissCalibration;
38 MTime fEndingMissCalibration;
39
40 TString fFileName;
41
42 TH1F *fCalHist;
43 MHCamera fDisplay;
44
45 UInt_t fNumPixels ;
46 TArrayD fDCCalibrationFactor;
47 Double_t fDCMissCalibrationFactor;
48
49 Double_t fDCCalibration; //[uA]
50 Double_t fDCCalibrationRMS; //[uA]
51
52 Bool_t ProcessFile();
53 Bool_t DCCalibrationCalc();
54
55 public:
56
57 MCalibrateDC(TString filename="", const char *name=NULL, const char *title=NULL);
58 ~MCalibrateDC();
59
60 Int_t PreProcess(MParList *pList);
61 Int_t Process();
62
63 //Setters
64 void SetFileName(TString filename="") {fFileName=filename;}
65
66 //Getters
67 MHCamera& GetDisplay() { return fDisplay; }
68 TArrayD& GetDCCalibrationFactor() { return fDCCalibrationFactor; }
69
70 ClassDef(MCalibrateDC, 0) // Taks to intercalibrate the DC of all pmts from a continuos light run
71};
72
73#endif
Note: See TracBrowser for help on using the repository browser.