source: trunk/MagicSoft/Mars/mmuon/MMuonSearchPar.h@ 6191

Last change on this file since 6191 was 5331, checked in by mase, 20 years ago
*** empty log message ***
File size: 1.9 KB
Line 
1#ifndef MARS_MMuonSearchPar
2#define MARS_MMuonSearchPar
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class MHillas;
9class MGeomCam;
10class MCerPhotEvt;
11
12class MMuonSearchPar : public MParContainer
13{
14private:
15 Float_t fRadius; // An estimated radius of the muon ring [mm]
16 Float_t fDeviation; // The standard deviation from the estimated ring [mm]
17 Float_t fCenterX; // An estimated center position in X of the muon ring [mm]
18 Float_t fCenterY; // An estimated center position in Y of the muon ring [mm]
19 Bool_t fNoMuon; // if the radius is estimated above 600 mm (2 deg.), assumed it's not muon. Later on, at the stage of MMuonCalibParCalc, this flag will be changed if the task judge the event as no muon.
20
21public:
22 MMuonSearchPar(const char *name=NULL, const char *title=NULL);
23
24 void Reset();
25
26 Float_t GetRadius() const { return fRadius; }
27 Float_t GetDeviation() const { return fDeviation; }
28 Float_t GetCenterX() const { return fCenterX; }
29 Float_t GetCenterY() const { return fCenterY; }
30 Bool_t IsNoMuon() const { return fNoMuon; }
31 void SetNoMuon() { fNoMuon = kTRUE; }
32
33 void CalcTempCenter(const MHillas &hillas, Float_t &xtmp1,
34 Float_t &ytmp1, Float_t &xtmp2, Float_t &ytmp2);
35 Bool_t CalcRadius(const MGeomCam &geom, const MCerPhotEvt &evt, Float_t x,
36 Float_t y, Float_t &r, Float_t &sigma);
37 void CalcMinimumDeviation(const MGeomCam &geom, const MCerPhotEvt &evt,
38 Float_t x, Float_t y, Float_t xcog,
39 Float_t ycog, Float_t sigma, Float_t &opt_rad,
40 Float_t &new_sigma, Float_t &newx, Float_t &newy);
41 void Calc(const MGeomCam &geom, const MCerPhotEvt &evt,
42 const MHillas &hillas);
43
44 void Print(Option_t *opt=NULL) const;
45 void Print(const MGeomCam &geom, Option_t *opt=NULL) const;
46
47 ClassDef(MMuonSearchPar, 1) // Container to hold muon search parameters
48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.