00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef W_TPC_FILTER_HH
00010 #define W_TPC_FILTER_HH
00011
00012 #include <TString.h>
00013
00014 class TObjArray;
00015 class TH1;
00016 class StMuTrack ;
00017
00018 class WtpcFilter {
00019 public:
00020 WtpcFilter();
00021 void init(const char *core, int sec, TObjArray *HListX);
00022 void setCuts(int x, float y, float r1, float r2) {
00023 par_nFitPts=x; par_nHitFrac=y; par_Rmin=r1; par_Rmax=r2; }
00024 static int getTpcSec(float phiRad, float etaDet);
00025 bool accept( const StMuTrack *prMuTrack);
00026
00027 private:
00028 TString name;
00029 int secID;
00030 int par_nFitPts;
00031 float par_nHitFrac, par_Rmin, par_Rmax;
00032
00033
00034 TObjArray *HList;
00035 enum {mxHA=8}; TH1 * hA[mxHA];
00036 void initHistos();
00037
00038 };
00039
00040
00041 #endif
00042
00043
00044
00045
00046
00047