#include <TROOT.h>
#include "AliITS.h"
#include "AliITSMapA2.h"
-#include "AliITSRawData.h"
#include "AliITSdigitSPD.h"
#include "AliITSetfSDD.h"
#include "AliITSmodule.h"
#include "AliLog.h"
#include "AliRun.h"
+using std::endl;
+using std::cout;
ClassImp(AliITSsimulationSDD)
////////////////////////////////////////////////////////////////////////
// Version: 0 //
if(!mod->LineSegmentL(ii,xL[0],dxL[0],xL[1],dxL[1],xL[2],dxL[2],
depEnergy,itrack)) continue;
Float_t xloc=xL[0];
- if(xloc>0) iWing=0; // left side, carlos channel 0
- else iWing=1; // right side
-
Float_t zloc=xL[2]+0.5*dxL[2];
zAnode=seg->GetAnodeFromLocal(xloc,zloc); // anode number in the range 0.-511.
driftSpeed = res->GetDriftSpeedAtAnode(zAnode);
theSteps+=1.;
theAverage+=avAnode;
zAnode = seg->GetAnodeFromLocal(avDrft,avAnode);
+ // if(avDrft*xloc<0) AliDebug(1,Form("Swap of side xloc_orig=%f xloc_now=%f",xloc,avDrft));
+ iWing = seg->GetSideFromLocalX(avDrft);
+
driftSpeed = res->GetDriftSpeedAtAnode(zAnode);
driftSpeed+= fDetType->GetResponseSDD()->GetDeltaVDrift(fModule,zAnode>255);
driftPath = TMath::Abs(10000.*avDrft);
cout << "Scale size factor: " << fScaleSize << endl;
cout << "**************************************************" << endl;
}
+