StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEmcMixerMaker.h
1 
23 #ifndef STAR_StEmcMixerMaker
24 #define STAR_StEmcMixerMaker
25 #include "StMaker.h"
26 #include "StMessMgr.h"
27 #include <TH1.h>
28 #include <TH2.h>
29 
30 #define NDETECTORS 4
31 #define NMODULES 120
32 #define MAXCHANNELS 18000
33 #define EMCCHANNELS 4800
34 #define SMDCHANNELS 18000
35 
36 
37 class StEvent;
38 class StEmcGeom;
39 class StEmcRawHit;
40 
41 class StEmcMixerMaker : public StMaker
42 {
43  private:
44  StEvent *mEvent1;
45  StEvent *mEvent2;
46  StEmcGeom *mGeom[NDETECTORS];
47 
48  Int_t mStatus[NDETECTORS][MAXCHANNELS];
49 
50  Bool_t mClear;
51  Bool_t mAddHits;
52  Bool_t mUseDB;
53  Bool_t mFakeTrackEmbed;
54  Bool_t mEmbedAll;
55 
56  TH1F *m_hit_1;
57  TH1F *m_hit_2;
58  TH1F *m_edep_1;
59  TH1F *m_edep_2;
60 
61  Int_t mEvent1Source;
62  Int_t mEvent2Source;
63 
64  virtual Int_t addHits();
65  virtual Int_t addTracks();
66  void clearPoints();
67  void clearClusters();
68  Bool_t getEvents();
69  void getDB();
70  Bool_t checkHit(Int_t, StEmcRawHit*);
71 
72  protected:
73 
74  public:
75 
76  StEmcMixerMaker(const char *name="emcEmbed");
77  virtual ~StEmcMixerMaker();
78  virtual Int_t Init();
79  virtual Int_t Make();
80  virtual Int_t Finish();
81 
82  void printHits(StEvent*);
83 
84  void setClear(Bool_t a) { mClear = a; }
85  void setAddFlag(Bool_t a) { mAddHits = a; }
86  void setFakeTrack(Bool_t a) { mFakeTrackEmbed = a; }
87  void setEmbedAll(Bool_t a) { mEmbedAll = a; }
88  void setPrint(Bool_t a) { LOG_INFO << "::setPrint() is obsolete. Use logger config file to set verbosity instead." << endm; }
89 
90  virtual const char *GetCVS() const {static const char cvs[]="Tag $Name: $ $Id: StEmcMixerMaker.h,v 1.6 2014/08/06 11:43:05 jeromel Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
91 
92  ClassDef(StEmcMixerMaker,0)
93 };
94 #endif
95 
96 
97 
98 
99 
100 
101 
102 
void printHits(StEvent *)
Prints all EMC hits in the StEvent object.
void setClear(Bool_t a)
Set kTRUE to clear EMC clusters and points.
void setPrint(Bool_t a)
Obsolete function; users can control messages with logger config file.
virtual Int_t Finish()
virtual Int_t Make()
void setEmbedAll(Bool_t a)
Set kTRUE to embedd all hits even if the first emcCollection has no hits.
void setAddFlag(Bool_t a)
Set kTRUE to embed hits.
void setFakeTrack(Bool_t a)
Set kTRUE to merge tracks.