| 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 | 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 | TArrayI fCounter; //!
|
|---|
| 30 |
|
|---|
| 31 | // MHThetaSqN
|
|---|
| 32 | TVector2 GetVec(const TVector2 &v, Int_t n1) const;
|
|---|
| 33 | void SetVal(Double_t val);
|
|---|
| 34 |
|
|---|
| 35 | // MHAlpha
|
|---|
| 36 | Bool_t GetParameter(const MParList &pl) { return kTRUE; }
|
|---|
| 37 | Double_t GetVal() const;
|
|---|
| 38 | void SetOffData(const MHAlpha &h)
|
|---|
| 39 | {
|
|---|
| 40 | const MHThetaSqN &t = (MHThetaSqN&)h;
|
|---|
| 41 |
|
|---|
| 42 | fDoOffCut = t.fDoOffCut;
|
|---|
| 43 | fNumOffSourcePos = t.fNumOffSourcePos;
|
|---|
| 44 |
|
|---|
| 45 | MHAlpha::SetOffData(h);
|
|---|
| 46 | }
|
|---|
| 47 |
|
|---|
| 48 | // MH
|
|---|
| 49 | Bool_t SetupFill(const MParList *pl);
|
|---|
| 50 | Bool_t Fill(const MParContainer *par, const Stat_t weight);
|
|---|
| 51 | Bool_t Finalize();
|
|---|
| 52 |
|
|---|
| 53 | // MParContainer
|
|---|
| 54 | Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE);
|
|---|
| 55 |
|
|---|
| 56 | public:
|
|---|
| 57 | MHThetaSqN(const char *name=NULL, const char *title=NULL);
|
|---|
| 58 | ~MHThetaSqN();
|
|---|
| 59 |
|
|---|
| 60 | void InitMapping(MHMatrix *mat, Int_t type=0);
|
|---|
| 61 |
|
|---|
| 62 | void SetNumBinsSignal(UInt_t n) { fNumBinsSignal =TMath::Max(n, 1U); }
|
|---|
| 63 | void SetNumBinsTotal(UInt_t n) { fNumBinsTotal =TMath::Max(n, 1U); }
|
|---|
| 64 | void SetNumOffSourcePos(UInt_t n=3) { fNumOffSourcePos=TMath::Max(n, 1U); }
|
|---|
| 65 |
|
|---|
| 66 | void SetSignificanceCutLevel(Double_t l=1.7) { fSignificanceCutLevel=l; }
|
|---|
| 67 |
|
|---|
| 68 | void SetDoOffCut(Bool_t b=kTRUE) { fDoOffCut = b; }
|
|---|
| 69 |
|
|---|
| 70 | ClassDef(MHThetaSqN, 1) // Theta-Plot which is fitted online
|
|---|
| 71 | };
|
|---|
| 72 |
|
|---|
| 73 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.