// -*- mode: c++ -*- // // $Id: BrTpcTrackFollowModule.h,v 1.1.1.1 2001/06/21 14:55:13 hagel Exp $ // $Author: hagel $ // $Date: 2001/06/21 14:55:13 $ // $Copyright: (C) 2001 BRAHMS Collaboration // #ifndef BRAT_BrTpcTrackFollowModule #define BRAT_BrTpcTrackFollowModule #ifndef ROOT_TH1 #include "TH1.h" #endif #ifndef ROOT_TH2 #include "TH2.h" #endif #ifndef BRAT_BrTpcTrackModule #include "BrTpcTrackModule.h" #endif #ifndef BRAT_BrEventNode #include "BrEventNode.h" #endif #ifndef BRAT_BrDetectorVolume #include "BrDetectorVolume.h" #endif class BrTpcTrackFollowModule : public BrTpcTrackModule { private: Float_t fSearchWidthX; // search width in x direction Float_t fSearchWidthY; // search width in y direction Int_t fMaxRowsMissed; // max number of rows allowed to miss BrDetectorVolume *fTpcVolume; // TPC detector volume pointer // histograms TH1F *hHitSearchDx; // The pad hit distribtuion at the proj TH2F *hHitRowSearchDx; // The pad hit dist vs row at the proj TH1F *hHitSearchDy; // The time hit distribtuion at the proj TH2F *hHitRowSearchDy; // The time hit dist vs row at the proj TH1F *hHitAcceptedDx; // The pad hit dist for accepted hits TH2F *hHitRowAcceptedDx; // The pad hit dist vs row for acc hits TH1F *hHitAcceptedDy; // The time hit dist for accepted hits TH2F *hHitRowAcceptedDy; // The time hit dist vs row for acc hits virtual void FindHitsNextRow(const Int_t rowNo, const Float_t *proj, const Float_t dx1, const Float_t dx2, const Float_t dy1, const Float_t dy2, TObjArray &FoundHits); virtual void FindTracks(); virtual void FindTracksFromRow(const Int_t istart, const Int_t ilast); void TrackSingleHit(const Int_t istart, const Int_t ilast); public: BrTpcTrackFollowModule(); BrTpcTrackFollowModule(const Char_t* name, const Char_t* title); virtual ~BrTpcTrackFollowModule () {} virtual void DefineHistograms(); virtual void Event(BrEventNode* inNode, BrEventNode* outNode); virtual Int_t GetMaxRowsMissed() const {return fMaxRowsMissed;} virtual Double_t GetSearchWidthX() const {return fSearchWidthX;} virtual Double_t GetSearchWidthY() const {return fSearchWidthY;} virtual void Init(); virtual void Print(Option_t* option="B") const; // *MENU* virtual void SetMaxRowsMissed(Int_t val = 3) {fMaxRowsMissed = val;} virtual void SetSearchWidthX(Double_t val = 0.2) {fSearchWidthX=val;} virtual void SetSearchWidthY(Double_t val = 0.4) {fSearchWidthY=val;} ClassDef(BrTpcTrackFollowModule,0) // BRAT tpc track follow module }; #endif //____________________________________________________________________ // // $Log: BrTpcTrackFollowModule.h,v $ // Revision 1.1.1.1 2001/06/21 14:55:13 hagel // Initial revision of brat2 // // Revision 1.1 2001/06/17 17:41:47 pchristi // The new tracking classes. // //