1 #ifndef PAIRANALYSISSPECTRUM_H
2 #define PAIRANALYSISSPECTRUM_H
13 #include <TGraphErrors.h>
14 #include <TObjArray.h>
62 enum ESystMethod { kBarlow = 0, kSystMax, kSystRMS };
64 PairAnalysisSpectrum();
65 PairAnalysisSpectrum(
const char* name,
const char* title);
67 virtual ~PairAnalysisSpectrum();
71 void SetVariable(TString varType, TVectorD*
const binLimits) {
73 fVarBinning = binLimits;
75 void SetSystMethod(ESystMethod mthd) { fSystMthd = mthd; }
78 void AddInput(TObjArray* raw,
81 TObjArray* truth = NULL);
82 void AddMCInput(PairAnalysisHistos* hf) { fMCInput.Add(hf); }
88 virtual void DrawSpectrum(
const char* varexp,
89 const char* selection =
"",
90 Option_t* option =
"");
91 Int_t Write(
const char*, Int_t, Int_t) {
return -1; }
92 Int_t Write(
const char*, Int_t, Int_t)
const {
return -1; }
94 void Fit(TString drawoption =
"L");
101 virtual void Write();
107 TVectorD* fVarBinning = NULL;
110 ESystMethod fSystMthd =
114 TString fInputKeys[100];
123 TList* fResults = NULL;
124 TObjArray* fExtractions = NULL;
127 TGraphErrors* fSignal = NULL;
129 PairAnalysisSpectrum(
const PairAnalysisSpectrum& c);
130 PairAnalysisSpectrum&
operator=(
const PairAnalysisSpectrum& c);
132 ClassDef(PairAnalysisSpectrum,