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

Last change on this file since 4302 was 4302, checked in by jlopez, 20 years ago
*** empty log message ***
File size: 1.5 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 Double_t fMinDCAllowed; //[uA]
46
47 UInt_t fNumPixels ;
48 TArrayD fDCCalibrationFactor;
49 Double_t fDCMissCalibrationFactor;
50
51 Double_t fDCCalibration; //[uA]
52 Double_t fDCCalibrationRMS; //[uA]
53
54 Bool_t ProcessFile();
55 Bool_t DCCalibrationCalc();
56
57 public:
58
59 MCalibrateDC(TString filename="", const char *name=NULL, const char *title=NULL);
60 ~MCalibrateDC();
61
62 Int_t PreProcess(MParList *pList);
63 Int_t Process();
64
65 //Setters
66 void SetFileName(TString filename="") {fFileName=filename;}
67 void SetMinDCAllowed(Double_t mindc=0.5) {fMinDCAllowed=mindc;}
68
69 //Getters
70 MHCamera& GetDisplay() { return fDisplay; }
71 TArrayD& GetDCCalibrationFactor() { return fDCCalibrationFactor; }
72
73 ClassDef(MCalibrateDC, 0) // Taks to intercalibrate the DC of all pmts from a continuos light run
74};
75
76#endif
Note: See TracBrowser for help on using the repository browser.