source: trunk/MagicSoft/Mars/mcalib/MHCalibrationRelTimeCam.h@ 3627

Last change on this file since 3627 was 3625, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef MARS_MHCalibrationRelTimeCam
2#define MARS_MHCalibrationRelTimeCam
3
4#ifndef ROOT_TObjArray
5#include <TObjArray.h>
6#endif
7
8#ifndef MARS_MH
9#include "MH.h"
10#endif
11#ifndef MARS_MCamEvent
12#include "MCamEvent.h"
13#endif
14
15class MHCalibrationRelTimePix;
16class MHCalibrationRelTimeCam : public MH, public MCamEvent
17{
18
19private:
20
21 static const Float_t fgTimeSliceWidth; // Default for fTimeSliceWidth
22 static const Int_t fgPulserFrequency; // Default for fPulserFrequency
23
24 Float_t fTimeSliceWidth; // FADC slice time width
25 Int_t fPulserFrequency; // The pulser frequency
26
27 TObjArray *fArray; //-> List of MHCalibrationRelTimePix's
28
29public:
30
31 MHCalibrationRelTimeCam(const char *name=NULL, const char *title=NULL);
32 ~MHCalibrationRelTimeCam();
33
34 void Clear(Option_t *o="");
35
36 MHCalibrationRelTimePix &operator[](UInt_t i);
37 const MHCalibrationRelTimePix &operator[](UInt_t i) const;
38
39 Bool_t SetupFill(const MParList *pList);
40 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
41 Bool_t Finalize();
42
43 // Setters
44 void SetTimeSliceWidth( const Float_t width=fgTimeSliceWidth) { fTimeSliceWidth = width; }
45 void SetPulserFrequency( const Int_t f=fgPulserFrequency) { fPulserFrequency = f; }
46
47 TObject *Clone(const char *) const;
48
49 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
50 void DrawPixelContent(Int_t idx) const;
51
52 ClassDef(MHCalibrationRelTimeCam, 1) // Histogram class for camera relative time calibration
53};
54
55#endif
56
Note: See TracBrowser for help on using the repository browser.