source: trunk/MagicSoft/Mars/manalysis/MPedestalCam.h@ 1521

Last change on this file since 1521 was 1268, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 856 bytes
Line 
1#ifndef MARS_MPedestalCam
2#define MARS_MPedestalCam
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#ifndef MARS_MPedestalPix
9#include "MPedestalPix.h"
10#endif
11
12#ifndef ROOT_TClonesArray
13#include <TClonesArray.h>
14#endif
15
16class MPedestalCam : public MParContainer
17{
18private:
19 TClonesArray *fArray; // FIXME: Change TClonesArray away from a pointer?
20
21public:
22 MPedestalCam(const char *name=NULL, const char *title=NULL);
23 ~MPedestalCam();
24
25 void InitSize(const UInt_t i) { fArray->ExpandCreate(i); }
26
27 MPedestalPix &operator[](Int_t i) { return *(MPedestalPix*)fArray->UncheckedAt(i); }
28 MPedestalPix &operator[](Int_t i) const { return *(MPedestalPix*)fArray->UncheckedAt(i); }
29
30 Bool_t CheckBounds(Int_t i);
31
32 ClassDef(MPedestalCam, 1) // Storage Container for all pedestal information of the camera
33};
34
35#endif
36
Note: See TracBrowser for help on using the repository browser.