Fork me on GitHub

Changeset 91 in svn


Ignore:
Timestamp:
Dec 9, 2008, 10:22:42 AM (16 years ago)
Author:
severine ovyn
Message:

for resol plots

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/interface/FuncDef.h

    r39 r91  
    7979
    8080  string nom = histo.erase(0,histo.find(">>")+2);
    81   TH1F *h = new TH1F(nom.c_str(),"",50,-3,3);
     81  TH1F *h = new TH1F(nom.c_str(),"",50,-1,3);
    8282
    8383  string all = min + " && " + max;
     
    8585  h->SetMarkerSize(0.6);
    8686  double MeanFix = h->GetMean();
    87   TF1 *Gauss = new TF1("Gauss","gaus",-3,3);
     87  TF1 *Gauss = new TF1("Gauss","gaus",-1,3);
    8888  Gauss->FixParameter(1,MeanFix);
    8989  h->Fit("Gauss","QR");
  • trunk/routines/resolutions.C

    r89 r91  
    4343      char tempMin[500];
    4444      if(i==0)binMin=5;
    45       sprintf(tempMin,"JetPTResol.NonSmearePT > %d",binMin);
     45      sprintf(tempMin,"JetPTResol.PT > %d",binMin);
    4646      string mystringMin(tempMin);
    4747      char tempMax[500];
    48       sprintf(tempMax,"JetPTResol.NonSmearePT < %d",binMax);
     48      sprintf(tempMax,"JetPTResol.PT < %d",binMax);
    4949      string mystringMax(tempMax);
    5050      char tempName[500];
    51       sprintf(tempName,"(JetPTResol.SmearePT)>>hETSoverET%d",i);
     51      sprintf(tempName,"(JetPTResol.SmearedPT)>>hETSoverET%d",i);
    5252      string mystringName(tempName);
    5353     
     
    103103  gROOT->Reset();
    104104 
    105   TFile *f1 = new TFile("Etmis.root","read");
     105  TFile *f1 = new TFile("lept.root","read");
    106106  TTree *Analyze = (TTree*)f1->Get("Analysis");
    107107 
     
    311311void General()
    312312{
    313 //  JetResol();
     313  JetResol();
    314314  ElecResol();
    315315  ETmisResol();
Note: See TracChangeset for help on using the changeset viewer.