SetName(namst.Data());
SetTitle(namst.Data());
Reset();
- for(Int_t i=0; i<2; i++){
- fReferenceValue[i] = 0.;
+ for(Int_t i=0; i<24; i++){
+ fDetector[i] = 0;
fSector[i] = 0;
- fGain[i] = 0;
- fPMRefValue[i] = 0.;
- fPMRefWidth[i] = 0.;
+ fPMValue[i] = 0.;
+ fPMWidth[i] = 0.;
}
SetName(calibda.GetName());
SetTitle(calibda.GetName());
Reset();
- for(int t=0; t<2; t++){
- fReferenceValue[t] = calibda.GetReferenceValue(t);
- fSector[t] = calibda.GetSector(t);
- fGain[t] = calibda.GetGain(t);
- fPMRefValue[t] = calibda.GetPMRefValue(t);
- fPMRefWidth[t] = calibda.GetPMRefWidth(t);
+ for(int t=0; t<22; t++){
+ fDetector[t] = calibda.GetDetector(t);
+ fSector[t] = calibda.GetSector(t);
+ fPMValue[t] = calibda.GetPMValue(t);
+ fPMWidth[t] = calibda.GetPMWidth(t);
}
}
SetName(calibda.GetName());
SetTitle(calibda.GetName());
Reset();
- for(int t=0; t<2; t++){
- fReferenceValue[t] = calibda.GetReferenceValue(t);
- fSector[t] = calibda.GetSector(t);
- fGain[t] = calibda.GetGain(t);
- fPMRefValue[t] = calibda.GetPMRefValue(t);
- fPMRefWidth[t] = calibda.GetPMRefWidth(t);
+ for(int t=0; t<22; t++){
+ fDetector[t] = calibda.GetDetector(t);
+ fSector[t] = calibda.GetSector(t);
+ fPMValue[t] = calibda.GetPMValue(t);
+ fPMWidth[t] = calibda.GetPMWidth(t);
}
return *this;
void AliZDCLaserCalib::Reset()
{
// Reset
- memset(fReferenceValue,0,2*sizeof(Float_t));
- memset(fSector,0,2*sizeof(Float_t));
- memset(fGain,0,2*sizeof(Float_t));
- memset(fPMRefValue,0,2*sizeof(Float_t));
- memset(fPMRefWidth,0,2*sizeof(Float_t));
+ memset(fDetector,0,24*sizeof(Float_t));
+ memset(fSector,0,24*sizeof(Float_t));
+ memset(fPMValue,0,24*sizeof(Float_t));
+ memset(fPMWidth,0,24*sizeof(Float_t));
}
{
// Printing of calibration object
printf("\n\n ******************* AliZDCLaserCalib object *******************\n");
- for(Int_t i=0; i<2; i++){
- if(fSector[i]==1.) printf(" side C ->");
- else if(fSector[i]==4.) printf(" side A->");
- printf(" Ref.Values %1.2f Gain %1.0f",fReferenceValue[i], fGain[i]);
- printf(" PMRefValue = %1.0f PMRefWidth = %1.0f\n",fPMRefValue[i],fPMRefWidth[i]);
+ for(Int_t i=0; i<24; i++){
+ printf(" Detector %d, sector %d, PMValue = %1.1f +/- %1.1f\n",
+ fDetector[i], fSector[i],fPMValue[i],fPMWidth[i]);
}
printf(" ***************************************************************\n\n");
}