X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TOF%2FAliTOFtrackerMI.h;h=617dd3b696e0bf6a1e5b82f3d85fdf277163c750;hb=667496a93f7a43511ce9c23a7a76fdfb2335692d;hp=426108899af424e9fa7739083a2e3f94a95f87b5;hpb=af885e0fc45eeab1177d3d34f858ccd8836787fb;p=u%2Fmrichter%2FAliRoot.git diff --git a/TOF/AliTOFtrackerMI.h b/TOF/AliTOFtrackerMI.h index 426108899af..617dd3b696e 100644 --- a/TOF/AliTOFtrackerMI.h +++ b/TOF/AliTOFtrackerMI.h @@ -16,12 +16,12 @@ #include "AliTracker.h" -#include "AliTOFpidESD.h" - class TTreeSRedirector; class TClonesArray; +class TObjArray; class AliESDEvent; +class AliESDpid; class AliTOFcluster; class AliTOFRecoParam; @@ -30,95 +30,61 @@ class AliTOFtrack; class AliTOFtrackerMI : public AliTracker { -enum {kMaxCluster=77777}; //maximal number of the TOF clusters - public: AliTOFtrackerMI(); - AliTOFtrackerMI(const AliTOFtrackerMI &t); //Copy Ctor - AliTOFtrackerMI& operator=(const AliTOFtrackerMI &source); // ass. op. // virtual ~AliTOFtrackerMI() {delete fTOFpid;} virtual ~AliTOFtrackerMI(); + virtual void GetPidSettings(AliESDpid *esdPID); virtual Int_t Clusters2Tracks(AliESDEvent* /*event*/) {return -1;}; - virtual Int_t PropagateBack(AliESDEvent* event); + virtual Int_t PropagateBack(AliESDEvent * const event); virtual Int_t RefitInward(AliESDEvent* /*event*/) {return -1;}; virtual Int_t LoadClusters(TTree *dTree); // Loading Clusters from Digits virtual void UnloadClusters();// UnLoad Clusters - virtual AliCluster *GetCluster(Int_t /*index*/) const {return NULL;}; - void GetLikelihood(Float_t dy, Float_t dz, const Double_t *cov, AliTOFtrack * track, Float_t & py, Float_t &pz); -public: - /* class AliTOFcluster { */ -/* friend class AliTOFtrackerMI; */ -/* public: */ -/* AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx) { */ -/* fR=h[0]; fPhi=h[1]; fZ=h[2]; fTDC=h[3]; fADC=h[4]; */ -/* fLab[0]=l[0]; fLab[1]=l[1]; fLab[2]=l[2]; */ -/* fIdx=idx; */ -/* fdetIndex[0]=ind[0]; */ -/* fdetIndex[1]=ind[1]; */ -/* fdetIndex[2]=ind[2]; */ -/* fdetIndex[3]=ind[3]; */ -/* fdetIndex[4]=ind[4]; */ -/* fQuality = -100; */ -/* } */ -/* void Use() {fADC=-fADC;} */ - -/* Double_t GetR() const {return fR;} // Cluster Radius */ -/* Double_t GetPhi() const {return fPhi;} // Cluster Phi */ -/* Double_t GetZ() const {return fZ;} // Cluster Z */ -/* Double_t GetTDC() const {return fTDC;} // Cluster ToF */ -/* Double_t GetADC() const {return TMath::Abs(fADC);} // Cluster Charge */ -/* Int_t IsUsed() const {return (fADC<0) ? 1 : 0;} // Flagging */ -/* Int_t GetLabel(Int_t n) const {return fLab[n];} // Labels of tracks in Cluster */ -/* Int_t GetDetInd(Int_t n) const {return fdetIndex[n];} //Cluster Det Indeces */ -/* Int_t GetIndex() const {return fIdx;} // Cluster Index */ - -/* private: */ - -/* Int_t fLab[3]; //track labels */ -/* Int_t fIdx; //index of this cluster */ -/* Int_t fdetIndex[5]; //Cluster detector Indeces (plate,strip,..) */ -/* Double_t fR; //r-coordinate */ -/* Double_t fPhi; //phi-coordinate */ -/* Double_t fZ; //z-coordinate */ -/* Double_t fTDC; //TDC count */ -/* Double_t fADC; //ADC count */ -/* Double_t fQuality; // quality of the best track */ -/* }; */ + virtual AliCluster *GetCluster(Int_t index) const + {if (index==-1 || index >= fN) return NULL; + return (AliCluster *) fClusters[index];}; + void GetLikelihood(Float_t dy, Float_t dz, const Double_t *cov, AliTOFtrack * track, Float_t & py, Float_t &pz) const; + void FillClusterArray(TObjArray* arr) const; private: - Int_t InsertCluster(AliTOFcluster *c); // Fills TofClusters Array - Int_t FindClusterIndex(Double_t z) const; // Returns cluster index - void MatchTracks(Bool_t mLastStep); // Matching Algorithm - void MatchTracksMI(Bool_t mLastStep); // Matching Algorithm - void CollectESD(); // Select starting Set for Matching - //void Init(); - Float_t GetLinearDistances(AliTOFtrack * track, AliTOFcluster *cluster, Float_t distances[5]); - AliTOFRecoParam* fRecoParam; // Pointer to TOF Recontr. Params - AliTOFGeometry* fGeom; // Pointer to TOF geometry - AliTOFpidESD* fPid; // Pointer to TOF PID - AliTOFcluster *fClusters[kMaxCluster]; // pointers to the TOF clusters - - Int_t fN; // Number of Clusters - Int_t fNseeds; // Number of track seeds - Int_t fNseedsTOF; // TPC BP tracks - Int_t fngoodmatch; // Correctly matched tracks - Int_t fnbadmatch; // Wrongly matched tracks - Int_t fnunmatch; // Unmatched tracks - Int_t fnmatch; // Total matched tracks + enum {kMaxCluster=77777}; //maximal number of the TOF clusters + + AliTOFtrackerMI(const AliTOFtrackerMI &t); //Copy Ctor + AliTOFtrackerMI& operator=(const AliTOFtrackerMI &source); // ass. op. + + Int_t InsertCluster(AliTOFcluster *c); // Fills TofClusters Array + Int_t FindClusterIndex(Double_t z) const; // Returns cluster index + void MatchTracks(Bool_t mLastStep) const; // Matching Algorithm + void MatchTracksMI(Bool_t mLastStep); // Matching Algorithm + void CollectESD(); // Select starting Set for Matching + //void Init(); + Float_t GetLinearDistances(AliTOFtrack * track, AliTOFcluster *cluster, Float_t distances[5]); + + const AliTOFRecoParam* fkRecoParam; // Pointer to TOF Recon. Pars + AliTOFGeometry* fGeom; // Pointer to TOF geometry + AliTOFcluster *fClusters[kMaxCluster]; // pointers to the TOF clusters + + Int_t fN; // Number of Clusters + Int_t fNseeds; // Number of track seeds + Int_t fNseedsTOF; // TPC BP tracks + Int_t fngoodmatch; // Correctly matched tracks + Int_t fnbadmatch; // Wrongly matched tracks + Int_t fnunmatch; // Unmatched tracks + Int_t fnmatch; // Total matched tracks - Float_t fR; // Intermediate radius in TOF, used in matching - Float_t fTOFHeigth; // Inner TOF radius for propagation - Float_t fdCut; // Cut on minimum distance track-pad in matching - Float_t fDx; // Pad Size in X - Float_t fDy; // Pad Size in Y (== X TOF convention) - Float_t fDz; // Pad Size in Z - TClonesArray* fTracks; //! pointer to the TClonesArray with TOF tracks - TClonesArray* fSeeds; //! pointer to the TClonesArray with ESD tracks - TTreeSRedirector *fDebugStreamer; //!debug streamer - ClassDef(AliTOFtrackerMI, 1) // TOF trackerMI + Float_t fR; // Intermediate radius in TOF, used in matching + Float_t fTOFHeigth; // Inner TOF radius for propagation + Float_t fdCut; // Cut on minimum distance track-pad in matching + Float_t fDx; // Pad Size in X + Float_t fDy; // Pad Size in Y (== X TOF convention) + Float_t fDz; // Pad Size in Z + TClonesArray* fTracks; //! pointer to the TClonesArray with TOF tracks + TObjArray* fSeeds; //! pointer to the TObjArray with ESD tracks + TTreeSRedirector *fDebugStreamer; //!debug streamer + ClassDef(AliTOFtrackerMI, 3) // TOF trackerMI }; #endif