6 TFile* f1 =
new TFile(
"ppdc.root");
7 TH1F* h1 = (TH1F*)f1->Get(
"htemp");
9 Double_t pMag = h1->GetRandom();
10 cout<<
"pMag: "<<pMag<<endl;
13 TFile* f2 =
new TFile(
"theta.root");
14 TH1F* h2 = (TH1F*)f2->Get(
"htemp");
16 Double_t theta =(Double_t)h2->GetRandom();
17 cout<<
"theta: "<<theta<<endl;
21 TFile* f3 =
new TFile(
"phi.root");
22 TH1F* h3 = (TH1F*)f3->Get(
"htemp");
24 Double_t phi = (Double_t)h3->GetRandom();
25 cout<<
"phi: "<<phi<<endl;
double cos(const BesAngle a)