ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/CmsHi/JetAnalysis/macros/templateMacro.C
(Generate patch)

Comparing UserCode/CmsHi/JetAnalysis/macros/templateMacro.C (file contents):
Revision 1.1 by yilmaz, Mon Feb 4 22:02:40 2013 UTC vs.
Revision 1.2 by yilmaz, Mon Feb 4 22:17:08 2013 UTC

# Line 52 | Line 52 | void templateMacro(){
52    nt->SetAlias("w","pt1> -999");
53    ntMix->SetAlias("w","weight*(pthat > 50)");
54  
55  TCut lead(Form("pt1>%d && abs(eta1) < 2",leadCut));
56  TCut dijet(Form("pt1>%d && pt2>%d && abs(eta1) < 2 && abs(eta2) < 2",leadCut,subleadCut));
57
58  TCut deltaPhi("abs(dphi)>2.0944");
59  TCut jetID("trkMax1 > 4 || trkMax2 > 4");
60  TCut noise("noise < 0");
55    TCut weight("w");
56  
57    TTree* t[2] = {nt,ntMix};
# Line 72 | Line 66 | void templateMacro(){
66      h[i]->GetXaxis()->CenterTitle();
67      h[i]->GetYaxis()->CenterTitle();
68  
69 <    t[i]->Draw(Form("ntrk:cent>>%s",h[i]->GetName()),weight*dijet&&deltaPhi&&jetID&&noise,"colz");
69 >    t[i]->Draw(Form("ntrk:cent>>%s",h[i]->GetName()),weight*dijet&&deltaPhi&&jetID&&vtx&&noise,"colz");
70  
71    }
72  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines