Int_t *nhit = new Int_t[kNdet];
AliTRDarraySignal *signals = 0x0;
+
+ //
+ if (calibration->GetNumberOfTimeBinsDCS() != AliTRDSimParam::Instance()->GetNTimeBins()) {
+ AliWarning(Form("Number of time bins is different to OCDB value [SIM=%d, OCDB=%d]"
+ ,AliTRDSimParam::Instance()->GetNTimeBins()
+ ,calibration->GetNumberOfTimeBinsDCS()));
+ }
// Sort all hits according to detector number
if (!SortHits(hits,nhit)) {
delete [] hits;
delete [] nhit;
+ // Save the values for the raw data headers
+ fDigitsManager->GetDigitsParam()->SetNTimeBins(AliTRDSimParam::Instance()->GetNTimeBins());
+ fDigitsManager->GetDigitsParam()->SetADCbaseline(AliTRDSimParam::Instance()->GetADCbaseline());
+
return kTRUE;
}
* commonParam->GetSamplingFrequency())) - 1;
}
- Int_t nTimeTotal = fDigitsManager->GetDigitsParam()->GetNTimeBins();
+ Int_t nTimeTotal = simParam->GetNTimeBins();
Float_t samplingRate = commonParam->GetSamplingFrequency();
Float_t elAttachProp = simParam->GetElAttachProp() / 100.0;
Int_t nRowMax = fGeo->GetPadPlane(det)->GetNrows();
Int_t nColMax = fGeo->GetPadPlane(det)->GetNcols();
- Int_t nTimeTotal = fDigitsManager->GetDigitsParam()->GetNTimeBins();
+ Int_t nTimeTotal = simParam->GetNTimeBins();
// The gainfactor calibration objects
const AliTRDCalDet *calGainFactorDet = calibration->GetGainFactorDet();
Int_t nRowMax = fGeo->GetPadPlane(det)->GetNrows();
Int_t nColMax = fGeo->GetPadPlane(det)->GetNcols();
- Int_t nTimeTotal = fDigitsManager->GetDigitsParam()->GetNTimeBins();
+ Int_t nTimeTotal = AliTRDSimParam::Instance()->GetNTimeBins();
// Get the container for the digits of this detector
Int_t nRowMax = fGeo->GetPadPlane(det)->GetNrows();
Int_t nColMax = fGeo->GetPadPlane(det)->GetNcols();
- Int_t nTimeTotal = calibration->GetNumberOfTimeBins();
+ Int_t nTimeTotal = manDig->GetDigitsParam()->GetNTimeBins();
// Get the calibration objects
//calGainFactorROC = calibration->GetGainFactorROC(det);
tracks1->Allocate(nRowMax,nColMax,nTimeTotal);
tracks2->Allocate(nRowMax,nColMax,nTimeTotal);
+ // Keep the digits param
+ manSDig->GetDigitsParam()->SetNTimeBins(manDig->GetDigitsParam()->GetNTimeBins());
+ manSDig->GetDigitsParam()->SetADCbaseline(manDig->GetDigitsParam()->GetADCbaseline());
+
if (digits->HasData()) {
digits->Expand();
AliDebug(1,"Only one input file.");
}
- Int_t nTimeTotal = calibration->GetNumberOfTimeBins();
+ Int_t nTimeTotal = fSDigitsManager->GetDigitsParam()->GetNTimeBins();
Int_t iMerge = 0;
while (mergeSDigitsManager) {
+ if (mergeSDigitsManager->GetDigitsParam()->GetNTimeBins() != nTimeTotal) {
+ AliError(Form("Mismatch in the number of time bins [%d,%d]"
+ ,nTimeTotal
+ ,mergeSDigitsManager->GetDigitsParam()->GetNTimeBins()));
+ return kFALSE;
+ }
+
iMerge++;
-
+
// Loop through the detectors
for (Int_t iDet = 0; iDet < AliTRDgeometry::Ndet(); iDet++) {
} // for: detector numbers
+ // Save the values for the raw data headers
+ fDigitsManager->GetDigitsParam()->SetNTimeBins(AliTRDSimParam::Instance()->GetNTimeBins());
+ fDigitsManager->GetDigitsParam()->SetADCbaseline(AliTRDSimParam::Instance()->GetADCbaseline());
return kTRUE;
Int_t nRowMax = fGeo->GetPadPlane(det)->GetNrows();
Int_t nColMax = fGeo->GetPadPlane(det)->GetNcols();
- Int_t nTimeTotal = calibration->GetNumberOfTimeBins();
+ Int_t nTimeTotal = AliTRDSimParam::Instance()->GetNTimeBins();
Int_t row = 0;
Int_t col = 0;