//
// default constructor
fSurveyObj = new AliSurveyObj();
+ fAlignObjArray = new TClonesArray("AliAlignObjParams",10);
}
//_________________________________________________________________________
}
//_________________________________________________________________________
-void AliSurveyToAlignObjs::StoreAlignObjToFile(const char* filename, const char* det){
+Bool_t AliSurveyToAlignObjs::StoreAlignObjToFile(const char* filename, const char* det){
// Stores the TClonesArray of alignment objects into the
// file specified as argument
//
TFile *f = TFile::Open(filename,"RECREATE");
if(!f){
AliError(Form("cannot open file %s\n",filename));
- return;
+ return kFALSE;
}
AliInfo(Form("Saving alignment objects into the file %s",filename));
TString arrayname(det);
f->cd();
f->WriteObject(fAlignObjArray,arrayname,"kSingleKey");
f->Close();
+
+ return kTRUE;
}
//_________________________________________________________________________
-void AliSurveyToAlignObjs::StoreAlignObjToCDB(const char* cdbFolder, const char* det){
+Bool_t AliSurveyToAlignObjs::StoreAlignObjToCDB(const char* cdbFolder, const char* det){
// Stores the TClonesArray of alignment objects into a
// CDB entry in the CDB folder specified by the argument
//
AliCDBId id(path.Data(),0,AliCDBRunRange::Infinity());
cdb->Put(fAlignObjArray,id,md);
+ return kTRUE;
}
Bool_t LoadSurveyFromLocalFile(const char* filename);
Bool_t LoadSurveyFromAlienFile(const char* det, Int_t repNum, Int_t repVersion);
- virtual void CreateAlignObjs() = 0;
+ virtual Bool_t CreateAlignObjs() = 0;
virtual void Run() = 0;
- void StoreAlignObjToFile(const char* filename, const char* det);
- void StoreAlignObjToCDB(const char* cdbFolder, const char* det);
+ Bool_t StoreAlignObjToFile(const char* filename, const char* det);
+ Bool_t StoreAlignObjToCDB(const char* cdbFolder, const char* det);
virtual ~AliSurveyToAlignObjs();
//
protected: