StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEEmcHitMakerSimple.h
1 
18 #ifndef _EEMC_HIT_MAKER_SIMPLE_H_
19 #define _EEMC_HIT_MAKER_SIMPLE_H_
20 
22 #include "StRoot/StEEmcUtil/EEmcGeom/EEmcGeomDefs.h"
23 
25 #include "StEEmcHitMaker.h"
26 #include "StEEmcTowerClusterFinder.h"
27 #include "StEEmcStripClusterFinder.h"
28 #include "StEEmcPointFinder.h"
29 #include "StEEmcEnergyApportioner.h"
30 
32  public:
34  StEEmcHitMakerSimple_t( const Char_t *myName, // name of this maker in the StMaker hash table
35  const Char_t *inputMakerName, // name of the keeper in charge of the response
36  StEEmcTowerClusterFinder_t* towerClusterFinder,
37  StEEmcStripClusterFinder_t* stripClusterFinder,
38  StEEmcPointFinder_t *pointFinder,
39  StEEmcEnergyApportioner_t *energyApportioner );
40 
42  virtual ~StEEmcHitMakerSimple_t();
43 
45  Int_t Init();
46 
48  Int_t Make();
49 
51  void Clear(Option_t *opts="");
52 
54  void setClusterStripsFirst( Bool_t doItFirst = 1 ){ mClusterStripsFirst = doItFirst; };
55 
56  protected:
59  StEEmcStripClusterFinder_t *mStripClusterFinder;
60  StEEmcPointFinder_t *mPointFinder;
61  StEEmcEnergyApportioner_t *mEnergyApportioner;
62 
63  Int_t clusterTowers();
64  Int_t clusterStrips();
65 
66  // whether to cluster towers before or after the SMD strips
67  Bool_t mClusterStripsFirst;
68 
69  // to keep track of total energy per layer
70  Double_t mSmdEuEvRatio[kEEmcNumSectors];
71 
72  private:
73  ClassDef( StEEmcHitMakerSimple_t, 1 );
74 };
75 
76 #endif
77 
78 /*
79  * $Id: StEEmcHitMakerSimple.h,v 1.2 2013/02/21 22:00:44 sgliske Exp $
80  * $Log: StEEmcHitMakerSimple.h,v $
81  * Revision 1.2 2013/02/21 22:00:44 sgliske
82  * general update
83  *
84  * Revision 1.1 2012/11/26 19:05:54 sgliske
85  * moved from offline/users/sgliske/StRoot/StEEmcPool/StEEmcHitMaker to StRoot/StEEmcPool/StEEmcHitMaker
86  *
87  *
88  */
Int_t Make()
Find all the hits.
void Clear(Option_t *opts="")
Clear for next event.
StEEmcHitMakerSimple_t(const Char_t *myName, const Char_t *inputMakerName, StEEmcTowerClusterFinder_t *towerClusterFinder, StEEmcStripClusterFinder_t *stripClusterFinder, StEEmcPointFinder_t *pointFinder, StEEmcEnergyApportioner_t *energyApportioner)
Construtor.
void setClusterStripsFirst(Bool_t doItFirst=1)
modifier
StEEmcTowerClusterFinder_t * mTowerClusterFinder
pointers to finders for subtasks
virtual ~StEEmcHitMakerSimple_t()
Deconstructor.
Include StRoot headers.