Changeset 488 in svn
- Timestamp:
- Jul 15, 2009, 8:12:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/interface/FuncDef.h
r486 r488 179 179 180 180 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); 182 182 183 183 string all = min + " && " + max; 184 184 Analyze->Draw(temp.c_str(),all.c_str()); 185 185 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()); 189 188 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"); 191 192 h->Fit("Gauss","QR"); 192 193 h->Fit("Gauss","QRI");
Note:
See TracChangeset
for help on using the changeset viewer.