typedef 使用
比如, typedef G4THitsCollection<B2TrackerHit> B2TrackerHitsCollection; 将 G4THitsCollection<B2TrackerHit> 重命名为 B2TrackerHitsCollection
文件流作为函数参数
1 void fitshape(std::ofstream &ffo, TString fitfunc, Int_t start, Int_t stop); 2 3 std::ofstream ffo; 4 ffo.open("test.tt", std::fstream::app);
5 TString sss("test"); 6 fd_tmp->fitshape(ffo, sss, 0, 4000);