source: trunk/MagicSoft/Mars/mcamera/MCameraRecTemp.h@ 7430

Last change on this file since 7430 was 7430, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 898 bytes
Line 
1#ifndef MARS_MCameraRecTemp
2#define MARS_MCameraRecTemp
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#ifndef ROOT_TArrayF
9#include <TArrayF.h>
10#endif
11
12class MCameraRecTemp : public MParContainer
13{
14 friend class MReportCC;
15private:
16 TArrayF fRecTemp; // [deg C] receiver board temperatures
17
18public:
19 MCameraRecTemp(Int_t size=76, const char *name=NULL, const char *title=NULL);
20
21 void SetRecTemp(Int_t i, Float_t val) { fRecTemp[i] = (Int_t)val; }
22 Float_t GetRecTemp(Int_t i) const { return (*this)[i]; }
23 Float_t &operator[](Int_t i) { return (Float_t&)fRecTemp[i]; }
24 const Float_t &operator[](Int_t i) const { return (*const_cast<MCameraRecTemp*>(this))[i]; }
25
26 Float_t GetMin() const;
27 Float_t GetMax() const;
28
29 void Print(Option_t *opt=NULL) const;
30
31 ClassDef(MCameraRecTemp, 1) // Storage Container for Receiver Board Temperature
32};
33
34#endif
Note: See TracBrowser for help on using the repository browser.