esd = NULL; hltesd = NULL;
*/
// create the branch with ESD additions
+
+
+
AliESDfriend *esdf = 0;
if (fWriteESDfriend) {
esdf = new AliESDfriend();
br->SetFile("AliESDfriends.root");
esd->AddObject(esdf);
}
+
// Get the diamond profile from OCDB
AliCDBEntry* entry = AliCDBManager::Instance()
if (fCheckPointLevel > 0) WriteESD(esd, "final");
esd->Reset();
hltesd->Reset();
+ if (fWriteESDfriend) {
+ new (esdf) AliESDfriend(); // Reset...
+ }
// esdf->Reset();
// delete esdf; esdf = 0;
}
+
+
tree->GetUserInfo()->Add(esd);
hlttree->GetUserInfo()->Add(hltesd);
}
gROOT->cd();
+ CleanUp(file, fileOld);
+
// Create tags for the events in the ESD tree (the ESD tree is always present)
// In case of empty events the tags will contain dummy values
- CreateTag(file);
+ CreateTag("AliESDs.root");
- CleanUp(file, fileOld);
return kTRUE;
}
//_____________________________________________________________________________
-void AliReconstruction::CreateTag(TFile* file)
+void AliReconstruction::CreateTag(const char* fESDfilename)
{
//GRP
Float_t lhcLuminosity = 0.0;
btag->SetCompressionLevel(9);
AliInfo(Form("Creating the tags......."));
-
+
+ TFile *file = TFile::Open(fESDfilename);
if (!file || !file->IsOpen()) {
AliError(Form("opening failed"));
delete file;