source: trunk/Mars/mmuon/MHSingleMuon.h@ 14911

Last change on this file since 14911 was 14896, checked in by tbretz, 12 years ago
Added MCalibrateFact and MCalibrateDrsTimes
File size: 1.8 KB
Line 
1#ifndef MARS_MHSingleMuon
2#define MARS_MHSingleMuon
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7#ifndef ROOT_TProfile
8#include <TProfile.h>
9#endif
10
11class MSignalCam;
12class MMuonSearchPar;
13class MMuonCalibPar;
14class MMuonSetup;
15class MGeomCam;
16
17class MHSingleMuon : public MH
18{
19private:
20 MSignalCam *fSignalCam; //!
21 MMuonSearchPar *fMuonSearchPar; //!
22 MGeomCam *fGeomCam; //!
23
24 Double_t fMargin; //!
25 Bool_t fUseCleanedSignal; //!
26
27 TProfile fHistPhi; // Histogram of photon distribution along the arc.
28 TProfile fHistWidth; // Histogram of radial photon distribution of the arc.
29 TH1F fHistTime; // Histogram of arrival time distribution along the arc.
30
31 Double_t fRelTimeMean; // Result of the gaus fit to the arrival time
32 Double_t fRelTimeSigma; // Result of the gaus fit to the arrival time
33
34 Bool_t FindRangeAboveThreshold(const TProfile &h, Float_t thres, Int_t &first, Int_t &last) const;
35
36public:
37 MHSingleMuon(const char *name=NULL, const char *title=NULL);
38
39 Bool_t SetupFill(const MParList *plist);
40 Int_t Fill(const MParContainer *par, const Stat_t w=1);
41
42 Bool_t CalcPhi(Double_t, Double_t &, Double_t &) const;
43 Bool_t CalcWidth(Double_t, Double_t &, Double_t &);
44
45 const TProfile &GetHistPhi() const { return fHistPhi; }
46 const TH1F &GetHistTime() const { return fHistTime; }
47 const TProfile &GetHistWidth() const { return fHistWidth; }
48
49 Double_t GetRelTimeMean() const { return fRelTimeMean; }
50 Double_t GetRelTimeSigma() const { return fRelTimeSigma; }
51
52 void SetUseCleanedSignal(Bool_t b=kTRUE) { fUseCleanedSignal = b; }
53
54 Float_t CalcSize() const;
55
56 void Draw(Option_t *o="");
57 void Paint(Option_t *o="");
58
59 ClassDef(MHSingleMuon, 2)
60};
61
62#endif
Note: See TracBrowser for help on using the repository browser.