source: branches/MarsMoreSimulationTruth/mcamera/MCameraLid.h@ 19166

Last change on this file since 19166 was 3666, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MARS_MCameraLid
2#define MARS_MCameraLid
3
4// Derived from MParContainer instead of TObject
5// to supress writing fUniqueId and fBits
6#ifndef MARS_MParContainer
7#include <MParContainer.h>
8#endif
9
10class MCameraLid : public MParContainer
11{
12 friend class MReportCamera;
13private:
14 Bool_t fLimitOpen; // 0=not active, 1= active
15 Bool_t fLimitClose; // 0=not active, 1= active
16
17 Bool_t fSafetyLimitOpen; // 0=not active, 1= active
18 Bool_t fSafetyLimitClose; // 0=not active, 1= active
19
20 Byte_t fStatusLid; // 0=positioning, 1=open, 2=closed
21 Byte_t fStatusMotor; // 0=stopped, 1=opening, 2=closing
22
23public:
24 MCameraLid()
25 {
26 fName = "MCameraLid";
27 fTitle = "Container storing information about a Camera lid";
28 }
29
30 Bool_t GetLimitOpen() const { return fLimitOpen; }
31 Bool_t GetLimitClose() const { return fLimitClose; }
32
33 Bool_t GetSafetyLimitOpen() const { return fSafetyLimitOpen; }
34 Bool_t GetSafetyLimitClose() const { return fSafetyLimitClose; }
35
36 Byte_t GetStatusLid() const { return fStatusLid; }
37 Byte_t GetStatusMotor() const { return fStatusMotor; }
38
39 ClassDef(MCameraLid, 1) // Container storing information about a Camera lid
40};
41
42#endif
Note: See TracBrowser for help on using the repository browser.