X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITStrackerMI.h;h=e38b229af966cbcde46cf3066c979996e0e79bb2;hb=7ef60110a0cbba8e1205f12967ffacb6ecbc9ce7;hp=7ec767ba3c46d5e6be748b55bfb1a91b25c33c20;hpb=9a5326b1228b007e974a949f99f94ff8f4a2e792;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITStrackerMI.h b/ITS/AliITStrackerMI.h index 7ec767ba3c4..e38b229af96 100644 --- a/ITS/AliITStrackerMI.h +++ b/ITS/AliITStrackerMI.h @@ -1,24 +1,34 @@ #ifndef ALIITSTRACKERMI_H #define ALIITSTRACKERMI_H -/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * +/* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ +/* $Id$ */ //------------------------------------------------------------------------- // ITS tracker // reads AliITSclusterMI clusters and creates AliITStrackMI tracks // Origin: Marian Ivanov, CERN, Marian.Ivanov@cern.ch +// Current support and development: +// Andrea Dainese, andrea.dainese@lnl.infn.it //------------------------------------------------------------------------- class TTree; class TTreeSRedirector; class AliESDEvent; +class AliITSPlaneEff; +class AliITSChannelStatus; +class AliITSDetTypeRec; +class AliPlaneEff; + #include -#include "AliITSRecPoint.h" + #include "AliITStrackMI.h" +#include "AliITSRecPoint.h" #include "AliTracker.h" + //------------------------------------------------------------------------- class AliITStrackerMI : public AliTracker { public: @@ -35,67 +45,92 @@ public: {return fgLayers[layn].GetNumberOfClusters();} Int_t LoadClusters(TTree *cf); void UnloadClusters(); + void FillClusterArray(TObjArray* array) const; Int_t Clusters2Tracks(AliESDEvent *event); Int_t PropagateBack(AliESDEvent *event); Int_t RefitInward(AliESDEvent *event); - Bool_t RefitAt(Double_t x, AliITStrackMI *seed, - const AliITStrackMI *t, Bool_t extra=kFALSE); - Bool_t RefitAt(Double_t x, AliITStrackMI *seed, const Int_t *clindex); - void SetupFirstPass(Int_t *flags, Double_t *cuts=0); - void SetupSecondPass(Int_t *flags, Double_t *cuts=0); + Bool_t RefitAt(Double_t x, AliITStrackMI *track, + const AliITStrackMI *clusters, Bool_t extra=kFALSE, Bool_t planeeff=kFALSE); + Bool_t RefitAt(Double_t x, AliITStrackMI *track, + const Int_t *clusters, Bool_t extra=kFALSE, Bool_t planeeff=kFALSE); + void SetupFirstPass(const Int_t *flags,const Double_t *cuts=0); + void SetupSecondPass(const Int_t *flags,const Double_t *cuts=0); void SetLastLayerToTrackTo(Int_t l=0) {fLastLayerToTrackTo=l;} - void SetLayersNotToSkip(Int_t *l); void UseClusters(const AliKalmanTrack *t, Int_t from=0) const; - void GetNTeor(Int_t layer, const AliITSRecPoint* cl, Float_t theta, Float_t phi, Float_t &ny, Float_t &nz); - Int_t GetError(Int_t layer, const AliITSRecPoint*cl, Float_t theta, Float_t phi, Float_t expQ, Float_t &erry, Float_t &errz); - void GetDCASigma(AliITStrackMI* track, Float_t & sigmarfi, Float_t &sigmaz); + void GetDCASigma(const AliITStrackMI* track, Float_t & sigmarfi, Float_t &sigmaz); Double_t GetPredictedChi2MI(AliITStrackMI* track, const AliITSRecPoint *cluster,Int_t layer); Int_t UpdateMI(AliITStrackMI* track, const AliITSRecPoint* cl,Double_t chi2,Int_t layer) const; + AliPlaneEff *GetPlaneEff() {return (AliPlaneEff*)fPlaneEff;} // return the pointer to AliPlaneEff + void SetDetTypeRec(const AliITSDetTypeRec *detTypeRec) {fkDetTypeRec = detTypeRec; ReadBadFromDetTypeRec(); } + TObjArray* GetTrackHypothesys() {return &fTrackHypothesys;} + TObjArray* GetBestHypothesys() {return &fBestHypothesys;} + TObjArray* GetOriginal() {return &fOriginal;} + TTreeSRedirector *GetDebugStreamer() {return fDebugStreamer;} + static Int_t CorrectForTPCtoITSDeadZoneMaterial(AliITStrackMI *t); + void SetForceSkippingOfLayer(); + Int_t ForceSkippingOfLayer(Int_t l) const { return fForceSkippingOfLayer[l]; } + class AliITSdetector { public: - AliITSdetector():fR(0),fPhi(0),fSinPhi(0),fCosPhi(0),fYmin(0),fYmax(0),fZmin(0),fZmax(0){} - AliITSdetector(Double_t r,Double_t phi):fR(r),fPhi(phi),fSinPhi(TMath::Sin(phi)),fCosPhi(TMath::Cos(phi)),fYmin(10000),fYmax(-1000),fZmin(10000),fZmax(-1000) {} + AliITSdetector():fR(0),fRmisal(0),fPhi(0),fSinPhi(0),fCosPhi(0),fYmin(0),fYmax(0),fZmin(0),fZmax(0),fIsBad(kFALSE),fNChips(0),fChipIsBad(0) {} + AliITSdetector(Double_t r,Double_t phi):fR(r),fRmisal(r),fPhi(phi),fSinPhi(TMath::Sin(phi)),fCosPhi(TMath::Cos(phi)),fYmin(10000),fYmax(-1000),fZmin(10000),fZmax(-1000),fIsBad(kFALSE),fNChips(0),fChipIsBad(0) {} + ~AliITSdetector() {if(fChipIsBad) delete [] fChipIsBad;} inline void GetGlobalXYZ( const AliITSRecPoint *cl, Double_t xyz[3]) const; Double_t GetR() const {return fR;} + Double_t GetRmisal() const {return fRmisal;} Double_t GetPhi() const {return fPhi;} Double_t GetYmin() const {return fYmin;} Double_t GetYmax() const {return fYmax;} Double_t GetZmin() const {return fZmin;} Double_t GetZmax() const {return fZmax;} + Bool_t IsBad() const {return fIsBad;} + Int_t GetNChips() const {return fNChips;} + Bool_t IsChipBad(Int_t iChip) const {return (fChipIsBad ? fChipIsBad[iChip] : kFALSE);} + void SetRmisal(Double_t rmisal) {fRmisal = rmisal;} void SetYmin(Double_t min) {fYmin = min;} void SetYmax(Double_t max) {fYmax = max;} void SetZmin(Double_t min) {fZmin = min;} void SetZmax(Double_t max) {fZmax = max;} + void SetBad() {fIsBad = kTRUE;} + void ReadBadDetectorAndChips(Int_t ilayer,Int_t idet,const AliITSDetTypeRec *detTypeRec); private: - Double_t fR; // polar coordinates - Double_t fPhi; // of this detector + AliITSdetector(const AliITSdetector& det); + AliITSdetector & operator=(const AliITSdetector& det){ + this->~AliITSdetector();new(this) AliITSdetector(det); + return *this;} + Double_t fR; // polar coordinates: r + Double_t fRmisal; // polar coordinates: r, with misalignment + Double_t fPhi; // polar coordinates: phi Double_t fSinPhi; // sin of phi; Double_t fCosPhi; // cos of phi Double_t fYmin; // local y minimal Double_t fYmax; // local max y Double_t fZmin; // local z min Double_t fZmax; // local z max + Bool_t fIsBad; // is detector dead or noisy? + Int_t fNChips; // number of chips + Bool_t *fChipIsBad; //[fNChips] is chip dead or noisy? }; class AliITSlayer { public: AliITSlayer(); AliITSlayer(Double_t r, Double_t p, Double_t z, Int_t nl, Int_t nd); - ~AliITSlayer(); + ~AliITSlayer(); Int_t InsertCluster(AliITSRecPoint *c); void SortClusters(); void ResetClusters(); void ResetWeights(); - void SelectClusters(Double_t zmi,Double_t zma,Double_t ymi,Double_t yma); - const AliITSRecPoint *GetNextCluster(Int_t &ci); + void SelectClusters(Double_t zmin,Double_t zmax,Double_t ymin,Double_t ymax); + const AliITSRecPoint *GetNextCluster(Int_t &ci,Bool_t test=kFALSE); void ResetRoad(); Double_t GetRoad() const {return fRoad;} Double_t GetR() const {return fR;} Int_t FindClusterIndex(Float_t z) const; AliITSRecPoint *GetCluster(Int_t i) const {return iGetY()*fCosPhi; } #endif +