fSurveyZ0[j][k][l] = z[k];
}
+ for (int i=0; i<1000; i++) {
+ fIbuffer[i] = 0;
+ fDbuffer[i] = 0.0;
+ }
+
}
//_____________________________________________________________________________
fSurveyY0[j][k][l] = source.fSurveyY0[j][k][l];
fSurveyZ0[j][k][l] = source.fSurveyZ0[j][k][l];
}
+ for (int i=0; i<1000; i++) {
+ fIbuffer[i] = 0;
+ fDbuffer[i] = 0.0;
+ }
}
if (!IsGeoLoaded()) return 0;
printf("Survey of supermodule %d\n",i);
AliAlignObjParams al(GetSmName(i),0,a[0],a[1],a[2],a[3],a[4],a[5],0);
+
TGeoPNEntry *pne = gGeoManager->GetAlignableEntry(GetSmName(i));
if (!pne) AliError(Form("no such physical node entry: %s",GetSmName(i)));
TGeoPhysicalNode *node = pne->GetPhysicalNode();
- if (!node) AliError(Form("physical node entry %s has no physical node",GetSmName(i)));
+ if (!node) {
+ AliWarning(Form("physical node entry %s has no physical node; making a new one",GetSmName(i)));
+ node = gGeoManager->MakeAlignablePN(pne);
+ }
// al.ApplyToGeometry();
// node = pne->GetPhysicalNode(); // changed in the meantime
}
//_____________________________________________________________________________
-void AliTRDalignment::WriteDB(const char * const filename, int run0, int run1)
+void AliTRDalignment::WriteDB(const char * const filename, int run0, int run1, int ver, int subver)
{
//
// dumping on a DB-like file
AliCDBMetaData *md = new AliCDBMetaData();
md->SetResponsible("Dariusz Miskowiec");
md->SetComment(fComment.GetString().Data());
- AliCDBEntry *e = new AliCDBEntry(ar, id, md);
+ AliCDBEntry *e = new AliCDBEntry(ar, id, md);
+ e->SetVersion(ver);
+ e->SetSubVersion(subver);
TFile fi(filename,"RECREATE");
if (fi.IsOpen()) {
e->Write();