source: trunk/MagicSoft/Mars/mmuon/MHMuonPar.h@ 8672

Last change on this file since 8672 was 7366, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MHMuonPar
2#define MARS_MHMuonPar
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7#ifndef ROOT_TH1
8#include <TH1.h>
9#endif
10#ifndef ROOT_TProfile
11#include <TProfile.h>
12#endif
13
14class MMuonSearchPar;
15class MMuonCalibPar;
16class MGeomCam;
17
18class MHMuonPar : public MH
19{
20private:
21 static const Float_t fgIntegralLoLim; // lower limit of integral
22 static const Float_t fgIntegralUpLim; // upper limit of integral
23
24 MMuonSearchPar *fMuonSearchPar; //!
25 MMuonCalibPar *fMuonCalibPar; //!
26
27 TH1F fHistRadius; // Radius
28 TH1F fHistArcWidth; // ArcWidth
29
30 TProfile fHistBroad; // ArcWidth/Radius Vs Radius
31 TProfile fHistSize; // MuonSize Vs Radius
32
33 Float_t fMm2Deg;
34
35 //Double_t Integral(const TProfile &p, Int_t a, Int_t b) const;
36 Double_t Integral(const TProfile &p, Float_t a=fgIntegralLoLim, Float_t b=fgIntegralUpLim) const;
37
38public:
39 MHMuonPar(const char *name=NULL, const char *title=NULL);
40
41 Bool_t SetupFill(const MParList *plist);
42 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
43
44 const TH1F& GetHistRadius() const { return fHistRadius; }
45 const TH1F& GetHistArcWidth() const { return fHistArcWidth; }
46 const TProfile& GetHistBroad() const { return fHistBroad; }
47 const TProfile& GetHistSize() const { return fHistSize; }
48
49 Double_t GetMeanSize() const { return Integral(fHistSize); }
50 Double_t GetMeanWidth() const { return Integral(fHistBroad); }
51 Stat_t GetEntries() const { return fHistBroad.GetEntries(); }
52
53 void Draw(Option_t *opt="");
54 void Paint(Option_t *opt="");
55
56 ClassDef(MHMuonPar, 1)
57};
58
59#endif
60
61
Note: See TracBrowser for help on using the repository browser.