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