- // ***************** internal class *******************
- public:
- AliTRDpropagationLayer(Double_t x, Double_t dx, Double_t rho,
- Double_t x0, Int_t tbIndex);
-
- ~AliTRDpropagationLayer() {
- if(fTimeBinIndex >= 0) { delete[] fClusters; delete[] fIndex; }
- }
- void InsertCluster(AliTRDcluster *c, UInt_t index);
- operator Int_t() const {return fN;}
- AliTRDcluster* operator[](Int_t i) {return fClusters[i];}
- UInt_t GetIndex(Int_t i) const {return fIndex[i];}
- Double_t GetX() const { return fX; }
- Double_t GetdX() const { return fdX; }
- Double_t GetRho() const { return fRho; }
- Double_t GetX0() const { return fX0; }
- Int_t GetTimeBinIndex() const { return fTimeBinIndex; }
- void GetPropagationParameters(Double_t y, Double_t z,
- Double_t &dx, Double_t &rho, Double_t &x0,
- Bool_t &lookForCluster) const;
- Int_t GetZone( Double_t z) const;
- Int_t Find(Double_t y) const;
- void SetZmax(Int_t cham, Double_t center, Double_t w)
- { fZc[cham] = center; fZmax[cham] = w; }
- void SetZ(Double_t* center, Double_t *w, Double_t *wsensitive);
- void SetHoles(Bool_t* holes);
- void SetYmax(Double_t w, Double_t wsensitive) { fYmax = w; fYmaxSensitive = wsensitive; }
- Double_t GetYmax() const { return fYmax; }
- Double_t GetZmax(Int_t c) const { return fZmax[c]; }
- Double_t GetZc(Int_t c) const { return fZc[c]; }
-
- void SetHole(Double_t Zmax, Double_t Ymax,
- Double_t rho = 1.29e-3, Double_t x0 = 36.66,
- Double_t Yc = 0, Double_t Zc = 0);
-
- Bool_t IsSensitive() const {return (fTimeBinIndex>=0)? kTRUE: kFALSE;}
-
- void Clear() {for(Int_t i=0; i<fN; i++) fClusters[i] = NULL; fN = 0;}
- Bool_t IsHole(Int_t zone) const { return fIsHole[zone];}
- private:
-
- Int_t fN; // this is fN
- Int_t fSec; // sector mumber
- AliTRDcluster **fClusters; // array of pointers to clusters
- UInt_t *fIndex; // array of cluster indexes
- Double_t fX; // x coordinate of the middle plane
- Double_t fdX; // radial thickness of the time bin
- Double_t fRho; // default density of the material
- Double_t fX0; // default radiation length
- Int_t fTimeBinIndex; // plane * F(local_tb)
- Double_t fZc[kZones]; // Z position of the center for 5 active areas
- Double_t fZmax[kZones]; // half of active area length in Z
- Double_t fZmaxSensitive[kZones]; //sensitive area for detection Z
- Bool_t fIsHole[kZones]; //is hole in given sector
- Double_t fYmax; // half of active area length in Y
- Double_t fYmaxSensitive; // half of active area length in Y
-
- Bool_t fHole; // kTRUE if there is a hole in the layer
- Double_t fHoleZc; // Z of the center of the hole
- Double_t fHoleZmax; // half of the hole length in Z
- Double_t fHoleYc; // Y of the center of the hole
- Double_t fHoleYmax; // half of the hole length in Y
- Double_t fHoleRho; // density of the gas in the hole
- Double_t fHoleX0; // radiation length of the gas in the hole
- };
-
- class AliTRDtrackingSector {
+
+ public:
+
+ AliTRDpropagationLayer(Double_t x, Double_t dx, Double_t rho
+ , Double_t x0, Int_t tbIndex, Int_t plane);
+ AliTRDpropagationLayer(const AliTRDpropagationLayer &/*p*/);
+ ~AliTRDpropagationLayer() {
+ if (fTimeBinIndex >= 0) {
+ delete[] fClusters;
+ delete[] fIndex;
+ }
+ }
+ AliTRDpropagationLayer &operator=(const AliTRDpropagationLayer &/*p*/)
+ {return *this;}
+
+ operator Int_t() const {return fN;}
+ AliTRDcluster *operator[](Int_t i) {return fClusters[i];}
+
+ void SetZmax(Int_t cham, Double_t center, Double_t w) {
+ fZc[cham] = center;
+ fZmax[cham] = w;
+ }
+ void SetYmax(Double_t w, Double_t wsensitive) {
+ fYmax = w;
+ fYmaxSensitive = wsensitive;
+ }
+
+ void SetZ(Double_t* center, Double_t *w, Double_t *wsensitive);
+ void SetHoles(Bool_t* holes);
+ void SetHole(Double_t Zmax, Double_t Ymax
+ , Double_t rho = 1.29e-3, Double_t x0 = 36.66
+ , Double_t Yc = 0.0, Double_t Zc = 0.0);
+
+ Double_t GetYmax() const { return fYmax; }
+ Double_t GetZmax(Int_t c) const { return fZmax[c]; }
+ Double_t GetZc(Int_t c) const { return fZc[c]; }
+ UInt_t GetIndex(Int_t i) const { return fIndex[i]; }
+ Double_t GetX() const { return fX; }
+ Double_t GetdX() const { return fdX; }
+ Int_t GetTimeBinIndex() const { return fTimeBinIndex; }
+ Int_t GetPlane() const { return fPlane; }
+ Bool_t IsHole(Int_t zone) const { return fIsHole[zone]; }
+ Bool_t IsSensitive() const { return (fTimeBinIndex >= 0)? kTRUE : kFALSE;}
+
+ void Clear() {
+ for (Int_t i = 0; i < fN; i++) fClusters[i] = NULL;
+ fN = 0;
+ }
+
+ void InsertCluster(AliTRDcluster *c, UInt_t index);
+ Int_t Find(Float_t y) const;
+ Int_t FindNearestCluster(Float_t y, Float_t z, Float_t maxroad, Float_t maxroadz) const;
+
+ void SetX(Double_t x) {fX = x;}
+
+
+ private:
+
+ Int_t fN; // This is fN
+ Int_t fSec; // Sector mumber
+ AliTRDcluster **fClusters; // Array of pointers to clusters
+ UInt_t *fIndex; // Array of cluster indexes
+ Double_t fX; // X coordinate of the middle plane
+ Double_t fdX; // Radial thickness of the time bin
+ Double_t fRho; // Default density of the material
+ Double_t fX0; // Default radiation length
+ Int_t fTimeBinIndex; // Plane * F(local_tb)
+ Int_t fPlane; // Plane number
+ Double_t fZc[kZones]; // Z position of the center for 5 active areas
+ Double_t fZmax[kZones]; // Half of active area length in Z
+ Double_t fZmaxSensitive[kZones]; // Sensitive area for detection Z
+ Bool_t fIsHole[kZones]; // Is hole in given sector
+ Double_t fYmax; // Half of active area length in Y
+ Double_t fYmaxSensitive; // Half of active area length in Y
+
+ Bool_t fHole; // kTRUE if there is a hole in the layer
+ Double_t fHoleZc; // Z of the center of the hole
+ Double_t fHoleZmax; // Half of the hole length in Z
+ Double_t fHoleYc; // Y of the center of the hole
+ Double_t fHoleYmax; // Half of the hole length in Y
+ Double_t fHoleRho; // Density of the gas in the hole
+ Double_t fHoleX0; // Radiation length of the gas in the hole
+
+ };
+
+ class AliTRDtrackingSector {
+