#include "AliITStrackMI.h"
#include "AliITSRecPoint.h"
#include "AliTracker.h"
-
+#include "AliRefArray.h"
//-------------------------------------------------------------------------
class AliITStrackerMI : public AliTracker {
void SetupSecondPass(const Int_t *flags,const Double_t *cuts=0);
void SetLastLayerToTrackTo(Int_t l=0) {fLastLayerToTrackTo=l;}
- void SetLayersNotToSkip(const Int_t *l);
void UseClusters(const AliKalmanTrack *t, Int_t from=0) const;
void GetDCASigma(const AliITStrackMI* track, Float_t & sigmarfi, Float_t &sigmaz);
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;}
+ TObjArray* GetTrackHypothesys() {return &fTrackHypothesys;}
+ TObjArray* GetBestHypothesys() {return &fBestHypothesys;}
+ TObjArray* GetOriginal() {return &fOriginal;}
+ TTreeSRedirector *GetDebugStreamer() const {return fDebugStreamer;}
static Int_t CorrectForTPCtoITSDeadZoneMaterial(AliITStrackMI *t);
-
+ void SetForceSkippingOfLayer();
+ Int_t ForceSkippingOfLayer(Int_t l) const { return fForceSkippingOfLayer[l]; }
+ //
+ // methods for debugging (RS) >>
+ Int_t FindClusterOfTrack(int label, int lr, int* store) const;
+ // Int_t GetPattern(const AliITStrackMI* track, char* patt);
+ // methods for debugging (RS) <<
+ //
class AliITSdetector {
public:
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) {}
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 i<fN? fClusters[i]:0;}
- Float_t *GetWeight(Int_t i) {return i<fN ?&fClusterWeight[i]:0;}
+ AliITSRecPoint *GetCluster(Int_t i) const {return i<fN ? fClusters[i]:0;}
+ Float_t *GetWeight(Int_t i) {return i<fN ? &fClusterWeight[i]:0;}
AliITSdetector &GetDetector(Int_t n) const { return fDetectors[n]; }
Int_t FindDetectorIndex(Double_t phi, Double_t z) const;
Double_t GetThickness(Double_t y, Double_t z, Double_t &x0) const;
Int_t GetAccepted() const {return fAccepted;}
Int_t GetClusterTracks(Int_t i, Int_t j) const {return fClusterTracks[i][j];}
void SetClusterTracks(Int_t i, Int_t j, Int_t c) {fClusterTracks[i][j]=c;}
+ Int_t FindClusterForLabel(Int_t label, Int_t *store); //RS
protected:
AliITSlayer(const AliITSlayer& layer);
AliITSlayer & operator=(const AliITSlayer& layer){
//
Float_t fClusterWeight[AliITSRecoParam::fgkMaxClusterPerLayer]; // probabilistic weight of the cluster
Int_t fClusterTracks[4][AliITSRecoParam::fgkMaxClusterPerLayer]; //tracks registered to given cluster
+ Float_t fZmin; // the
Float_t fZmax; // edges
Float_t fYmin; // of the
Float_t fYmax; // "window"
Int_t fSkip; // indicates possibility to skip cluster
Int_t fAccepted; // accept indicator
Double_t fRoad; // road defined by the cluster density
+ Double_t fMaxSigmaClY; // maximum cluster error Y (to enlarge road)
+ Double_t fMaxSigmaClZ; // maximum cluster error Z (to enlarge road)
+ Double_t fNMaxSigmaCl; // number of sigma for road enlargement
};
AliITStrackerMI::AliITSlayer & GetLayer(Int_t layer) const;
AliITStrackerMI::AliITSdetector & GetDetector(Int_t layer, Int_t n) const {return GetLayer(layer).GetDetector(n); }
Int_t GetNearestLayer(const Double_t *xr) const; //get nearest upper layer close to the point xr
void SetCurrentEsdTrack(Int_t i) {fCurrentEsdTrack=i;}
void FollowProlongationTree(AliITStrackMI * otrack, Int_t esdindex, Bool_t constrain);
-
+ //
+ void FlagFakes(TObjArray &itsTracks);
+ //
protected:
Bool_t ComputeRoad(AliITStrackMI* track,Int_t ilayer,Int_t idet,Double_t &zmin,Double_t &zmax,Double_t &ymin,Double_t &ymax) const;
-
- void FindV02(AliESDEvent *event); //try to find V0
- void RefitV02(const AliESDEvent *event); //try to refit V0's
- void UpdateTPCV0(const AliESDEvent *event); //try to update, or reject TPC V0s
-
+
void CookLabel(AliKalmanTrack *t,Float_t wrong) const;
void CookLabel(AliITStrackMI *t,Float_t wrong) const;
Double_t GetEffectiveThickness();
+ Int_t GetEffectiveThicknessLbyL(Double_t* xMS, Double_t* x2x0MS);
void ResetBestTrack() {
fBestTrack.~AliITStrackMI();
new(&fBestTrack) AliITStrackMI(fTrackToFollow);
Int_t fPass; // current pass through the data
Int_t fConstraint[2]; // constraint flags
Bool_t fAfterV0; //indicates V0 founded
- Int_t fLayersNotToSkip[AliITSgeomTGeo::kNLayers]; // layer masks
+ Int_t fForceSkippingOfLayer[AliITSgeomTGeo::kNLayers]; // layers to be skipped
Int_t fLastLayerToTrackTo; // the innermost layer to track to
Float_t * fCoefficients; //! working array with errors and mean cluster shape
AliESDEvent * fEsd; //! pointer to the ESD event
TString fTrackingPhase; // current tracking phase
Int_t fUseTGeo; // use TGeo to get material budget
Int_t fNtracks; // number of tracks to prolong
+ Bool_t fFlagFakes; // request fakes flagging
+ Bool_t fSelectBestMIP03; // use Chi2MIP[0]*Chi2MIP[3] in hypothesis analysis instead of Chi2MIP[0]
+ Bool_t fUseImproveKalman; // use Kalman version of Improve
Float_t fxOverX0Pipe; // material budget
Float_t fxTimesRhoPipe; // material budget
Float_t fxOverX0Shield[2]; // material budget
AliITSChannelStatus *fITSChannelStatus;//! bitmaps with channel status for SPD and SDD
const AliITSDetTypeRec *fkDetTypeRec; //! ITS det type rec, from AliITSReconstructor
AliITSPlaneEff *fPlaneEff; //! Pointer to the ITS plane efficicency
+ //
private:
AliITStrackerMI(const AliITStrackerMI &tracker);
AliITStrackerMI & operator=(const AliITStrackerMI &tracker);
- ClassDef(AliITStrackerMI,7) //ITS tracker MI
+ ClassDef(AliITStrackerMI,9) //ITS tracker MI
};
// positive means "normal constraint"
fConstraint[0]=flags[0];
- if (cuts==0) return;
+ if (!cuts) return;
}
inline void AliITStrackerMI::SetupSecondPass(const Int_t *flags,const Double_t *cuts) {
// positive means "normal constraint"
fConstraint[1]=flags[0];
- if (cuts==0) return;
+ if (!cuts) return;
}
inline void AliITStrackerMI::CookLabel(AliKalmanTrack *t,Float_t wrong) const {