/*
$Log$
+Revision 1.11 2006/09/19 14:31:26 cvetan
+Bugfixes and clean-up of alignment object classes. Introduction of so called symbolic names used to identify the alignable volumes (Raffaele and Cvetan)
+
Revision 1.10 2006/08/22 13:26:05 arcelli
removal of effective c++ warnings (C.Zampolli)
Char_t out[100];
sprintf(out,"%s/%s",sel,sel1);
AliCDBEntry *entry = man->Get(out,nrun);
+ if (!entry) {
+ AliError(Form("Failed to get entry: %s",out));
+ return;
+ }
fTOFAlignObjArray=(TObjArray*)entry->GetObject();
fNTOFAlignObj=fTOFAlignObjArray->GetEntries();
AliInfo(Form("Number of Alignable Volumes from CDB: %d",fNTOFAlignObj));
/*
$Log$
+Revision 1.10 2006/08/22 13:30:49 arcelli
+removal of effective c++ warnings (C.Zampolli)
+
Revision 1.9 2006/04/20 22:30:50 hristov
Coding conventions (Annalisa)
}
//_____________________________________________________________________________
-void AliTOFcalib::ReadParFromCDB(Char_t *sel, Int_t nrun)
+Bool_t AliTOFcalib::ReadParFromCDB(Char_t *sel, Int_t nrun)
{
//Read calibration parameters from the CDB
AliCDBManager *man = AliCDBManager::Instance();
Char_t out[100];
sprintf(out,"%s/%s",sel,sel1);
AliCDBEntry *entry = man->Get(out,nrun);
+ if (!entry) {
+ AliError(Form("Failed to get entry: %s",out));
+ return kFALSE;
+ }
AliTOFCal *cal =(AliTOFCal*)entry->GetObject();
fTOFCal = cal;
+ return kTRUE;
+
}
//_____________________________________________________________________________
void AliTOFcalib::WriteSimParOnCDB(Char_t *sel, Int_t minrun, Int_t maxrun)
void ReadSimParFromCDB(Char_t *sel, Int_t nrun);
void WriteParOnCDB(Char_t *sel, Int_t minrun, Int_t maxrun, AliTOFCal *cal);
void WriteParOnCDB(Char_t *sel, Int_t minrun, Int_t maxrun);
- void ReadParFromCDB(Char_t *sel, Int_t nrun);
+ Bool_t ReadParFromCDB(Char_t *sel, Int_t nrun);
Int_t GetIndex(Int_t *detId); // Get channel index for Calibration
public: