AliTOF * tof = (AliTOF *) gAlice->GetDetector("TOF") ;
//Make branches
- char branchname[20];
- sprintf (branchname, "%s", tof->GetName ());
+
+ const Int_t kSize = 20;
+ char branchname[kSize];
+ snprintf(branchname,kSize,"%s", tof->GetName ());
AliRunLoader* outrl = AliRunLoader::GetRunLoader(fManager->GetOutputFolderName());
if (outrl == 0x0)
if(!tofBranch){
AliFatal(Form("TOF branch not found for input %d",inputFile));
+ return;
}
tofBranch->SetAddress(&sdigitsDummyContainer);