From: cvetan Date: Wed, 31 Oct 2007 16:45:39 +0000 (+0000) Subject: In case of online, one has to create the calibration object first X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=dd9fd8d67af31384c60a646d28ce7c29a1874e54;ds=sidebyside In case of online, one has to create the calibration object first --- diff --git a/T0/AliT0Parameters.cxx b/T0/AliT0Parameters.cxx index f5c9fa8c21c..14e5337240b 100644 --- a/T0/AliT0Parameters.cxx +++ b/T0/AliT0Parameters.cxx @@ -149,6 +149,9 @@ void AliT0Parameters::InitIfOnline() //standart configuration (used for simulation) //Int_t trm=0; Int_t tdc=0; Int_t chain=0; Int_t channel=0; // configuration for test Jun07. + + fgLookUp = new AliT0CalibData("T0"); + fNumberOfTRMs = 1; Int_t trm=7; Int_t tdc=0; Int_t chain=0; Int_t channel=0; for (Int_t ik=0; ik<105; ik++) @@ -164,9 +167,9 @@ void AliT0Parameters::InitIfOnline() lookkey->SetKey(ik); if (channel<6) channel +=2; else {channel = 0; tdc++;} - if(ik==57) { tdc=0; channel=0; chain = 1;} - // fLookUp.Add((TObject*)lookvalue,(TObject*)lookkey); - fgLookUp->GetMapLookup()->Add((TObject*)lookvalue,(TObject*)lookkey); + if(ik==57) { tdc=0; channel=0; chain = 1;} + + fgLookUp->GetMapLookup()->Add((TObject*)lookvalue,(TObject*)lookkey); } fIsInit=kTRUE;