保存mca格式

TH1I *hspec1[4*NPAR];
  for (int i = 0; i < 4*NPAR; ++i)
    {
      hspec1[i] = new TH1I(TString::Format("adj%02d",i+1).Data(),"",65536,0,65536);
    }

for (int i = 0; i < 4*NPAR; ++i)
   {
	std::ofstream writemca;
	writemca.open(TString::Format("calimca/%d_R%d.mca",runnum,i+1).Data());
	if(!writemca.is_open())
	  {
	    std::cout<<"can't open file."<>"<>"<GetBinContent(k+1)<>"<

 

你可能感兴趣的:(C++)