source: trunk/MagicSoft/Mars/mpointing/MSrcPosCam.h@ 3682

Last change on this file since 3682 was 3568, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1015 bytes
Line 
1#ifndef MARS_MSrcPosCam
2#define MARS_MSrcPosCam
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class TVector2;
9
10class MSrcPosCam : public MParContainer
11{
12private:
13 Float_t fX; // [mm] x position of source in camera
14 Float_t fY; // [mm] y position of source in camera
15
16 void StreamPrimitive(ofstream &out) const;
17
18public:
19 MSrcPosCam(const char *name=NULL, const char *title=NULL);
20
21 void Clear(Option_t *) { fX = 0; fY = 0; }
22
23 void SetX(Float_t x) { fX = x; }
24 void SetY(Float_t y) { fY = y; }
25 void SetXY(Float_t x, Float_t y) { fX = x; fY = y; }
26 void SetXY(const TVector2 &v);
27
28 Float_t GetX() const { return fX; }
29 Float_t GetY() const { return fY; }
30 TVector2 GetXY() const;
31
32 void Print(Option_t *opt=NULL) const;
33
34 //void AsciiRead(ifstream &fin);
35 //void AsciiWrite(ofstream &fout) const;
36
37 ClassDef(MSrcPosCam, 1) // container to store source position in the camera plain
38};
39
40#endif
Note: See TracBrowser for help on using the repository browser.