source: releases/Mars.2014.05.26/mcalib/MCalibConstCam.h@ 20115

Last change on this file since 20115 was 8408, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 2.1 KB
Line 
1#ifndef MARS_MCalibConstCam
2#define MARS_MCalibConstCam
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7#ifndef MARS_MCamEvent
8#include "MCamEvent.h"
9#endif
10
11#ifndef ROOT_TClonesArray
12#include <TClonesArray.h>
13#endif
14
15class MGeomCam;
16class MCalibConstPix;
17class MBadPixelsCam;
18
19class MCalibConstCam : public MParContainer, public MCamEvent
20{
21private:
22
23 TClonesArray *fArray; //-> Array of MCalibConstPix, one per pixel
24 TClonesArray *fAverageAreas; //-> Array of MCalibConstPix, one per pixel area
25 TClonesArray *fAverageSectors; //-> Array of MCalibConstPix, one per camera sector
26
27 //Int_t fRunNumber; // Run number
28
29 MBadPixelsCam *fBadPixels; //!
30
31public:
32
33 MCalibConstCam(const char *name=NULL, const char *title=NULL);
34 ~MCalibConstCam();
35
36 void Clear(Option_t *o="");
37 void Copy(TObject &object) const;
38
39 // Getters
40 MCalibConstPix &GetAverageArea ( UInt_t i );
41 const MCalibConstPix &GetAverageArea ( UInt_t i ) const;
42 const Int_t GetNumAverageArea () const;
43 MCalibConstPix &GetAverageSector ( UInt_t i );
44 const MCalibConstPix &GetAverageSector ( UInt_t i ) const;
45 const Int_t GetNumAverageSector() const;
46 Int_t GetSize () const;
47
48 MCalibConstPix &operator[] ( Int_t i );
49 const MCalibConstPix &operator[] ( Int_t i ) const;
50
51 void Init ( const MGeomCam &geom);
52 void InitSize ( const UInt_t i ) { fArray->ExpandCreate(i); }
53 void InitAverageAreas ( const UInt_t i ) { fAverageAreas->ExpandCreate(i); }
54 void InitAverageSectors ( const UInt_t i ) { fAverageSectors->ExpandCreate(i); }
55
56 void Print(Option_t *o="") const;
57
58 // Setters
59 //void SetRunNumber(const Int_t n) { fRunNumber = n; }
60 void SetBadPixels(MBadPixelsCam *b) { fBadPixels = b; }
61
62 Bool_t GetPixelContent (Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
63 void DrawPixelContent(Int_t idx) const;
64
65 ClassDef(MCalibConstCam, 2) // Temporary Storage for calibration constants
66};
67
68#endif
Note: See TracBrowser for help on using the repository browser.