StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StCustomFilter.h
1 // Author: Victor Perev 08/04/01
2 #ifndef ROOT_StCustomFilter
3 #define ROOT_StCustomFilter
4 
5 
7 // //
8 // StCustomFilter //
9 // //
10 // //
12 
13 #include "StEventHelper.h"
14 
15 class StEvent;
16 class StTrack;
17 class StarClassLibrary;
18 class BetheBloch;
19 
20 
21 //______________________________________________________________________________
22 
23 class StCustomFilter : public StFilterABC { // An example of default filter
24 public:
25  StCustomFilter(const char *name,bool active=true);
26  ~StCustomFilter();
27 virtual float *GetPars() const {return (float*)(&fFirst+1);}
28 virtual const float *GetDefs() const;
29 virtual const char **GetNams() const;
30 
31 protected:
32  virtual Int_t Accept(StPoints3DABC *pnt) {;}
33  virtual Int_t AcceptCB(StPoints3DABC *pnt, Color_t&, Size_t&, Style_t&);
34 private:
35  Int_t Accept(const StTrack *track); // proxy for /StMuDSTMaker/COMMON/StMStMuL3Filter
36 
37 protected:
38  BetheBloch* mBB;
39 
40 private:
41  float fFirst; // do not touch this data member
42 
43  // --
44  // This filter custom data members go here:
45  // --
46  float fpCutHigh; // high momentum cut for RICH/Upsilon candidates
47  float fnHitsCutHighP; // nHits cut for all tracks
48 
49  // following cuts apply only for tracks with pCutLow < p <pHigh
50  float fpCutLow; // low momentum cut
51  float fnHitsCutLowP;
52  float fchargeForLowP; // charge for tracks with pCutLow < p < pCutHigh, set to 0 for all tracks
53  float fdEdxMassCutHigh; // cut below BetheBloch(p/dEdxMassCutHigh), e.g. proton-band
54  float fdEdxFractionCutHigh; // cut fraction of dEdx-band, i.e. dEdxFractionCut * BetheBloch(p/dEdxMassCut)
55  float fdEdxMassCutLow; // cut above BetheBloch(p/dEdxMassCutLow), e.g. kaon-band
56  float fdEdxFractionCutLow;
57  // -- the last custom data-member --
58 
59  float fLast; // do not touch this data member
60 
61  ClassDef(StCustomFilter,0)
62 };
63 
64 #endif //ROOT_StCustomFilter