StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StGammaEventMaker.h
1 // //
3 // StGammaEventMaker //
4 // //
5 // First StGamma maker in the chain, responsible for //
6 // creating the StGammaEvent and filling with basic //
7 // event information. Other StGamma makers will //
8 // access the StGammaEvent to add further information. //
9 // //
10 // Original concept and implementation by Jason //
11 // Webb (Valpo) and Pibero Djawatho (IUCF) //
12 // //
14 
15 #ifndef STAR_StGammaEventMaker
16 #define STAR_StGammaEventMaker
17 
18 #include <vector>
19 
20 #include <StMaker.h>
21 #include "StEEmcUtil/EEmcGeom/EEmcGeomDefs.h"
22 
23 class StGammaEvent;
24 
25 class StGammaTower;
26 class StGammaStrip;
27 
28 class StGammaPythiaEvent;
30 
31 class StMuDstMaker;
32 
34 {
35 
36  public:
37 
38  StGammaEventMaker(const char *name = "mGammaMaker");
40 
41  virtual const char* GetCVS() const
42  {static const char cvs[] = "Tag $Name: $ $Id: StGammaEventMaker.h,v 1.8 2014/08/06 11:43:18 jeromel Exp $ built " __DATE__ " " __TIME__; return cvs; }
43 
44  // Required Maker Methods
45  Int_t Init();
46  void Clear( Option_t *opts= "");
47  Int_t Make();
48  Int_t Finish() { return StMaker::Finish(); }
49 
50  StGammaEvent *event() { return mGammaEvent; }
51  void addSimuTrigger(unsigned int triggerId) { mRequestedTriggers.push_back(triggerId); }
52 
53  private:
54 
55  StGammaEvent *mGammaEvent;
56  StGammaPythiaEvent* mPythia;
57  StGammaPythiaEventMaker* mPythiaMaker;
58  StMuDstMaker *muDstMaker;
59  vector<unsigned int> mRequestedTriggers;
60 
61  ClassDef(StGammaEventMaker, 1);
62 
63 };
64 
65 #endif
void Clear(Option_t *opts="")
User defined functions.
virtual Int_t Finish()
Definition: StMaker.cxx:776