答案 0 :(得分:2)
作为起点,您可以使用void Shutdown()
{
spdlog::drop("Logger");
delete _instance;
}
方法,为您编写代码:
MakeClass
然后,您可以查看removeme.h,了解如何将root org.root
root [0]
Attaching file org.root as _file0...
(TFile *) 0x2670460
root [1] .ls
TFile** org.root
TFile* org.root
KEY: TTree SomeTree SomeTree
root [2] SomeTree->MakeClass("removeme")
Info in <TTreePlayer::MakeClass>: Files: removeme.h and removeme.C generated from TTree: B02DD
(Int_t) 0
root [3]
与数组一起使用。归结为
SetBranchAddress
然后您可以在致电Float_t ADCVal[10];
tr->SetBranchAddress("ADCVal", ADCVal);
后访问ADCVal[0]
,ADCVal[1]
,...