source: trunk/MagicSoft/Mars/manalysis/MSrcPosCam.h@ 3392

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