StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMyPointMaker.h
1 #ifndef __StMyPointMaker_h__
2 #define __StMyPointMaker_h__
3 
44 #include "StEEmcGenericPointMaker.h"
45 
47 {
48 public:
49 
50  StMyPointMaker(const Char_t *name="EEmcPointMaker", const StEEmcA2EMaker *a2e=NULL, const StEEmcGenericClusterMaker *cl=NULL );
51  virtual ~StMyPointMaker(){ /* nada */ };
52 
53  virtual Int_t Init();
54  virtual Int_t Make();
55  virtual void Clear(Option_t *opts="");
56 
57  void setSplit(Bool_t s = true){ mAllowSplitting=s; }
58  void setSplitMinimumET( Float_t et ){ mSplitMinimumET=et; }
59 
60  void setSmdMinFraction( Float_t f ){ mSmdMinFrac=f; }
61 
62 protected:
63 
64  Bool_t mAllowSplitting;
65  Float_t mSplitMinimumET;
66 
67  Float_t mSmdMinFrac;
69  Int_t mMaxClusterId; // maximal cluster ID assigned by a cluster maker. our new clusters will begin from this.
70 
73  Bool_t split( const StEEmcSmdCluster &in1, const StEEmcSmdCluster &in2, StEEmcSmdCluster &out1, StEEmcSmdCluster &out2, Float_t &chi2 );
74 
79  Bool_t AssociateClusters( const StEEmcSmdClusterVec_t &c1, StEEmcSmdClusterVec_t &c2 );
80 
81  Bool_t SplitClusters( StEEmcSmdClusterVec_t &c1, const StEEmcSmdClusterVec_t &c2 );
82 
84  Float_t energyChi2( const StEEmcSmdCluster &c1, const StEEmcSmdCluster &c2 ) const;
86  Float_t energyChi2( const StEEmcSmdCluster &c1, const StEEmcSmdCluster &c2, const StEEmcSmdCluster &c3 ) const;
87 
88  ClassDef(StMyPointMaker,1);
89 
90 };
91 
92 #endif
EEmc ADC –> energy maker.
Bool_t split(const StEEmcSmdCluster &in1, const StEEmcSmdCluster &in2, StEEmcSmdCluster &out1, StEEmcSmdCluster &out2, Float_t &chi2)
Float_t mSmdMinFrac
Bool_t AssociateClusters(const StEEmcSmdClusterVec_t &c1, StEEmcSmdClusterVec_t &c2)
virtual Int_t Make()
A base class for representing clusters of EEMC smd strips.
virtual void Clear(Option_t *opts="")
User defined functions.
Float_t energyChi2(const StEEmcSmdCluster &c1, const StEEmcSmdCluster &c2) const
Given two clusters, return (e1-e2)^2/nmips.