source: tags/Mars-V0.10.2/mcalib/MCalibConstCam.h

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