-void AliL3MemHandler::SetROI(Float_t *eta,Int_t *slice){
- if(eta[1]==0)
- {
- LOG(AliL3Log::kWarning,"AliL3MemHandler::SetROI","Eta Values")
- <<"Bad ROI parameters. IDIOT! "<<ENDLOG;
- for(Int_t i=fRowMin; i<=fRowMax; i++)
- {
- fEtaMinTimeBin[i]=0;
- fEtaMaxTimeBin[i]=0;
- }
- return;
- }
-
- for(Int_t i=fRowMin; i<=fRowMax; i++)
- {
- Int_t sector,row;
- Float_t xyz[3];
-
- Float_t thetamax = 2*atan(exp(-1.*eta[1]));
-
- xyz[0] = fTransformer->Row2X(i);
- xyz[1]=0;
- xyz[2] = xyz[0]/tan(thetamax);
- fTransformer->Slice2Sector(fSlice,i,sector,row);
- fTransformer->Local2Raw(xyz,sector,row);
-
- fEtaMinTimeBin[i] = (Int_t)xyz[2];
-
- if(eta[0]==0)
- fEtaMaxTimeBin[i] = 445;
- else
- {
- Float_t thetamin = 2*atan(exp(-1.*eta[0]));
- xyz[0] = fTransformer->Row2X(i);
- xyz[1] = fTransformer->GetMaxY(i);
- Float_t radii = sqrt(pow(xyz[0],2) + pow(xyz[1],2));
- xyz[2] = radii/tan(thetamin);
- fTransformer->Local2Raw(xyz,sector,row);
- fEtaMaxTimeBin[i] = (Int_t)xyz[2];
- }
- }
-
+void AliL3MemHandler::SetROI(Float_t *eta,Int_t *slice)
+{
+ // Init the Look-up table for the Region of Interest mode.
+ // Here you can specify a certain etaregion, - all data
+ // outside this region will be discarded:
+ // eta[0] = mimium eta
+ // eta[1] = maximum eta
+ // slice[0] = mimumum slice
+ // slice[1] = maximum slice
+
+
+ if(eta[1]==0)
+ {
+ LOG(AliL3Log::kWarning,"AliL3MemHandler::SetROI","Eta Values")
+ <<"Bad ROI parameters. IDIOT! "<<ENDLOG;
+ for(Int_t i=fRowMin; i<=fRowMax; i++)
+ {
+ fEtaMinTimeBin[i]=0;
+ fEtaMaxTimeBin[i]=0;
+ }
+ return;
+ }
+
+ for(Int_t i=fRowMin; i<=fRowMax; i++)
+ {
+ Int_t sector,row;
+ Float_t xyz[3];
+
+ Float_t thetamax = 2*atan(exp(-1.*eta[1]));
+
+ xyz[0] = AliL3Transform::Row2X(i);
+ xyz[1]=0;
+ xyz[2] = xyz[0]/tan(thetamax);
+ AliL3Transform::Slice2Sector(fSlice,i,sector,row);
+ AliL3Transform::Local2Raw(xyz,sector,row);
+
+ fEtaMinTimeBin[i] = (Int_t)xyz[2];
+
+ if(eta[0]==0)
+ fEtaMaxTimeBin[i] = 445;
+ else
+ {
+ Float_t thetamin = 2*atan(exp(-1.*eta[0]));
+ xyz[0] = AliL3Transform::Row2X(i);
+ xyz[1] = AliL3Transform::GetMaxY(i);
+ Float_t radii = sqrt(pow(xyz[0],2) + pow(xyz[1],2));
+ xyz[2] = radii/tan(thetamin);
+ AliL3Transform::Local2Raw(xyz,sector,row);
+ fEtaMaxTimeBin[i] = (Int_t)xyz[2];
+ }
+ }
+