-// @(#) $Id$
+// @(#)alimdc:$Name: $:$Id$
// Author: Fons Rademakers 26/11/99
// Updated: Dario Favretto 15/04/2003
// Optional 'guidFileFolder' specifies the folder in which *.guid files
// will be stored. In case this option is not given, the *.guid files
// will be written to the same folder as the raw-data files.
+
+ // Set the maximum tree size to 19GB
+ // in order to allow big raw data files
+ TTree::SetMaxTreeSize(20000000000LL);
// This line is needed in case of a stand-alone application w/o
// $ROOTSYS/etc/system.rootrc file
// or, if isIovecArray is kTRUE, a pointer to an array of iovecs with one
// iovec per subevent (used by the event builder).
// The return value is the number of written bytes or an error code
- const UInt_t kFileSizeErrorLevel = 1900000000;
+ const Long64_t kFileSizeErrorLevel = 19000000000LL;
- UInt_t currentFileSize = GetTotalSize();
+ Long64_t currentFileSize = GetTotalSize();
if(currentFileSize > kFileSizeErrorLevel) {
- Error("ProcessEvent", "file size (%u) exceeds the limit "
+ Error("ProcessEvent", "file size (%lu) exceeds the limit "
, currentFileSize);
return kErrFileSize;
}
}
//______________________________________________________________________________
-Int_t AliMDC::GetTotalSize()
+Long64_t AliMDC::GetTotalSize()
{
// return the total current raw DB file size
#ifndef ALIMDC_H
#define ALIMDC_H
-// @(#) $Id$
+// @(#)alimdc:$Name: $:$Id$
// Author: Fons Rademakers 26/11/99
/* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
Double_t maxFileSize = 0,
const char* fs1 = NULL, const char* fs2 = NULL);
Int_t ProcessEvent(void* event, Bool_t isIovecArray = kFALSE);
- Int_t GetTotalSize();
+ Long64_t GetTotalSize();
Int_t Close();
Int_t Run(const char* inputFile, Bool_t loop,
-// @(#) $Id$
+// @(#)alimdc:$Name: $:$Id$
// Author: Fons Rademakers 26/11/99
/**************************************************************************
ClassImp(AliRawDB)
-const char *AliRawDB::fgkAliRootTag = "$Name$";
+const char *AliRawDB::fgkAliRootTag = "$Rev$";
// Split TPC into 9 branches in order to avoid problems with big memory
// consumption in case of TPC events w/o zero-suppression
// Create ROOT Tree object container.
fTree = new TTree("RAW", Form("ALICE raw-data tree (%s)", GetAliRootTag()));
- fTree->SetAutoSave(2000000000); // autosave when 2 Gbyte written
+ fTree->SetAutoSave(21000000000LL); // autosave when 21 Gbyte written
fTree->BranchRef();
if (fESD) {
fESDTree = new TTree("esdTree", Form("ALICE HLT ESD tree (%s)", GetAliRootTag()));
- fESDTree->SetAutoSave(2000000000); // autosave when 2 Gbyte written
+ fESDTree->SetAutoSave(21000000000LL); // autosave when 21 Gbyte written
split = 0;
fESDTree->Branch("ESD", "AliESDEvent", &fESD, bufsize, split);
}
}
//______________________________________________________________________________
-Int_t AliRawDB::GetTotalSize()
+Long64_t AliRawDB::GetTotalSize()
{
// Return the total size of the trees
- Int_t total = 0;
+ Long64_t total = 0;
{
Int_t skey = 0;
TKey *key = dir->GetKey(fTree->GetName());
if (key) skey = key->GetKeylen();
}
- total += skey + fTree->GetZipBytes();
+ total += (Long64_t)skey + fTree->GetZipBytes();
}
if(fESDTree)
TKey *key = dir->GetKey(fESDTree->GetName());
if (key) skey = key->GetKeylen();
}
- total += skey + fESDTree->GetZipBytes();
+ total += (Long64_t)skey + fESDTree->GetZipBytes();
}
return total;
TString version = fgkAliRootTag;
version.Remove(TString::kBoth,'$');
- version.ReplaceAll("Name","AliRoot version");
+ version.ReplaceAll("LastChangedRevision","AliRoot version");
return version.Data();
}
#ifndef ALIRAWDB_H
#define ALIRAWDB_H
-// @(#) $Id$
+// @(#)alimdc:$Name: $:$Id$
// Author: Fons Rademakers 26/11/99
/* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
virtual Bool_t Create(const char* fileName = NULL);
virtual Int_t Close();
Int_t Fill();
- Int_t GetTotalSize();
+ Long64_t GetTotalSize();
void WriteStats(AliStats* stats);
-// @(#) $Id$
+// @(#)alimdc:$Name: $:$Id$
// Author: Fons Rademakers 26/11/99
//////////////////////////////////////////////////////////////////////////
// no special arg checking so don't make errors
if (argv[iarg][0] == '-') {
delFiles = kTRUE;
- maxFileSize = atoi(argv[iarg]+1);
+ maxFileSize = atoll(argv[iarg]+1);
} else
- maxFileSize = atoi(argv[iarg]);
- if (maxFileSize < 1000 || maxFileSize > 2.e9) {
+ maxFileSize = atoll(argv[iarg]);
+ if (maxFileSize < 1000 || maxFileSize > 20.e9) {
Error(argv[0], "unreasonable file size %f\n", maxFileSize);
return 1;
}
iarg++;
maxTagSize = atoi(argv[iarg]);
- if (maxTagSize > 0 && (maxTagSize < 1000 || maxTagSize > 2.e9)) {
+ if (maxTagSize > 0 && (maxTagSize < 1000 || maxTagSize > 20.e9)) {
Error(argv[0], "unreasonable tag file size %f\n", maxTagSize);
return 1;
}
return ((AliMDC*)alimdc)->ProcessEvent(event, isIovecArray);
}
-int alimdcGetTotalFileSize(void* alimdc)
+long long alimdcGetTotalFileSize(void* alimdc)
{
// return the total current file size
const char* guidFileFolder);
int alimdcOpen(void* alimdc, int mode, const char* fileName);
int alimdcProcessEvent(void* alimdc, void* event, int isIovecArray);
-int alimdcGetTotalFileSize(void* alimdc);
+long long alimdcGetTotalFileSize(void* alimdc);
int alimdcClose(void* alimdc);
void alimdcDelete(void* alimdc);
void alimdcEnableDebug();