Line | |
---|
1 | #ifndef MARS_MSrcPosCam
|
---|
2 | #define MARS_MSrcPosCam
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MSrcPosCam : public MParContainer
|
---|
9 | {
|
---|
10 | private:
|
---|
11 | Float_t fX; // [mm] x position of source in camera
|
---|
12 | Float_t fY; // [mm] y position of source in camera
|
---|
13 |
|
---|
14 | public:
|
---|
15 | MSrcPosCam(const char *name=NULL, const char *title=NULL);
|
---|
16 |
|
---|
17 | void Clear(Option_t *) { fX = 0; fY = 0; }
|
---|
18 |
|
---|
19 | void SetX(Float_t x) { fX = x; }
|
---|
20 | void SetY(Float_t y) { fY = y; }
|
---|
21 | void SetXY(Float_t x, Float_t y) { fX = x; fY = y; }
|
---|
22 |
|
---|
23 | Float_t GetX() const { return fX; }
|
---|
24 | Float_t GetY() const { return fY; }
|
---|
25 |
|
---|
26 | void Print(Option_t *opt=NULL) const;
|
---|
27 |
|
---|
28 | void AsciiRead(ifstream &fin);
|
---|
29 | void AsciiWrite(ofstream &fout) const;
|
---|
30 |
|
---|
31 | ClassDef(MSrcPosCam, 1) // container to store source position in the camera plain
|
---|
32 | };
|
---|
33 |
|
---|
34 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.