Fork me on GitHub

Changeset 23 in svn for trunk/interface


Ignore:
Timestamp:
Nov 7, 2008, 6:37:38 PM (16 years ago)
Author:
severine ovyn
Message:

Working on the resolution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/interface/FuncDef.h

    r17 r23  
    7979
    8080  string nom = histo.erase(0,histo.find(">>")+2);
    81   TH1F *h = new TH1F(nom.c_str(),"",50,0.5,1.5);
     81  TH1F *h = new TH1F(nom.c_str(),"",100,0,2);
    8282  Analyze->Draw(temp.c_str(),mintemp.c_str(),maxtemp.c_str());
    8383  h->SetMarkerSize(0.6);
    84   TF1 *Gauss = new TF1("Gauss","gausn",0.8,1.3);
     84  double MeanFix = h->GetMean();
     85  double RangMin = h->GetMean()-h->GetRMS();
     86  double RangMax = h->GetMean()+h->GetRMS();
     87  TF1 *Gauss = new TF1("Gauss","gausn",RangMin,RangMax);
     88  Gauss->FixParameter(1,MeanFix);
    8589  h->Fit("Gauss","R");
    8690  h->Fit("Gauss","RI");
     
    9296  h->GetXaxis()->SetTitle("E_{T}^{rec}/E_{T}^{MC} [GeV]");
    9397}
    94 
    9598
    9699TH1F * HiggsMakeNormTH1F(Float_t Scale, Int_t numBin,Float_t minX,Float_t maxX, TTree * Analyze,string histo, Int_t Lcolor, Int_t Fcolor, Int_t Lstyle,Int_t width=2,bool Log=false)
Note: See TracChangeset for help on using the changeset viewer.