Fork me on GitHub

Changeset 488 in svn for trunk


Ignore:
Timestamp:
Jul 15, 2009, 8:12:43 PM (15 years ago)
Author:
Xavier Rouby
Message:

slight changes for ATLAS resolution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/interface/FuncDef.h

    r486 r488  
    179179
    180180  string nom = histo.erase(0,histo.find(">>")+2);
    181   TH1F *h = new TH1F(nom.c_str(),"",50,-50,50);
     181  TH1F *h = new TH1F(nom.c_str(),"",80,-80,80);
    182182
    183183  string all = min + " && " + max;
    184184  Analyze->Draw(temp.c_str(),all.c_str());
    185185  h->SetMarkerSize(0.6);
    186   double RangMin = (h->GetMean()-2.5*h->GetRMS());
    187   double RangMax = (h->GetMean()+2.5*h->GetRMS());
    188   //TF1 *Gauss = new TF1("Gauss","gaus");
     186  double RangMin = (h->GetMean()-3*h->GetRMS());
     187  double RangMax = (h->GetMean()+3*h->GetRMS());
    189188  TF1 *Gauss = new TF1("Gauss","gaus",RangMin,RangMax);
    190   //TF1 *Gauss = new TF1("Gauss","gaus");
     189  //Gauss->FixParameter(1,0);
     190  h->Fit("Gauss","QR");
     191  h->Fit("Gauss","QR");
    191192  h->Fit("Gauss","QR");
    192193  h->Fit("Gauss","QRI");
Note: See TracChangeset for help on using the changeset viewer.