ROOTPWA
plotStates.C
Go to the documentation of this file.
1 {
2 
3 double scale=1;
4 
5 THStack* stack=new THStack("hs","Meson States");
6 pdg->Draw("_mass/1000>>h1(50,0,5)","_mass<5000 && _status>=3 && _R==0 && (_I==1 || _I==-1) && (_G==-1)","GOFF");
7  h1->SetFillColor(kGreen-6);
8 h1->Scale(scale);
9 stack->Add(h1);
10 
11 pdg->Draw("_mass/1000>>h3(50,0,5)","_mass<5000 && _status==2 && _R==0 && (_I==1 || _I==-1) && (_G==-1 || _G==0)","GOFF");
12  h3->SetFillColor(kAzure-4);
13 h3->Scale(scale);
14 stack->Add(h3);
15 
16 pdg->Draw("_mass/1000>>h4(50,0,5)","_mass<5000 && _status==1 && _R==0 && (_I==1 || _I==-1) && (_G==-1 || _G==0)","GOFF");
17  h4->SetFillColor(kRed-7);
18 h4->Scale(scale);
19 stack->Add(h4);
20 
21 
22 
23 //stack->Draw("");
24 
25 
26 pdg->Draw("(_mass/1000)^2:_J","_mass<3000 && _R==0 && (_I==1 || _I==-1 || _I==0) ","GOFF");
27 
28 
29 
30 }