source: trunk/MagicSoft/Mars/mmuon/MMuonCalibPar.h@ 5510

Last change on this file since 5510 was 5331, checked in by mase, 20 years ago
*** empty log message ***
File size: 4.1 KB
Line 
1#ifndef MARS_MMuonCalibPar
2#define MARS_MMuonCalibPar
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#ifndef ROOT_TH1
9#include <TH1.h>
10#endif
11
12class MCerPhotEvt;
13class MMuonSearchPar;
14
15class MMuonCalibPar : public MParContainer
16{
17private:
18 Float_t fArcLength; // An arc length of a muon along the arc [deg.]
19 Float_t fArcPhi; // A opening angle of a muon arc [deg.]
20 Float_t fArcWidth; // A width of a muon [deg.] (1 sigma of gaussian fit)
21 Float_t fChiArcPhi; // A chisquare value of the cosine fit for arc phi
22 Float_t fChiArcWidth; // A chisquare value of the cosine fit for arc wid
23 Float_t fMuonSize; // A SIZE of muon which is defined as a SIZE around the estimated circle
24 Float_t fEstImpact; // An estimated impact parameter from the photon distribution along the arc image
25 Float_t fMargin; // margin to evaluate muons [mm]. The defaut value is 60 mm, corresponding to 0.2 deg. This value can be changed by using the function of SetMargin
26 Bool_t fUseUnmap; // This is a flag to know the Unmapped pixels are used. Refer to the class of MImgCleanStd
27 Float_t fPeakPhi; // The angle which indicates the peak position in the estimated circle
28 Float_t fArcPhiThres; // The threshold value to define arc phi
29 Float_t fArcWidthThres; // The threshold value to define arc width
30
31public:
32 MMuonCalibPar(const char *name=NULL, const char *title=NULL);
33 ~MMuonCalibPar();
34
35 Int_t fArcPhiBinNum; // The bin number for the histogram of arc phi. You may change this value. However, if you change this, YOU ALSO HAVE TO CHANGE THE THRESHOLD VALUE TO GET ARC LENGTH.
36 Int_t fArcWidthBinNum; // The bin number for the histogram of arc wid
37 Float_t fArcPhiHistStartVal; // The starting value for the histogram of arc phi
38 Float_t fArcPhiHistEndVal; // The end value for the histogram of arc phi
39 Float_t fArcWidthHistStartVal; // The starting value for the histogram of arc width
40 Float_t fArcWidthHistEndVal; // The end value for the histogram of arc width
41
42 TH1F *fHistPhi; // Histogram of photon distribution along the arc.
43 TH1F *fHistWidth; // Histogram of radial photon distribution of the arc.
44
45 void Reset();
46
47 Float_t GetArcLength() const { return fArcLength; }
48 Float_t GetArcPhi() const { return fArcPhi; }
49 Float_t GetArcWidth() const { return fArcWidth; }
50 Float_t GetChiArcPhi() const { return fChiArcPhi; }
51 Float_t GetChiArcWidth() const { return fChiArcWidth; }
52 Float_t GetMargin() const { return fMargin; }
53 Float_t GetMuonSize() const { return fMuonSize; }
54 Float_t GetEstImpact() const { return fEstImpact; }
55 Bool_t IsUseUnmap() const { return fUseUnmap; }
56 Float_t GetPeakPhi() const { return fPeakPhi; }
57 Float_t GetArcPhiThres() const { return fArcPhiThres; }
58 Float_t GetArcWidthThres() const { return fArcWidthThres; }
59 Float_t GetArcPhiBinNum() const { return fArcPhiBinNum; }
60 Float_t GetArcWidthBinNum() const { return fArcWidthBinNum; }
61 TH1F *GetHistPhi() { return fHistPhi; }
62 TH1F *GetHistWidth() { return fHistWidth; }
63
64 void SetArcLength(Float_t len) { fArcLength = len; }
65 void SetArcPhi(Float_t phi) { fArcPhi = phi; }
66 void SetArcWidth(Float_t wid) { fArcWidth = wid; }
67 void SetChiArcPhi(Float_t chi) { fChiArcPhi = chi; }
68 void SetChiArcWidth(Float_t chi) { fChiArcWidth = chi; }
69 void SetMargin(Float_t margin) { fMargin = margin; }
70 void SetMuonSize(Float_t size) { fMuonSize = size; }
71 void SetEstImpact(Float_t impact) { fEstImpact = impact; }
72 void SetUseUnmap() { fUseUnmap = kTRUE; }
73 void SetPeakPhi(Float_t phi) { fPeakPhi = phi; }
74 void SetArcPhiThres(Float_t thres) { fArcPhiThres = thres; }
75 void SetArcWidthThres(Float_t thres) { fArcWidthThres = thres; }
76 void SetArcPhiBinNum(Int_t num) { fArcPhiBinNum = num; }
77 void SetArcWidthBinNum(Int_t num) { fArcWidthBinNum = num; }
78
79 void Print(Option_t *opt=NULL) const;
80
81 ClassDef(MMuonCalibPar, 1) // Container to hold muon calibration parameters
82};
83
84#endif
Note: See TracBrowser for help on using the repository browser.