]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG1/TRD/AliTRDpidRefMakerLQ.cxx
remove temporary data structure for PID exchange container
[u/mrichter/AliRoot.git] / PWG1 / TRD / AliTRDpidRefMakerLQ.cxx
CommitLineData
1ee39b3a 1/**************************************************************************
2* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3* *
4* Author: The ALICE Off-line Project. *
5* Contributors are mentioned in the code where appropriate. *
6* *
7* Permission to use, copy, modify and distribute this software and its *
8* documentation strictly for non-commercial purposes is hereby granted *
9* without fee, provided that the above copyright notice appears in all *
10* copies and that both the copyright notice and this permission notice *
11* appear in the supporting documentation. The authors make no claims *
12* about the suitability of this software for any purpose. It is *
13* provided "as is" without express or implied warranty. *
14**************************************************************************/
15
16/* $Id: AliTRDpidRefMakerLQ.cxx 34163 2009-08-07 11:28:51Z cblume $ */
17
18///////////////////////////////////////////////////////////////////////////////
19//
20//
21// TRD calibration class for building reference data for PID
22// - 2D reference histograms (responsible A.Bercuci)
23// - 3D reference histograms (not yet implemented) (responsible A.Bercuci)
1ee39b3a 24//
25// Origin
26// Alex Bercuci (A.Bercuci@gsi.de)
27//
28///////////////////////////////////////////////////////////////////////////////
29
b91fdd71 30#include <TSystem.h>
1ee39b3a 31#include <TROOT.h>
b91fdd71 32#include <TFile.h>
1ee39b3a 33#include <TTree.h>
34#include <TMath.h>
35#include <TEventList.h>
36#include <TH2D.h>
37#include <TH2I.h>
1ee39b3a 38#include <TCanvas.h>
1ee39b3a 39
40#include "AliLog.h"
da27d983 41#include "../STAT/TKDPDF.h"
4826d5b1 42#include "../STAT/TKDInterpolator.h"
1ee39b3a 43#include "AliTRDpidRefMakerLQ.h"
da27d983 44#include "Cal/AliTRDCalPID.h"
45#include "Cal/AliTRDCalPIDLQ.h"
1ee39b3a 46#include "AliTRDseedV1.h"
47#include "AliTRDcalibDB.h"
48#include "AliTRDgeometry.h"
4826d5b1 49#include "info/AliTRDpidInfo.h"
1ee39b3a 50
51ClassImp(AliTRDpidRefMakerLQ)
52
53//__________________________________________________________________
4826d5b1 54AliTRDpidRefMakerLQ::AliTRDpidRefMakerLQ()
705f8b0a 55 : AliTRDpidRefMaker()
a5a3321d 56 ,fPDF(NULL)
1ee39b3a 57{
58 //
59 // AliTRDpidRefMakerLQ default constructor
60 //
705f8b0a 61 SetNameTitle("refMakerLQ", "PID(LQ) Reference Maker");
62}
63
64//__________________________________________________________________
65AliTRDpidRefMakerLQ::AliTRDpidRefMakerLQ(const char *name)
66 : AliTRDpidRefMaker(name, "PID(LQ) Reference Maker")
a5a3321d 67 ,fPDF(NULL)
705f8b0a 68{
69 //
70 // AliTRDpidRefMakerLQ default constructor
71 //
72 DefineOutput(3, TObjArray::Class());
1ee39b3a 73}
74
75//__________________________________________________________________
76AliTRDpidRefMakerLQ::~AliTRDpidRefMakerLQ()
77{
78 //
79 // AliTRDCalPIDQRef destructor
80 //
4826d5b1 81 if(fPDF){
705f8b0a 82 //fPDF->Write("PDF_LQ", TObject::kSingleKey);
4826d5b1 83 fPDF->Delete();
84 delete fPDF;
85 }
1ee39b3a 86}
87
b91fdd71 88// //________________________________________________________________________
f8f46e4d 89void AliTRDpidRefMakerLQ::UserCreateOutputObjects()
1ee39b3a 90{
91 // Create histograms
92 // Called once
93
b91fdd71 94 fContainer = Histos();
4826d5b1 95
a5a3321d 96 //OpenFile(2, "RECREATE");
092fbd8a 97 fPDF = new TObjArray(AliTRDCalPIDLQ::GetNrefs());
98 fPDF->SetOwner();fPDF->SetName("PDF_LQ");
b91fdd71 99}
100
101
102//__________________________________________________________________
103TObjArray* AliTRDpidRefMakerLQ::Histos()
104{
105 // Create histograms
106
a5a3321d 107 if(fContainer) return fContainer;
108 fContainer = new TObjArray(AliTRDCalPID::kNMom);
1ee39b3a 109
110 // save dE/dx references
092fbd8a 111 TH1 *h(NULL);
1ee39b3a 112 for(Int_t ip=AliTRDCalPID::kNMom; ip--;){
092fbd8a 113 TObjArray *arr = new TObjArray(2*AliPID::kSPECIES);
b91fdd71 114 arr->SetName(Form("Pbin%02d", ip)); arr->SetOwner();
1ee39b3a 115 for(Int_t is=AliPID::kSPECIES; is--;) {
092fbd8a 116 h = new TH1D(Form("h1%s%d", AliPID::ParticleShortName(is), ip), Form("1D %s @ Pbin[%d]", AliPID::ParticleName(is), ip), 50, 7., 12.);
117 h->GetXaxis()->SetTitle("log(dE/dx) [au]");
118 h->GetYaxis()->SetTitle("#");
119 h->SetLineColor(AliTRDCalPIDLQ::GetPartColor(is));
120 arr->AddAt(h, is);
121 }
122 for(Int_t is=AliPID::kSPECIES; is--;) {
123 h = new TH2D(Form("h2%s%d", AliPID::ParticleShortName(is), ip), Form("2D %s @ Pbin[%d]", AliPID::ParticleName(is), ip), 50, 7., 12., 50, 6.5, 11.);
124 h->GetXaxis()->SetTitle("log(dE/dx_{am}) [au]");
125 h->GetYaxis()->SetTitle("log(dE/dx_{dr}) [au]");
126 h->GetZaxis()->SetTitle("#");
127 arr->AddAt(h, AliPID::kSPECIES+is);
1ee39b3a 128 }
a5a3321d 129 fContainer->AddAt(arr, ip);
1ee39b3a 130 }
a5a3321d 131 fNRefFigures=AliTRDCalPID::kNMom;
b91fdd71 132 return fContainer;
1ee39b3a 133}
134
1ee39b3a 135
136//__________________________________________________________________
4826d5b1 137TObject* AliTRDpidRefMakerLQ::GetOCDBEntry(Option_t */*opt*/)
1ee39b3a 138{
139// Steer loading of OCDB LQ PID
140
4826d5b1 141 if(gSystem->AccessPathName(Form("TRD.Calib%s.root", GetName()), kReadPermission)){
142 AliError(Form("File TRD.Calib%s.root not readable", GetName()));
143 return NULL;
144 }
1ee39b3a 145 AliTRDCalPIDLQ *cal = new AliTRDCalPIDLQ("pidLQ", "LQ TRD PID object");
4826d5b1 146 cal->LoadReferences(Form("TRD.Calib%s.root", GetName()));
1ee39b3a 147 return cal;
148}
149
150//__________________________________________________________________
151Bool_t AliTRDpidRefMakerLQ::GetRefFigure(Int_t ifig)
152{
153// Steering reference picture
154
b91fdd71 155 if(ifig<0 || ifig>=fNRefFigures){
1ee39b3a 156 AliError("Ref fig requested outside definition.");
157 return kFALSE;
158 }
159 if(!gPad){
160 AliWarning("Please provide a canvas to draw results.");
161 return kFALSE;
162 }
163
092fbd8a 164 TObjArray *arr(NULL);TList *l(NULL);TH1 *h(NULL);
165 if(!(arr = (TObjArray*)fContainer->At(ifig))){
166 AliError(Form("PDF container @ pBin[%d] missing.", ifig));
167 return kFALSE;
168 }
169 gPad->Divide(5, 2, 1.e-5, 1.e-5);l=gPad->GetListOfPrimitives();
170 for(Int_t is=0; is<AliPID::kSPECIES; is++){
171 ((TVirtualPad*)l->At(is))->cd();
172 if(!(h=(TH1*)arr->At(is))){
173 AliError(Form("1D for %s @ pBin[%d] missing.", AliPID::ParticleShortName(is), ifig));
b91fdd71 174 return kFALSE;
175 }
092fbd8a 176 h->GetYaxis()->SetRangeUser(0., 1.2);
177 h->Draw("l");
178
179 ((TVirtualPad*)l->At(AliPID::kSPECIES+is))->cd();
180 if(!(h=(TH1*)arr->At(AliPID::kSPECIES+is))){
181 AliError(Form("2D for %s @ pBin[%d] missing.", AliPID::ParticleShortName(is), ifig));
b91fdd71 182 return kFALSE;
183 }
092fbd8a 184 h->Draw("cont4z");
b91fdd71 185 }
092fbd8a 186
b91fdd71 187 return kTRUE;
188}
189
190
191//________________________________________________________________________
fe1d1beb 192Bool_t AliTRDpidRefMakerLQ::Load(const Char_t *file, const Char_t *dir)
b91fdd71 193{
fe1d1beb 194 if(gSystem->AccessPathName(file, kReadPermission)){
195 AliError(Form("File %s not readable", file));
b91fdd71 196 return kFALSE;
197 }
fe1d1beb 198 if(!TFile::Open(file)) {
199 AliError(Form("File %s corrupted", file));
b91fdd71 200 return kFALSE;
201 }
fe1d1beb 202 if(!gFile->cd(dir)){
203 AliWarning(Form("Couldn't cd to %s in %s.", dir, file));
204 return kFALSE;
205 }
206 if (!(fData = dynamic_cast<TTree*>(gDirectory->Get("PIDrefMaker")))) {
207 AliError("PIDref Tree not available");
b91fdd71 208 return kFALSE;
1ee39b3a 209 }
b91fdd71 210 LinkPIDdata();
1ee39b3a 211
b91fdd71 212 TObjArray *o(NULL);
092fbd8a 213/* if(!(o = (TObjArray*)gFile->Get(Form("Moni%s", GetName())))){
b91fdd71 214 AliWarning(Form("Monitor container Moni%s not available.", name));
215 return kFALSE;
216 }
217 fContainer = (TObjArray*)o->Clone("monitor");
4826d5b1 218 fNRefFigures=AliTRDCalPID::kNMom;
092fbd8a 219*/
220 // temporary until new calibration data are being produced
221 Histos();
4826d5b1 222
223
224 if(!TFile::Open(Form("TRD.Calib%s.root", GetName()), "UPDATE")){
225 AliError(Form("File TRD.Calib%s.root corrupted", GetName()));
226 return kFALSE;
227 }
092fbd8a 228 if(!(o = (TObjArray*)gFile->Get(Form("PDF_LQ")))) {
229 AliInfo("PDF container not available. Create.");
230 fPDF = new TObjArray(AliTRDCalPIDLQ::GetNrefs());
231 fPDF->SetOwner();fPDF->SetName("PDF_LQ");
232 } else fPDF = (TObjArray*)o->Clone("PDF_LQ");
4826d5b1 233
1ee39b3a 234 return kTRUE;
235}
236
4826d5b1 237
b91fdd71 238//________________________________________________________________________
f8f46e4d 239void AliTRDpidRefMakerLQ::UserExec(Option_t */*opt*/)
b91fdd71 240{
4826d5b1 241// Load PID data into local data storage
242
a5a3321d 243/* if(!(fTracks = dynamic_cast<TObjArray*>(GetInputData(1)))) return;
244 if(!(fV0s = dynamic_cast<TObjArray*>(GetInputData(2)))) return;*/
87c9fc00 245 if(!(fInfo = dynamic_cast<TObjArray*>(GetInputData(3)))) return;
246
a5a3321d 247 AliDebug(2, Form("ENTRIES pid[%d]\n", fInfo->GetEntriesFast()));
4826d5b1 248 AliTRDpidInfo *pid(NULL);
249 const AliTRDpidInfo::AliTRDpidData *data(NULL);
250 Char_t s(-1);
251 for(Int_t itrk=fInfo->GetEntriesFast(); itrk--;){
252 if(!(pid=(AliTRDpidInfo*)fInfo->At(itrk))) continue;
253 if((s=pid->GetPID())<0) continue;
254 for(Int_t itrklt=pid->GetNtracklets();itrklt--;){
255 data=pid->GetData(itrklt);
256 Int_t ip(data->Momentum());
4826d5b1 257
258 Double_t dedx[] = {0., 0.};
259 if(!AliTRDCalPIDLQ::CookdEdx(data->fdEdx, dedx)) continue;
092fbd8a 260 ((TH2*)((TObjArray*)fContainer->At(ip))->At(s+Int_t(AliPID::kSPECIES)))->Fill(dedx[0], dedx[1]);
261 AliTRDCalPIDLQ::CookdEdx(data->fdEdx, dedx, kFALSE);
a5a3321d 262 ((TH1*)((TObjArray*)fContainer->At(ip))->At(s))->Fill(dedx[0]+dedx[1]);
4826d5b1 263 }
264 }
265
705f8b0a 266 PostData(1, fContainer);
267 PostData(3, fPDF);
b91fdd71 268}
269
270
1ee39b3a 271//________________________________________________________________________
272Bool_t AliTRDpidRefMakerLQ::PostProcess()
273{
274// Analyse merged dedx = f(p) distributions.
275// - select momentum - species bins
276// - rotate to principal components
277// - locally interpolate with TKDPDF
278// - save interpolation to monitoring histograms
279// - write pdf to file for loading to OCDB
280//
281
674c7d26 282 TCanvas *fMonitor(NULL);
b91fdd71 283 // allocate working storage
674c7d26 284 const Int_t kWS(AliPID::kSPECIES*AliTRDCalPID::kNMom);
092fbd8a 285 Float_t *data[2*kWS], *data1D[kWS];
286 for(Int_t i(0); i<kWS; i++){
287 data1D[i] = new Float_t[kMaxStat];
288 data[i] = new Float_t[kMaxStat];
289 data[kWS+i] = new Float_t[kMaxStat];
290 }
674c7d26 291 Int_t ndata[kWS]; memset(ndata, 0, kWS*sizeof(Int_t));
292
293 AliDebug(1, Form("Loading data[%d]", fData->GetEntries()));
294 for(Int_t itrk=0; itrk < fData->GetEntries(); itrk++){
295 if(!(fData->GetEntry(itrk))) continue;
a5a3321d 296 Int_t sbin(fPIDdataArray->GetPID());
297 for(Int_t itrklt=fPIDdataArray->GetNtracklets(); itrklt--;){
298 Int_t pbin(fPIDdataArray->GetData(itrklt)->Momentum());
674c7d26 299
092fbd8a 300 Double_t dedx[] = {0., 0.},
301 dedx1D[] = {0., 0.};
a5a3321d 302 if(!AliTRDCalPIDLQ::CookdEdx(fPIDdataArray->GetData(itrklt)->fdEdx, dedx)) continue;
303 AliTRDCalPIDLQ::CookdEdx(fPIDdataArray->GetData(itrklt)->fdEdx, dedx1D, kFALSE);
674c7d26 304 Int_t idx=AliTRDCalPIDLQ::GetModelID(pbin,sbin);
305 if(ndata[idx]==kMaxStat) continue;
306
307 // store data
092fbd8a 308 data1D[idx][ndata[idx]] = dedx1D[0];
309 data[idx][ndata[idx]] = dedx[0];
674c7d26 310 data[idx+kWS][ndata[idx]] = dedx[1];
311 ndata[idx]++;
312 }
313 }
092fbd8a 314
315 TKDPDF *pdf(NULL);
316 Int_t in(0); Float_t par[6], *pp(NULL);
4826d5b1 317 for(Int_t ip=0;ip<AliTRDCalPID::kNMom;ip++){
1ee39b3a 318 for(Int_t is=AliPID::kSPECIES; is--;) {
1ee39b3a 319 // estimate bucket statistics
674c7d26 320 Int_t idx(AliTRDCalPIDLQ::GetModelID(ip,is)),
321 nb(kMinBuckets), // number of buckets
44c98bbd 322 ns((Int_t)(((Float_t)(ndata[idx]))/nb)); //statistics/bucket
1ee39b3a 323
674c7d26 324 AliDebug(2, Form("pBin[%d] sBin[%d] n[%d] ns[%d] nb[%d]", ip, is, ndata[idx], ns, nb));
1ee39b3a 325 if(ns<Int_t(kMinStat)){
674c7d26 326 AliWarning(Form("Not enough entries [%d] for %s[%d].", ndata[idx], AliPID::ParticleShortName(is), ip));
1ee39b3a 327 continue;
328 }
329
092fbd8a 330 // build helper 1D PDF
331 pdf = new TKDPDF(ndata[idx], 1, ns, &data1D[idx]);
332 pdf->SetCOG(kFALSE);
333 pdf->SetWeights();
334 //pdf->SetStore();
335 pdf->SetAlpha(15.);
336 //pdf.GetStatus();
337 fPDF->AddAt(pdf, idx);
338 in=pdf->GetNTNodes(); pp=&par[0];
339 while(in--){
340 const TKDNodeInfo *nn = pdf->GetNodeInfo(in);
341 nn->GetCOG(pp);
342 Double_t p(par[0]),r,e;
343 pdf->Eval(&p,r,e,1);
344 }
345
346 // build helper 2D PDF
674c7d26 347 Float_t *ldata[2]={data[idx], data[kWS+idx]};
092fbd8a 348 pdf = new TKDPDF(ndata[idx], 2, ns, ldata);
4826d5b1 349 pdf->SetCOG(kFALSE);
350 pdf->SetWeights();
674c7d26 351 //pdf->SetStore();
4826d5b1 352 pdf->SetAlpha(5.);
353 //pdf.GetStatus();
092fbd8a 354 fPDF->AddAt(pdf, AliTRDCalPIDLQ::GetModelID(ip,is, 2));
355 in=pdf->GetNTNodes(); pp=&par[0];
4826d5b1 356 while(in--){
357 const TKDNodeInfo *nn = pdf->GetNodeInfo(in);
358 nn->GetCOG(pp);
4826d5b1 359 Double_t p[] = {par[0], par[1]}, r,e;
360 pdf->Eval(p,r,e,1);
1ee39b3a 361 }
4826d5b1 362/*
363 Int_t nnodes = pdf.GetNTNodes(),
364 nside = Int_t(0.05*nnodes),
365 nzeros = 4*(nside+1);
366 printf("nnodes[%d] nside[%d] nzeros[%d]\n", nnodes, nside, nzeros);
367
368
369 // Build interpolator on the pdf skeleton
370 TKDInterpolator interpolator(2, nnodes+nzeros);
371 for(Int_t in=nnodes; in--;)
372 interpolator.SetNode(in, *pdf.GetNodeInfo(in));
373 TKDNodeInfo *nodes = new TKDNodeInfo[nzeros], *node = &nodes[0];
374 Float_t ax0min, ax0max, ax1min, ax1max;
375 pdf.GetRange(0, ax0min, ax0max); Float_t dx = (ax0max-ax0min)/nside;
376 pdf.GetRange(1, ax1min, ax1max); Float_t dy = (ax1max-ax1min)/nside;
377 printf("x=[%f %f] y[%f %f]\n", ax0min, ax0max, ax1min, ax1max);
378
379 Int_t jn = nnodes;
380 SetZeroes(&interpolator, node, nside, jn, ax0min, dx, ax1min, -dy, 'x');
381 SetZeroes(&interpolator, node, nside, jn, ax1min, dy, ax0max, dx, 'y');
382 SetZeroes(&interpolator, node, nside, jn, ax0max,-dx, ax1max, dy, 'x');
383 SetZeroes(&interpolator, node, nside, jn ,ax1max, -dy, ax0min, -dx, 'y');
384 delete [] nodes;
674c7d26 385 Int_t in=nnodes; Float_t par[6], *pp=&par[0];
4826d5b1 386 while(in--){
387 const TKDNodeInfo *nn = interpolator.GetNodeInfo(in);
388 nn->GetCOG(pp);
389 //printf("evaluate for node[%d] @ [%f %f]\n",in, par[0], par[1]);
390 Double_t p[] = {par[0], par[1]}, r,e;
391 interpolator.Eval(p,r,e,1);
392 }
393*/
092fbd8a 394
4826d5b1 395 // visual on-line monitoring
674c7d26 396 if(HasOnlineMonitor()){
397 if(!fMonitor) fMonitor = new TCanvas("cc", "PDF 2D LQ", 500, 500);
398 pdf->DrawProjection();
399 fMonitor->Modified(); fMonitor->Update();
400 fMonitor->SaveAs(Form("pdf_%s%02d.gif", AliPID::ParticleShortName(is), ip));
401 }
1ee39b3a 402
4826d5b1 403 //fContainer->ls();
1ee39b3a 404 // save a discretization of the PDF for result monitoring
4826d5b1 405 Double_t rxy[]={0.,0.};
092fbd8a 406 TH2 *h2s = (TH2D*)((TObjArray*)fContainer->At(ip))->At(AliPID::kSPECIES+is);
1ee39b3a 407 TAxis *ax = h2s->GetXaxis(), *ay = h2s->GetYaxis();
408 h2s->Clear();
409 for(int ix=1; ix<=ax->GetNbins(); ix++){
410 rxy[0] = ax->GetBinCenter(ix);
411 for(int iy=1; iy<=ay->GetNbins(); iy++){
412 rxy[1] = ay->GetBinCenter(iy);
413
414 Double_t rr,ee;
4826d5b1 415 pdf->Eval(rxy, rr, ee, kFALSE);
1ee39b3a 416 if(rr<0. || ee/rr>.15) continue; // 15% relative error
417 //printf("x[%2d] x[%2d] r[%f] e[%f]\n", ix, iy, rr, ee);
418 h2s->SetBinContent(ix, iy, rr);
419 }
420 }
092fbd8a 421
422 pdf=dynamic_cast<TKDPDF*>(fPDF->At(idx));
423 TH1 *h1 = (TH1D*)((TObjArray*)fContainer->At(ip))->At(is);
424 ax = h1->GetXaxis();
425 h1->Clear();
426 for(int ix=1; ix<=ax->GetNbins(); ix++){
427 rxy[0] = ax->GetBinCenter(ix);
428
429 Double_t rr,ee;
430 pdf->Eval(rxy, rr, ee, kFALSE);
431 if(rr<0. || ee/rr>.15) continue; // 15% relative error
432 //printf("x[%2d] x[%2d] r[%f] e[%f]\n", ix, iy, rr, ee);
433 h1->SetBinContent(ix, rr);
434 }
1ee39b3a 435 }
436 }
092fbd8a 437 for(Int_t i(0); i<kWS; i++){
438 delete [] data1D[i];
439 delete [] data[i];
440 delete [] data[i+kWS];
441 }
4826d5b1 442 return kTRUE;
1ee39b3a 443}
444
445
4826d5b1 446//__________________________________________________________________
447void AliTRDpidRefMakerLQ::SetZeroes(TKDInterpolator *interpolator, TKDNodeInfo *node, Int_t n, Int_t& idx, Float_t x, Float_t dx, Float_t y, Float_t dy, const Char_t opt)
448{
449// Set extra nodes to ensure boundary conditions
450
451 printf("SetZeroes(%c)\n", opt);
452 Float_t par[6], val[] = {0., 1.};
453 Int_t a[6];
454 if(opt=='x'){
455 a[0]=0; a[1]=1; a[2]=2; a[3]=3; a[4]=4; a[5]=5;
456 } else if(opt=='y'){
457 a[0]=1; a[1]=0; a[2]=4; a[3]=5; a[4]=2; a[5]=3;
458 } else return;
459 Float_t tmp;
460 par[a[1]] = y;
461 par[a[4]] = y; par[a[5]] = y+dy;
462 if(dy<0.){tmp=par[a[4]]; par[a[4]]=par[a[5]]; par[a[5]]=tmp;}
463 for(Int_t in=n; in--; node++, idx++, x+=dx){
464 par[a[0]] = x+.5*dx;
465 par[a[2]] = x; par[a[3]] = x+dx;
466 if(dx<0.){tmp=par[a[2]]; par[a[2]]=par[a[3]]; par[a[3]]=tmp;}
467 node->SetNode(2, par, val);
468 printf("\n\tnode[%d]\n", idx); node->Print();
469 interpolator->SetNode(idx, *node);
470 }
471 par[a[0]] = x;
472 par[a[2]] = x; par[a[3]] = x+dx;
473 if(dx<0.){tmp=par[a[2]]; par[a[2]]=par[a[3]]; par[a[3]]=tmp;}
474 node->SetNode(2, par, val);
475 printf("\n\tnode[%d]\n", idx); node->Print();
476 interpolator->SetNode(idx, *node);node++;idx++;
477}
478