source: branches/Mars_use_drstimefiles/mhflux/MHThetaSqN.h@ 20020

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