- }
-
-}
-
-//_____________________________________________________________________________
-Bool_t AliTRDdigitsParam::SetNTimeBins(Int_t ntb)
-{
- //
- // Sets the number of time bins
- // Per default an automatic consistency check with the corresponding
- // OCDB entry is performed. This check can be disabled by setting
- // SetCheckOCDB(kFALSE)
- //
-
- fNTimeBins = ntb;
-
- if (fCheckOCDB) {
- Int_t nTimeBinsOCDB = AliTRDcalibDB::Instance()->GetNumberOfTimeBinsDCS();
- if (fNTimeBins == nTimeBinsOCDB) {
- return kTRUE;
- }
- else {
- AliError(Form("Number of timebins does not match OCDB value (raw:%d, OCDB:%d)"
- ,fNTimeBins,nTimeBinsOCDB));
- return kFALSE;
- }
- }
- else {
- return kTRUE;