source: trunk/MagicSoft/Mars/manalysis/MHillasSrc.h@ 1292

Last change on this file since 1292 was 1237, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef MARS_MHillasSrc
2#define MARS_MHillasSrc
3
4#ifndef MARS_MHillas
5#include "MHillas.h"
6#endif
7
8class MSrcPosCam;
9
10class MHillasSrc : public MParContainer
11{
12private:
13 const MHillas *fHillas; //! Input parameters
14 const MSrcPosCam *fSrcPos; //! Source position in the camere
15
16 Float_t fAlpha; // [deg] angle of major axis with vector to src
17 Float_t fDist; // [mm] distance from src to center of ellipse
18 Float_t fHeadTail; // [mm]
19
20public:
21 MHillasSrc(const char *name=NULL, const char *title=NULL);
22
23 void SetSrcPos(const MSrcPosCam *pos) { fSrcPos = pos; }
24 const MSrcPosCam *GetSrcPos() const { return fSrcPos; }
25
26 Float_t GetLength() const { return fHillas->GetLength(); }
27 Float_t GetWidth() const { return fHillas->GetWidth(); }
28 Float_t GetDelta() const { return fHillas->GetDelta(); }
29 Float_t GetSize() const { return fHillas->GetSize(); }
30 Float_t GetMeanX() const { return fHillas->GetMeanX(); }
31 Float_t GetMeanY() const { return fHillas->GetMeanY(); }
32 Float_t GetAlpha() const { return fAlpha; }
33 Float_t GetDist() const { return fDist; }
34 Float_t GetHeadTail() const { return fHeadTail; }
35
36 void Print(Option_t *opt=NULL) const;
37
38 virtual void Calc(const MHillas *hillas);
39
40 virtual void AsciiRead(ifstream &fin);
41 //virtual void AsciiWrite(ofstream &fout) const;
42
43 ClassDef(MHillasSrc, 2) // Container to hold source position dependant parameters
44};
45
46/*
47 Version 1: fAlpha, fDist
48 Version 2: fAlpha, fDist, fSign
49 */
50
51#endif
Note: See TracBrowser for help on using the repository browser.