Changeset 23 in svn for trunk/interface
- Timestamp:
- Nov 7, 2008, 6:37:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/interface/FuncDef.h
r17 r23 79 79 80 80 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); 82 82 Analyze->Draw(temp.c_str(),mintemp.c_str(),maxtemp.c_str()); 83 83 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); 85 89 h->Fit("Gauss","R"); 86 90 h->Fit("Gauss","RI"); … … 92 96 h->GetXaxis()->SetTitle("E_{T}^{rec}/E_{T}^{MC} [GeV]"); 93 97 } 94 95 98 96 99 TH1F * 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.