AliITSsegmentationSDD();
AliITSsegmentationSDD(AliITSgeom *gm, AliITSresponse *resp);
- AliITSsegmentationSDD(AliITSsegmentationSDD &source);
virtual ~AliITSsegmentationSDD(){}
- AliITSsegmentationSDD& operator=(AliITSsegmentationSDD &source);
// Set Detector Segmentation Parameters
//
// Detector size : x,z,y
- virtual void SetDetSize
- (Float_t p1=35000., Float_t p2=75264., Float_t p3= 300.)
+ virtual void SetDetSize
+ (Float_t p1=35085., Float_t p2=75264., Float_t p3= 300.)
{fDx=p1; fDz=p2; fDy=p3;}
// Cell size dz*dx
// Maximum number of cells along the two coordinates z,x (anodes,samples)
virtual void SetNPads(Int_t p1=256, Int_t p2=256)
{fNanodes=2*p1;fNsamples=p2;}
+ // Returns the maximum number of cells (digits) posible
+ virtual Int_t GetNPads(){return fNanodes*fNsamples;}
// Transform from real local to cell coordinates
virtual void GetPadIxz(Float_t x ,Float_t z ,Int_t &ix,Int_t &iz);
virtual void GetGlobal(Int_t module,Float_t *l ,Float_t *g);
// Get anode and time bucket as floats - numbering from 0
virtual void GetPadTxz(Float_t &x ,Float_t &z);
+ // Transformation from Geant cm detector center local coordinates
+ // to detector segmentation/cell coordiantes starting from (0,0).
+ virtual void LocalToDet(Float_t x,Float_t z,Int_t &ix,Int_t &iz);
+ // Transformation from detector segmentation/cell coordiantes starting
+ // from (0,0) to Geant cm detector center local coordinates.
+ virtual void DetToLocal(Int_t ix,Int_t iz,Float_t &x,Float_t &z);
//
// Initialisation
virtual void Init();
// Get member data
//
// Detector type geometry
- virtual AliITSgeom* Geometry() {return fGeom;}
+ AliITSgeom* Geometry() {return fGeom;}
// Detector length
virtual Float_t Dx() {return fDx;}
- // Detector width
+ // Detector drift distance or detector active area half width
virtual Float_t Dz() {return fDz;}
// Detector thickness
virtual Float_t Dy() {return fDy;}
virtual void SetCorrFunc(Int_t, TF1*) {}
// Get the correction Function
virtual TF1* CorrFunc(Int_t) {return 0;}
+ // Print Parameters
+ virtual void Print(Option_t *opt="") const;
+ private:
+
+ AliITSsegmentationSDD(AliITSsegmentationSDD &source);
+ AliITSsegmentationSDD& operator=(AliITSsegmentationSDD &source);
+
protected:
- Int_t fNsamples; // Number of time samples in x
- Int_t fNanodes; // Summed # of anodes in the two det halves (z)
- Float_t fPitch; // Anode pitch - microns
- Float_t fTimeStep; // Sampling time - ns
- Float_t fDx ; // Full width of the detector (x axis) - microns
- Float_t fDz ; // Length of half-detector (z axis) - microns
- Float_t fDy; // Full thickness of the detector (y axis)
+ Int_t fNsamples; // Number of time samples in x
+ Int_t fNanodes; // Summed # of anodes in the two det halves (z)
+ Float_t fPitch; // Anode pitch - microns
+ Float_t fTimeStep; // Sampling time - ns
+ Float_t fDx; // Drift distance of the 1/2detector (x axis)-microns
+ Float_t fDz; // Length of half-detector (z axis) - microns
+ Float_t fDy; // Full thickness of the detector (y axis) - microns
+ Float_t fDriftSpeed; // Drift speed
AliITSgeom *fGeom; //! pointer to the geometry class
- AliITSresponse *fResponse; // pointer to the response class
-
TF1* fCorr; // correction function
- ClassDef(AliITSsegmentationSDD,1) // SDD segmentation
+ ClassDef(AliITSsegmentationSDD,2) // SDD segmentation
};
#endif