source: trunk/MagicSoft/Mars/mhflux/MHThetaSqN.h@ 7764

Last change on this file since 7764 was 7720, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 1.7 KB
Line 
1#ifndef MARS_MHThetaSqN
2#define MARS_MHThetaSqN
3
4#ifndef MARS_MHAlpha
5#include "MHAlpha.h"
6#endif
7
8class TVector2;
9
10class MTaskList;
11class MSrcPosCam;
12
13class MHThetaSqN : public MHAlpha
14{
15private:
16 MParameterD *fDisp; //!
17 MSrcPosCam *fSrcPosCam; //!
18
19 Double_t fMm2Deg; //!
20 Double_t fThetaSqCut; //!
21 Double_t fSignificanceCutLevel;
22
23 UInt_t fNumBinsSignal;
24 UInt_t fNumBinsTotal;
25 UInt_t fNumOffSourcePos;
26
27 Bool_t fDoOffCut;
28
29 // MHThetaSqN
30 TVector2 GetVec(const TVector2 &v, Int_t n1) const;
31 void SetVal(Double_t val);
32
33 // MHAlpha
34 Bool_t GetParameter(const MParList &pl) { return kTRUE; }
35 Double_t GetVal() const;
36 void SetOffData(const MHAlpha &h)
37 {
38 const MHThetaSqN &t = (MHThetaSqN&)h;
39
40 fDoOffCut = t.fDoOffCut;
41 fNumOffSourcePos = t.fNumOffSourcePos;
42
43 MHAlpha::SetOffData(h);
44 }
45
46 // MH
47 Bool_t SetupFill(const MParList *pl);
48 Bool_t Fill(const MParContainer *par, const Stat_t weight);
49
50 // MParContainer
51 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE);
52
53public:
54 MHThetaSqN(const char *name=NULL, const char *title=NULL);
55 ~MHThetaSqN();
56
57 void InitMapping(MHMatrix *mat, Int_t type=0);
58
59 void SetNumBinsSignal(UInt_t n) { fNumBinsSignal =TMath::Max(n, 1U); }
60 void SetNumBinsTotal(UInt_t n) { fNumBinsTotal =TMath::Max(n, 1U); }
61 void SetNumOffSourcePos(UInt_t n=3) { fNumOffSourcePos=TMath::Max(n, 1U); }
62
63 void SetSignificanceCutLevel(Double_t l=1.7) { fSignificanceCutLevel=l; }
64
65 void SetDoOffCut(Bool_t b=kTRUE) { fDoOffCut = b; }
66
67 ClassDef(MHThetaSqN, 1) // Theta-Plot which is fitted online
68};
69
70#endif
Note: See TracBrowser for help on using the repository browser.