}
// Create the guid files folder if it does not exist
- if (fGuidFileFolder) {
+ if (!fGuidFileFolder.IsNull()) {
gSystem->ResetErrno();
- gSystem->MakeDirectory(fGuidFileFolder);
+ gSystem->MakeDirectory(fGuidFileFolder.Data());
if (gSystem->GetErrno() && gSystem->GetErrno() != EEXIST) {
- SysError("AliMDC", "mkdir %s", fGuidFileFolder);
+ SysError("AliMDC", "mkdir %s", fGuidFileFolder.Data());
}
}
// Create Tag DB here only after the raw data header
// version was already identified
if (!fIsTagDBCreated) {
- if (fFileNameTagDB) {
+ if (!fFileNameTagDB.IsNull()) {
if (fMaxSizeTagDB > 0) {
fTagDB = new AliTagDB(fEventTag, NULL);
fTagDB->SetMaxSize(fMaxSizeTagDB);
- fTagDB->SetFS(fFileNameTagDB);
+ fTagDB->SetFS(fFileNameTagDB.Data());
if (!fTagDB->Create()) return kErrTagFile;
} else {
- fTagDB = new AliTagDB(fEventTag, fFileNameTagDB);
+ fTagDB = new AliTagDB(fEventTag, fFileNameTagDB.Data());
if (fTagDB->IsZombie()) return kErrTagFile;
}
}
Bool_t fStop; // stop execution (triggered by SIGUSR1)
Bool_t fIsTagDBCreated; // is tag db already created
Double_t fMaxSizeTagDB;// max size of the tag DB
- const char* fFileNameTagDB;// tag DB file name
- const char* fGuidFileFolder; // guid files folder
+ TString fFileNameTagDB;// tag DB file name
+ TString fGuidFileFolder; // guid files folder
// Filter names
enum {kNFilters = 1};
Bool_t isSwapped, char*& data);
Int_t ReadRawData(AliRawData &raw, Int_t size, char*& data);
- ClassDef(AliMDC,1) // MDC processor
+ ClassDef(AliMDC,2) // MDC processor
};
#endif
}
//______________________________________________________________________________
-Bool_t AliRawDB::WriteGuidFile(const char *guidFileFolder)
+Bool_t AliRawDB::WriteGuidFile(TString &guidFileFolder)
{
// Write the guid file
// in the specified folder or
// file is.
TString guidFileName;
- if (guidFileFolder) {
+ if (!guidFileFolder.IsNull()) {
guidFileName = guidFileFolder;
TString pathStr = fRawDB->GetName();
Int_t GetCompressionMode() const { return fRawDB->GetCompressionLevel(); }
void Stop() { fStop = kTRUE; }
static const char *GetAliRootTag();
- Bool_t WriteGuidFile(const char *guidFileFolder);
+ Bool_t WriteGuidFile(TString &guidFileFolder);
protected:
TFile *fRawDB; // DB to store raw data
AliRawDB(const AliRawDB& rawDB);
AliRawDB& operator = (const AliRawDB& rawDB);
- ClassDef(AliRawDB,1) // Raw DB
+ ClassDef(AliRawDB,2) // Raw DB
};
#endif