本文整理汇总了C++中TVectorD::SetElements方法的典型用法代码示例。如果您正苦于以下问题:C++ TVectorD::SetElements方法的具体用法?C++ TVectorD::SetElements怎么用?C++ TVectorD::SetElements使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TVectorD
的用法示例。
在下文中一共展示了TVectorD::SetElements方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: FillVar
void FillVar(){
///
npoints =tree->Draw("side",cutA+cut1+cut2);
vside.ResizeTo(npoints); vside.SetElements(tree->GetV1());
//
npoints =tree->Draw("z",cutA+cut1+cut2);
vz.ResizeTo(npoints); vz.SetElements(tree->GetV1());
//
npoints =tree->Draw("dr",cutA+cut1+cut2);
vdr.ResizeTo(npoints); vdr.SetElements(tree->GetV1());
//
npoints =tree->Draw("tl",cutA+cut1+cut2);
vtl.ResizeTo(npoints); vtl.SetElements(tree->GetV1());
//
npoints =tree->Draw("sa",cutA+cut1+cut2);
vsa.ResizeTo(npoints); vsa.SetElements(tree->GetV1());
//
npoints =tree->Draw("ca",cutA+cut1+cut2);
vca.ResizeTo(npoints); vca.SetElements(tree->GetV1());
//
npoints =tree->Draw("dz",cutA+cut1+cut2);
vdz.ResizeTo(npoints); vdz.SetElements(tree->GetV1());
//
npoints =tree->Draw("dtl",cutA+cut1+cut2);
vdtl.ResizeTo(npoints); vdtl.SetElements(tree->GetV1());
//
npoints =tree->Draw("ez",cutA+cut1+cut2);
vez.ResizeTo(npoints); vez.SetElements(tree->GetV1());
//
npoints =tree->Draw("etl*0.5",cutA+cut1+cut2);
vetl.ResizeTo(npoints); vetl.SetElements(tree->GetV1());
//
npoints = tree->Draw("run","run>0");
Int_t *np=new Int_t[npoints]; for (Int_t i=0;i<npoints;i++) np[i]=tree->GetV1()[i];
Int_t *nsort=new Int_t[npoints];
Int_t nruns = toolkit.Freq(npoints,np,nsort,kTRUE);
}