, kTrackingSectors = 18 };
}
- class AliTRDpropagationLayerHLT {
+class AliTRDpropagationLayerHLT {
- public:
+ public:
- AliTRDpropagationLayerHLT(Double_t x, Double_t dx, Double_t rho
- , Double_t x0, Int_t tbIndex, Int_t plane);
- AliTRDpropagationLayerHLT(const AliTRDpropagationLayerHLT &/*p*/);
- ~AliTRDpropagationLayerHLT() {
- if (fTimeBinIndex >= 0) {
- delete[] fClusters;
- delete[] fIndex;
- }
- }
- AliTRDpropagationLayerHLT &operator=(const AliTRDpropagationLayerHLT &/*p*/)
- {return *this;}
+ AliTRDpropagationLayerHLT(Double_t x, Double_t dx, Double_t rho
+ , Double_t x0, Int_t tbIndex, Int_t plane);
+ AliTRDpropagationLayerHLT(const AliTRDpropagationLayerHLT &/*p*/);
+ ~AliTRDpropagationLayerHLT() {
+ if (fTimeBinIndex >= 0) {
+ delete[] fClusters;
+ delete[] fIndex;
+ }
+ }
+ AliTRDpropagationLayerHLT &operator=(const AliTRDpropagationLayerHLT &/*p*/)
+ {return *this;}
- operator Int_t() const {return fN;}
- AliTRDcluster *operator[](Int_t i) {return fClusters[i];}
+ 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 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);
+ 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;}
+ 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 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 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;}
+ void SetX(Double_t x) {fX = x;}
- private:
+ 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[AliTRDtrackingHLT::kZones]; // Z position of the center for 5 active areas
- Double_t fZmax[AliTRDtrackingHLT::kZones]; // Half of active area length in Z
- Double_t fZmaxSensitive[AliTRDtrackingHLT::kZones]; // Sensitive area for detection Z
- Bool_t fIsHole[AliTRDtrackingHLT::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
+ 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[AliTRDtrackingHLT::kZones]; // Z position of the center for 5 active areas
+ Double_t fZmax[AliTRDtrackingHLT::kZones]; // Half of active area length in Z
+ Double_t fZmaxSensitive[AliTRDtrackingHLT::kZones]; // Sensitive area for detection Z
+ Bool_t fIsHole[AliTRDtrackingHLT::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
+ 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 AliTRDtrackingSectorHLT {
+class AliTRDtrackingSectorHLT {
- public:
+ public:
- AliTRDtrackingSectorHLT(AliTRDgeometry* geo, Int_t gs);
- AliTRDtrackingSectorHLT(const AliTRDtrackingSectorHLT &/*t*/);
- ~AliTRDtrackingSectorHLT() {
- for (Int_t i = 0; i < fN; i++) delete fLayers[i];
- }
+ AliTRDtrackingSectorHLT(AliTRDgeometry* geo, Int_t gs);
+ AliTRDtrackingSectorHLT(const AliTRDtrackingSectorHLT &/*t*/);
+ ~AliTRDtrackingSectorHLT() {
+ for (Int_t i = 0; i < fN; i++) delete fLayers[i];
+ }
- AliTRDtrackingSectorHLT &operator=(const AliTRDtrackingSectorHLT &/*t*/){ return *this;}
+ AliTRDtrackingSectorHLT &operator=(const AliTRDtrackingSectorHLT &/*t*/){ return *this;}
- Int_t GetNumberOfLayers() const { return fN;}
- Int_t GetNumberOfTimeBins() const;
- Int_t GetLayerNumber(Double_t x) const;
- Int_t GetInnerTimeBin() const;
- Int_t GetOuterTimeBin() const;
- Int_t GetLayerNumber(Int_t tb) const { return fTimeBinIndex[tb];}
- Double_t GetX(Int_t pl) const { return fLayers[pl]->GetX();}
- AliTRDpropagationLayerHLT* GetLayer(Int_t i) { return fLayers[i];}
+ Int_t GetNumberOfLayers() const { return fN;}
+ Int_t GetNumberOfTimeBins() const;
+ Int_t GetLayerNumber(Double_t x) const;
+ Int_t GetInnerTimeBin() const;
+ Int_t GetOuterTimeBin() const;
+ Int_t GetLayerNumber(Int_t tb) const { return fTimeBinIndex[tb];}
+ Double_t GetX(Int_t pl) const { return fLayers[pl]->GetX();}
+ AliTRDpropagationLayerHLT* GetLayer(Int_t i) { return fLayers[i];}
- void MapTimeBinLayers();
- Int_t Find(Double_t x) const;
- void InsertLayer(AliTRDpropagationLayerHLT *pl);
- Int_t CookTimeBinIndex(Int_t plane, Int_t localTB) const;
+ void MapTimeBinLayers();
+ Int_t Find(Double_t x) const;
+ void InsertLayer(AliTRDpropagationLayerHLT *pl);
+ Int_t CookTimeBinIndex(Int_t plane, Int_t localTB) const;
- private:
+ private:
- Int_t fN; // Total number of layers
- AliTRDgeometry *fGeom; // Geometry
- AliTRDpropagationLayerHLT *fLayers[AliTRDtrackingHLT::kMaxLayersPerSector]; // Layers
- Int_t fTimeBinIndex[AliTRDtrackingHLT::kMaxTimeBinIndex]; // Time bin index
- Int_t fGeomSector; // Sector# in AliTRDgeometry
+ Int_t fN; // Total number of layers
+ AliTRDgeometry *fGeom; //! Geometry
+ AliTRDpropagationLayerHLT *fLayers[AliTRDtrackingHLT::kMaxLayersPerSector]; //! Layers
+ Int_t fTimeBinIndex[AliTRDtrackingHLT::kMaxTimeBinIndex]; // Time bin index
+ Int_t fGeomSector; // Sector# in AliTRDgeometry
- };
+};
class AliTRDtrackerHLT : public AliTracker {
// Histograms
- TH1D *fHBackfit; // Histogram for back propagation
- TH1D *fHClSearch; // Cluster search
- TH1D *fHRefit;
+ TH1D *fHBackfit; //! Histogram for back propagation
+ TH1D *fHClSearch; //! Cluster search
+ TH1D *fHRefit; //!
- TH1D *fHX;
- TH1D *fHNCl;
- TH1D *fHNClTrack;
- TH1D *fHFindCl[4];
- TH1D *fHMinYPos;
- TH1D *fHMinYNeg;
- TH1D *fHMinZ;
+ TH1D *fHX; //!
+ TH1D *fHNCl; //!
+ TH1D *fHNClTrack; //!
+ TH1D *fHFindCl[4]; //!
+ TH1D *fHMinYPos; //!
+ TH1D *fHMinYNeg; //!
+ TH1D *fHMinZ; //!
- TH2D *fHMinD;
- TH1D *fHDeltaX;
+ TH2D *fHMinD; //!
+ TH1D *fHDeltaX; //!
- TH1D *fHXCl;
+ TH1D *fHXCl; //!
void InitLogHists();
void SaveLogHists();
Double_t GetX(Int_t sec, Int_t plane, Int_t localTB) const;
Double_t GetX(Int_t sec, Int_t pl) const { return fTrSec[sec]->GetLayer(pl)->GetX(); }
Int_t GetGlobalTimeBin(Int_t sec, Int_t plane, Int_t localTB) const
- { return fTrSec[sec]->CookTimeBinIndex(plane,localTB); }
+ { return fTrSec[sec]->CookTimeBinIndex(plane,localTB); }
Double_t GetLayerNumber(Int_t sec, Double_t x) const
- { return fTrSec[sec]->GetLayerNumber(x); }
+ { return fTrSec[sec]->GetLayerNumber(x); }
AliCluster *GetCluster(Int_t index) const { if (index >= fNclusters) return NULL;
- return (AliCluster *) fClusters->UncheckedAt(index); }
+ return (AliCluster *) fClusters->UncheckedAt(index); }
static Int_t Freq(Int_t n, const Int_t *inlist, Int_t *outlist, Bool_t down);
Int_t Clusters2Tracks(AliESD *event);
Int_t ReadClusters(TObjArray *array, TTree *in) const;
AliTRDcluster *GetCluster(AliTRDtrack *track, Int_t plane, Int_t timebin, UInt_t &index);
Int_t FindClusters(Int_t sector, Int_t t0, Int_t t1, AliTRDtrack *track
- , Int_t *clusters, AliTRDtracklet &tracklet);
+ , Int_t *clusters, AliTRDtracklet &tracklet);
void MakeSeedsMI(Int_t inner, Int_t outer, AliESD *esd = 0);
protected:
- AliTRDgeometry *fGeom; // Pointer to TRD geometry
- AliTRDtrackingSectorHLT *fTrSec[AliTRDtrackingHLT::kTrackingSectors]; // Array of tracking sectors;
+ AliTRDgeometry *fGeom; //! Pointer to TRD geometry
+ AliTRDtrackingSectorHLT *fTrSec[AliTRDtrackingHLT::kTrackingSectors]; //! Array of tracking sectors;
Int_t fNclusters; // Number of clusters in TRD
- TObjArray *fClusters; // List of clusters for all sectors
+ TObjArray *fClusters; //! List of clusters for all sectors
Int_t fNseeds; // Number of track seeds
- TObjArray *fSeeds; // List of track seeds
+ TObjArray *fSeeds; //! List of track seeds
Int_t fNtracks; // Number of reconstructed tracks
- TObjArray *fTracks; // List of reconstructed tracks
+ TObjArray *fTracks; //! List of reconstructed tracks
Int_t fTimeBinsPerPlane; // Timebins per plane in track prolongation
static const Double_t fgkMaxChi2; // Max increment in track chi2
Double_t ExpectedSigmaY2(Double_t r, Double_t tgl, Double_t pt) const;
Double_t ExpectedSigmaZ2(Double_t r, Double_t tgl) const;
- TTreeSRedirector *fDebugStreamer; //!Debug streamer
+ TTreeSRedirector *fDebugStreamer; //! Debug streamer
ClassDef(AliTRDtrackerHLT,2) // TRD tracker
- };
+};
#endif