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

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