Fork me on GitHub

Changeset 478 in svn


Ignore:
Timestamp:
Jul 13, 2009, 5:38:56 PM (15 years ago)
Author:
Xavier Rouby
Message:

updates needed for Atlas resolution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/interface/FuncDef.h

    r153 r478  
    8484  h->SetMarkerSize(0.6);
    8585  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());
    8888  TF1 *Gauss = new TF1("Gauss","gaus",RangMin,RangMax);
    8989//  Gauss->FixParameter(1,MeanFix);
     
    100100}
    101101
     102
     103void 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
    102122void GaussValuesElec(TTree * Analyze,string histo,double &rms, double &mean, string min,string max)
    103123{
     
    140160  Analyze->Draw(temp.c_str(),all.c_str());
    141161  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());
    144164  //TF1 *Gauss = new TF1("Gauss","gaus");
    145165  TF1 *Gauss = new TF1("Gauss","gaus",RangMin,RangMax);
Note: See TracChangeset for help on using the changeset viewer.