Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
AddMC.C
이 파일의 문서화 페이지로 가기
1 {
2 fin = filp[ipart] + filt[itarg] + ".root";
3 
4 TFile* fff = new TFile(fin);
5 TH1F* hhh;
6 
7 cout << "Opened file " << fin << " ixs= " << ixs << endl;
8 if(ixs==0) hhh = (TH1F*)fff->Get("h1");
9 if(ixs==1) hhh = (TH1F*)fff->Get("h2");
10 if(ixs==2) hhh = (TH1F*)fff->Get("h3");
11 if(ixs==3) hhh = (TH1F*)fff->Get("h4");
12 if(ixs==4) hhh = (TH1F*)fff->Get("h5");
13 if(ixs==5) hhh = (TH1F*)fff->Get("h6");
14 if(ixs==6) hhh = (TH1F*)fff->Get("h7");
15 
16 hhh->SetLineColor(col[itarg]);
17 hhh->SetLineWidth(2);
18 leg[ixs]->AddEntry(hhh, targ[itarg], "l");
19 hhh->Draw("C HIST SAME");
20 c1->Update();
21 }
TString filp[npart]
Definition: Style.C:31
Int_t itarg
Definition: Style.C:11
Int_t ipart
Definition: Style.C:10
TString targ[ntarg]
Definition: Style.C:27
TLegend * leg
Definition: compare.C:67
TFile * fff
Definition: AddMC.C:4
fin
Definition: AddMC.C:2
Int_t ixs
Definition: Style.C:12
Int_t col[ntarg]
Definition: Style.C:29
TH1F * hhh
Definition: AddMC.C:5
TString filt[ntarg]
Definition: Style.C:28