fADCpedestalEmc[module][column][row] = calibda.fADCpedestalEmc[module][column][row];
fHighLowRatioEmc[module][column][row] = calibda.fHighLowRatioEmc[module][column][row];
fTimeShiftEmc[module][column][row] = calibda.fTimeShiftEmc[module][column][row];
+ fLGTimeShiftEmc[module][column][row] = calibda.fLGTimeShiftEmc[module][column][row];
fAltroOffsets[module][column][row] = calibda.fAltroOffsets[module][column][row];
+ fDecal[module][column][row] = calibda.fDecal[module][column][row];
}
}
}
fADCpedestalEmc[module][column][row] = calibda.fADCpedestalEmc[module][column][row];
fHighLowRatioEmc[module][column][row] = calibda.fHighLowRatioEmc[module][column][row];
fTimeShiftEmc[module][column][row] = calibda.fTimeShiftEmc[module][column][row];
- fAltroOffsets[module][column][row] = calibda.fAltroOffsets[module][column][row];
+ fLGTimeShiftEmc[module][column][row] = calibda.fLGTimeShiftEmc[module][column][row];
+ fAltroOffsets[module][column][row] = calibda.fAltroOffsets[module][column][row];
+ fDecal[module][column][row] = calibda.fDecal[module][column][row];
}
}
}
fADCchannelEmc[module][column][row] = 0.005;
fHighLowRatioEmc[module][column][row] = 16. ;
fTimeShiftEmc[module][column][row] = 0. ;
+ fLGTimeShiftEmc[module][column][row] = 0. ;
fAltroOffsets[module][column][row] = 0 ;
+ fDecal[module][column][row] = 1.;
}
}
}
printf("============== Module %d\n",module+1);
for (Int_t column=0; column<56; column++){
for (Int_t row=0; row<64; row++){
- printf("%6.3e",fTimeShiftEmc[module][column][row]);
+ printf("%6.3e (%6.3e)",fTimeShiftEmc[module][column][row],fLGTimeShiftEmc[module][column][row]);
}
printf("\n");
}
//________________________________________________________________
Float_t AliPHOSEmcCalibData::GetTimeShiftEmc(Int_t module, Int_t column, Int_t row) const
{
- //Return EMC pedestal
+ //Return EMC time offset for high gain channel
//module, column,raw should follow the internal PHOS convention:
//module 1:5, column 1:56, row 1:64
return fTimeShiftEmc[module-1][column-1][row-1];
}
//________________________________________________________________
+Float_t AliPHOSEmcCalibData::GetLGTimeShiftEmc(Int_t module, Int_t column, Int_t row) const
+{
+ //Return EMC time offset for LowGain channel
+ //module, column,raw should follow the internal PHOS convention:
+ //module 1:5, column 1:56, row 1:64
+
+ return fLGTimeShiftEmc[module-1][column-1][row-1];
+}
+//________________________________________________________________
Float_t AliPHOSEmcCalibData::GetSampleTimeStep()const
{
//Returns conversion coefficient from ALTRO smaple time step and secods
//________________________________________________________________
void AliPHOSEmcCalibData::SetTimeShiftEmc(Int_t module, Int_t column, Int_t row, Float_t value)
{
- //Set EMC pedestal
+ //Set EMC time offset for high gain channel
//module, column,raw should follow the internal PHOS convention:
//module 1:5, column 1:56, row 1:64
fTimeShiftEmc[module-1][column-1][row-1] = value;
}
//________________________________________________________________
+void AliPHOSEmcCalibData::SetLGTimeShiftEmc(Int_t module, Int_t column, Int_t row, Float_t value)
+{
+ //Set EMC time offset for low gain channel
+ //module, column,raw should follow the internal PHOS convention:
+ //module 1:5, column 1:56, row 1:64
+ fLGTimeShiftEmc[module-1][column-1][row-1] = value;
+}
+//________________________________________________________________
void AliPHOSEmcCalibData::SetAltroOffsetEmc(Int_t module, Int_t column, Int_t row, Int_t value)
{
//Set EMC pedestal
fSampleTimeStep = step ;
}
+//________________________________________________________________
+Float_t AliPHOSEmcCalibData::GetADCchannelEmcDecalib(Int_t module, Int_t column, Int_t row) const
+{
+ //Return EMC random (de)calibration coefficient O(1). Used in simulation.
+ //module, column,raw should follow the internal PHOS convention:
+ //module 1:5, column 1:56, row 1:64
+
+ return fDecal[module-1][column-1][row-1];
+}
+
+void AliPHOSEmcCalibData::SetADCchannelEmcDecalib(Int_t module, Int_t column, Int_t row, Float_t value)
+{
+ //Set EMC (de)calibration coefficient O(1). Used in simulation.
+ //module, column,raw should follow the internal PHOS convention:
+ //module 1:5, column 1:56, row 1:64
+
+ fDecal[module-1][column-1][row-1] = value;
+}