UInt_t eventSize = 10000000; // 10MB by default
unsigned char *dateEvent = new unsigned char[eventSize];
- for(size_t gdcCounter=0; gdcCounter<t->GetEntries(); gdcCounter++) {
+ for(Long_t gdcCounter=0; gdcCounter<t->GetEntries(); gdcCounter++) {
rootEvent=new AliRawEvent;
t->GetEntry(gdcCounter);
if (rootEvent->GetHeader()->GetEventSize() > eventSize) {
size_t gdcSize;
if (ddlFilesFolder) {
char command[256];
- sprintf(command, "rm -r %s/raw%d", ddlFilesFolder, gdcCounter);
+ sprintf(command, "rm -rf %s/raw%ld", ddlFilesFolder, gdcCounter);
gSystem->Exec(command);
- sprintf(command, "%s/raw%d", ddlFilesFolder, gdcCounter);
+ sprintf(command, "%s/raw%ld", ddlFilesFolder, gdcCounter);
if (gSystem->MakeDirectory(command) < 0) {
cerr << "Can not create directory " << command << endl;
return(1);