| 1 | #ifndef MARS_MTSupercutsApplied
|
|---|
| 2 | #define MARS_MTSupercutsApplied
|
|---|
| 3 | //////////////////////////////////////////////////////////////////////////
|
|---|
| 4 | // //
|
|---|
| 5 | // MTSupercutsApplied //
|
|---|
| 6 | // //
|
|---|
| 7 | // Class containing TTree object used to store
|
|---|
| 8 | // supercuts applied to all individual events //
|
|---|
| 9 | // //
|
|---|
| 10 | //////////////////////////////////////////////////////////////////////////
|
|---|
| 11 | #ifndef MARS_MAGIC
|
|---|
| 12 | #include "MAGIC.h"
|
|---|
| 13 | #endif
|
|---|
| 14 |
|
|---|
| 15 | #ifndef MARS_MParContainer
|
|---|
| 16 | #include "MParContainer.h"
|
|---|
| 17 | #endif
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 | #ifndef ROOT_TObject
|
|---|
| 21 | #include <TObject.h>
|
|---|
| 22 | #endif
|
|---|
| 23 | #ifndef ROOT_TString
|
|---|
| 24 | #include <TString.h>
|
|---|
| 25 | #endif
|
|---|
| 26 | #ifndef ROOT_TArrayD
|
|---|
| 27 | #include <TArrayD.h>
|
|---|
| 28 | #endif
|
|---|
| 29 | #ifndef ROOT_TTree
|
|---|
| 30 | #include <TTree.h>
|
|---|
| 31 | #endif
|
|---|
| 32 |
|
|---|
| 33 | class MTSupercutsApplied : public MParContainer
|
|---|
| 34 | {
|
|---|
| 35 | private:
|
|---|
| 36 |
|
|---|
| 37 | Int_t fNCutParameters;
|
|---|
| 38 | Int_t fNShowerParameters;
|
|---|
| 39 |
|
|---|
| 40 | Double_t* fCutParameters;
|
|---|
| 41 | Double_t* fShowerParameters;
|
|---|
| 42 | /*
|
|---|
| 43 | Double_t fLengthUp;
|
|---|
| 44 | Double_t fLengthLow;
|
|---|
| 45 | Double_t fWidthUp;
|
|---|
| 46 | Double_t fWidthLow;
|
|---|
| 47 | Double_t fDistUp;
|
|---|
| 48 | Double_t fDistLow;
|
|---|
| 49 | */
|
|---|
| 50 | TTree* fRootTree;
|
|---|
| 51 |
|
|---|
| 52 | Bool_t fBranchesCreated;
|
|---|
| 53 |
|
|---|
| 54 | TString fCutParamBranchName;
|
|---|
| 55 | TString fShowerParamBranchName;
|
|---|
| 56 |
|
|---|
| 57 | TString fCutParametersNamesTypes;
|
|---|
| 58 | TString fShowerParametersNamesTypes;
|
|---|
| 59 |
|
|---|
| 60 | public:
|
|---|
| 61 | MTSupercutsApplied(const char* name=NULL, const char* title=NULL);
|
|---|
| 62 | ~MTSupercutsApplied();
|
|---|
| 63 |
|
|---|
| 64 | /*
|
|---|
| 65 | Double_t GetLengthUp() const { return fLengthUp; }
|
|---|
| 66 | Double_t GetLengthLow() const { return fLengthLow; }
|
|---|
| 67 | Double_t GetWidthUp() const { return fWidthUp; }
|
|---|
| 68 | Double_t GetWidthLow() const { return fWidthLow; }
|
|---|
| 69 | Double_t GetDistUp() const { return fDistUp; }
|
|---|
| 70 | Double_t GetDistLow() const { return fDistLow; }
|
|---|
| 71 |
|
|---|
| 72 |
|
|---|
| 73 | void SetLengthUp(Double_t x) { fLengthUp = x; }
|
|---|
| 74 | void SetLengthLow(Double_t x) { fLengthLow = x; }
|
|---|
| 75 | void SetWidthUp(Double_t x) { fWidthUp = x; }
|
|---|
| 76 | void SetWidthLow(Double_t x) { fWidthLow = x; }
|
|---|
| 77 | void SetDistUp(Double_t x) { fDistUp = x; }
|
|---|
| 78 | void SetDistLow(Double_t x) { fDistLow = x; }
|
|---|
| 79 | */
|
|---|
| 80 |
|
|---|
| 81 | Bool_t CreateTreeBranches();
|
|---|
| 82 |
|
|---|
| 83 | Bool_t FillTreeBranches(TArrayD CutParamVector,
|
|---|
| 84 | TArrayD ShowerParamVector);
|
|---|
| 85 |
|
|---|
| 86 | TTree* GetTreePointer() {return fRootTree;}
|
|---|
| 87 |
|
|---|
| 88 |
|
|---|
| 89 | ClassDef(MTSupercutsApplied, 1) // Storage Container for the supercuts applied
|
|---|
| 90 | };
|
|---|
| 91 |
|
|---|
| 92 | #endif
|
|---|
| 93 |
|
|---|
| 94 |
|
|---|
| 95 |
|
|---|
| 96 |
|
|---|
| 97 |
|
|---|
| 98 |
|
|---|