- AliT0LookUpKey* lookkey= new AliT0LookUpKey();
- AliT0LookUpValue* lookvalue= new AliT0LookUpValue();
-
- lookvalue->SetTRM(iTRM);
- lookvalue->SetTDC(iTDC);
- lookvalue->SetChain(0);
- lookvalue->SetChannel(iChannel);
-
- printf(" AliT0CalibData::PrintLookup ::start GetValue %i %i %i \n",iTRM, iTDC, iChannel);
- lookkey = (AliT0LookUpKey*) fLookup.GetValue((TObject*)lookvalue);
-
- cout<<" AliT0CalibData::PrintLookup :: lookkey "<< lookkey<<endl;
- if (lookkey)
- {
- cout<<" lookup KEY!!! "<<lookkey->GetKey()<<" VALUE "<<lookvalue->GetTRM()<<" "
- <<lookvalue->GetTDC()<<" "
- << lookvalue->GetChain()<<" "
- <<lookvalue->GetChannel()<<endl;
- }
-
-
-}
-
-//________________________________________________________________
-void AliT0CalibData::SetTimeDelayCFD(Float_t* TimeDelay)
-{
- if(TimeDelay) for(int t=0; t<24; t++) fTimeDelayCFD[t] = TimeDelay[t];
- // else for(int t=0; t<24; t++) fTimeDelay[t] = 0.;
-}
-//________________________________________________________________
-void AliT0CalibData::SetTimeDelayLED(Float_t* TimeDelay)
-{
- if(TimeDelay) for(int t=0; t<24; t++) fTimeDelayLED[t] = TimeDelay[t];
- // else for(int t=0; t<24; t++) fTimeDelay[t] = 0.;
-}
-
-//________________________________________________________________
-void AliT0CalibData::SetGain(Float_t* Gain)
-{
- if(Gain) for(int t=0; t<24; t++) fGain[t] = Gain[t];
- // else for(int t=0; t<24; t++) fGain[t] = 0.;
-}
-
-
-//________________________________________________________________
-void AliT0CalibData::SetWalk(Int_t ipmt, const Char_t *filename)
-{
-
- TFile *file = new TFile(filename);
- char funcname[256];
- sprintf(funcname,"CFD%i",ipmt+1);
- TF1* gr = (TF1*)file->Get(funcname);
- fWalk.AddAtAndExpand(gr,ipmt);
- file->Close();
-}
-