Changeset 478 in svn
- Timestamp:
- Jul 13, 2009, 5:38:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/interface/FuncDef.h
r153 r478 84 84 h->SetMarkerSize(0.6); 85 85 double MeanFix = h->GetMean(); 86 double RangMin = (h->GetMean()- 2*h->GetRMS());87 double RangMax = (h->GetMean()+ 2*h->GetRMS());86 double RangMin = (h->GetMean()-1.5*h->GetRMS()); 87 double RangMax = (h->GetMean()+1.5*h->GetRMS()); 88 88 TF1 *Gauss = new TF1("Gauss","gaus",RangMin,RangMax); 89 89 // Gauss->FixParameter(1,MeanFix); … … 100 100 } 101 101 102 103 void GaussValuesAsymmetry(TTree * Analyze,string histo, double &mean, string min,string max) 104 { 105 string temp = histo; 106 string mintemp = min; 107 string maxtemp = max; 108 109 string nom = histo.erase(0,histo.find(">>")+2); 110 TH1F *h = new TH1F(nom.c_str(),"",500,-10,40); 111 string all = min + " && " + max; 112 Analyze->Draw(temp.c_str(),all.c_str()); 113 h->SetMarkerSize(0.6); 114 mean = h->GetMean(); 115 double RangMin = (h->GetMean()-2*h->GetRMS()); 116 double RangMax = (h->GetMean()+2*h->GetRMS()); 117 } 118 119 120 121 102 122 void GaussValuesElec(TTree * Analyze,string histo,double &rms, double &mean, string min,string max) 103 123 { … … 140 160 Analyze->Draw(temp.c_str(),all.c_str()); 141 161 h->SetMarkerSize(0.6); 142 double RangMin = (h->GetMean()- 2*h->GetRMS());143 double RangMax = (h->GetMean()+ 2*h->GetRMS());162 double RangMin = (h->GetMean()-1.9*h->GetRMS()); 163 double RangMax = (h->GetMean()+1.9*h->GetRMS()); 144 164 //TF1 *Gauss = new TF1("Gauss","gaus"); 145 165 TF1 *Gauss = new TF1("Gauss","gaus",RangMin,RangMax);
Note:
See TracChangeset
for help on using the changeset viewer.