StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
HitMergingPairCut.h
1 /***************************************************************************
2  *
3  * $Id: HitMergingPairCut.h,v 1.1 2001/12/14 23:11:27 fretiere Exp $
4  *
5  * Author: Fabrice Retiere
6  ***************************************************************************
7  *
8  * Description: Allow to cut on hit merging
9  * Usage :
10  * HitMergingPairCut* pairCut = new HitMergingPairCut();
11  * pairCut->setDefaultHalfFieldMergingPar();
12  * pairCut->setMaxFracOfMergedRow(MaxMergedHit);
13  *
14  ***************************************************************************
15  *
16  * $Log: HitMergingPairCut.h,v $
17  * Revision 1.1 2001/12/14 23:11:27 fretiere
18  * Add class HitMergingCut. Add class fabricesPairCut = HitMerginCut + pair purity cuts. Add TpcLocalTransform function which convert to local tpc coord (not pretty). Modify StHbtTrack, StHbtParticle, StHbtHiddenInfo, StHbtPair to handle the hit information and cope with my code
19  *
20  *
21  **************************************************************************/
22 
23 #ifndef HitMergingPairCut_hh
24 #define HitMergingPairCut_hh
25 
26 // do I need these lines ?
27 //#ifndef StMaker_H
28 //#include "StMaker.h"
29 //#endif
30 
31 #include <sstream>
32 
33 #include "StHbtMaker/Base/StHbtPairCut.h"
34 
36 public:
39  //~HitMergingPairCut();
40 
41  virtual bool Pass(const StHbtPair*);
42  virtual StHbtString Report();
43  HitMergingPairCut* Clone();
44 
45  void setMaxFracOfMergedRow(double aMaxFracPair);
46  void setMergingPar(double aMaxDuInner, double aMaxDzInner,
47  double aMaxDuOuter, double aMaxDzOuter);
48  void setDefaultHalfFieldMergingPar();
49  void setDefaultFullFieldMergingPar();
50 
51  virtual std::ostringstream* finalReport() const;
52 
53 protected:
54  long mNPairsPassed;
55  long mNPairsFailed;
56 
57  double mMaxFracPair;
58 #ifdef __ROOT__
59  ClassDef(HitMergingPairCut, 1)
60 #endif
61 };
62 
63 inline HitMergingPairCut::HitMergingPairCut(const HitMergingPairCut& c) : StHbtPairCut(c) {
64  mNPairsPassed = 0;
65  mNPairsFailed = 0;
66 
67 }
68 inline HitMergingPairCut* HitMergingPairCut::Clone() { HitMergingPairCut* c = new HitMergingPairCut(*this); return c;}
69 inline void HitMergingPairCut::setMaxFracOfMergedRow(double aMaxFracPair){
70  mMaxFracPair=aMaxFracPair;
71 }
72 
73 #endif