X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=T0%2FMakeT0RecoParam.C;h=06c8798ef3f193729747f49db863856246162c71;hp=d3148e9c7ec3790e4f074d29e01ec2f6188bdd38;hb=8aaba3066e3c4e5676d0b6ee7bf3922dda2206c5;hpb=dbe5f5f809452a25a9bd3dad6f3c6daf70fc565b diff --git a/T0/MakeT0RecoParam.C b/T0/MakeT0RecoParam.C index d3148e9c7ec..06c8798ef3f 100644 --- a/T0/MakeT0RecoParam.C +++ b/T0/MakeT0RecoParam.C @@ -1,42 +1,91 @@ void MakeT0RecoParam(Int_t startRun = 0, Int_t endRun = AliCDBRunRange::Infinity(), AliRecoParam::EventSpecie_t defaultParam = AliRecoParam::kHighMult) +//void MakeT0RecoParam(Int_t startRun = 122000, Int_t endRun = 126437, AliRecoParam::EventSpecie_t defaultParam = AliRecoParam::kHighMult) { // Create T0 Calibration Object for Ideal calibration and // write it on CDB AliCDBManager *man = AliCDBManager::Instance(); - man->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); + // man->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); + man->SetDefaultStorage("local:///scratch/alla/alice/Oct11/TestCDBf"); man->SetRun(startRun); - + TObjArray *recoParamArray = new TObjArray(); AliT0RecoParam* t0RecoParam; t0RecoParam = AliT0RecoParam::GetHighFluxParam(); t0RecoParam->SetEventSpecie(AliRecoParam::kHighMult); - // t0RecoParam->Dump(); - cout<<" t0RecoParam->GetEventSpecie "<< t0RecoParam->GetEventSpecie()<Dump(); - t0RecoParam->PrintParameters(); - recoParamArray->AddLast(t0RecoParam); + Float_t low[500] , high[500] ; + Float_t pos[24] = {2472, 2492, 2501, 2540, 2526, 2525, 2501, 2461, 2556, 2544, 2533, 2487, + 2485, 2502, 2453, 2470, 2520, 2486, 2512, 2523, 2505, 2562, 2533, 2481}; + for (Int_t i=0; i<107; i++) + { + low[i] = 500; + high[i]=50000; + if(i>0 && i<13) { low[i] = pos[i-1] - 200; high[i] = pos[i-1] + 200;} + if(i>56 && i<69) { low[i] = pos[i-57] - 200.; high[i]=pos[i-57] + 200;} + // if(i<13) { low[i]=pos[i]-500.;high[i]=pos[i]+500.;} + // if(i>56 && i<69) { low[i]=pos[i+13-57]-500.;high[i]=pos[i-57+13]+500.;} + } + // bad PMT + t0RecoParam->SetRefPoint(-1); + // amplitude range for recontruction + low[200]=0.8; + high[200]=80; + for (Int_t i=0; i<24; i++) t0RecoParam-> SetBadChannels(i,0); + + for (Int_t i=0; i<500; i++) { + t0RecoParam->SetLow(i,low[i]); + t0RecoParam->SetHigh(i,high[i]); + } + t0RecoParam->SetEq(1); + t0RecoParam->SetSatelliteThresholds(-15, -1.7); + t0RecoParam->PrintParameters(); + recoParamArray->AddLast(t0RecoParam); + + //----------------------------------------- t0RecoParam = AliT0RecoParam::GetLowFluxParam(); t0RecoParam->SetEventSpecie(AliRecoParam::kLowMult); - cout<<" t0RecoParam->GetEventSpecie "<< t0RecoParam->GetEventSpecie()<SetLow(10,-1000); - t0RecoParam->PrintParameters(); - recoParamArray->AddLast(t0RecoParam); + Float_t low[500], high[500] ; + for (Int_t i=0; i<500; i++) + { + low[i] = 500; + high[i]=50000; + if(i>0 && i<13) { low[i] = pos[i-1] - 200; high[i] = pos[i-1] + 200;} + if(i>56 && i<69) { low[i] = pos[i-57] - 200.; high[i]=pos[i-57] + 200;} + // if(i<13) { low[i]=pos[i]-500.;high[i]=pos[i]+500.;} + // if(i>56 && i<69) { low[i]=pos[i+13-57]-500.;high[i]=pos[i-57+13]+500.;} + } + // bad PMT + // t0RecoParam->SetRefPoint(-1); + for (Int_t i=0; i<24; i++) t0RecoParam->SetBadChannels(i,0); + t0RecoParam->SetRefPoint(-1); + // amplitude range for recontruction + t0RecoParam->SetEq(1); + low[200]=0.8; + high[200]=80; + for (Int_t i=0; i<500; i++) { + t0RecoParam->SetLow(i,low[i]); + t0RecoParam->SetHigh(i,high[i]); + } + // t0RecoParam->PrintParameters(); + recoParamArray->AddLast(t0RecoParam); + //-------------------------------------- t0RecoParam = AliT0RecoParam::GetLaserTestParam(); t0RecoParam->SetEventSpecie(AliRecoParam::kCalib); // t0RecoParam->Dump(); cout<<" t0RecoParam->GetEventSpecie "<< t0RecoParam->GetEventSpecie()<SetLow(i,-1000); - t0RecoParam->SetHigh(i,1000); + for (Int_t i=0; i<107; i++) { + t0RecoParam->SetLow(i, 0); + t0RecoParam->SetHigh(i, 50000); } + t0RecoParam->SetEq(1); + t0RecoParam->SetSatelliteThresholds(-15, -1.7); // t0RecoParam->Dump(); t0RecoParam->SetRefPoint(1); - t0RecoParam->PrintParameters(); + // t0RecoParam->PrintParameters(); recoParamArray->AddLast(t0RecoParam);