StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjSpinMaker.C
1 #include "StMaker.h"
2 
3 #include "StjSpinMuDst.h"
4 
5 #include "StjSpinWriter.h"
6 
7 #include <TDirectory.h>
8 
9 class StjSpinMaker : public StMaker {
10 
11 public:
12 
13  StjSpinMaker(const Char_t *name, TDirectory* file, StMuDstMaker* uDstMaker)
14  : StMaker(name), _file(file), _uDstMaker(uDstMaker)
15  { }
16 
17  virtual ~StjSpinMaker() { }
18 
19  const char* GetCVS() const
20  {static const char cvs[]="Tag $Name: $ $Id: StjSpinMaker.C,v 1.3 2014/08/06 11:43:24 jeromel Exp $ built " __DATE__ " " __TIME__; return cvs;}
21 
22 private:
23 
24  TDirectory* _file;
25 
26  StjSpin* _spin;
27 
28  StjSpinWriter* _writer;
29 
30  StMuDstMaker* _uDstMaker;
31 public:
32 
33  Int_t Init()
34  {
35  _spin = new StjSpinMuDst(_uDstMaker);
36  _writer = new StjSpinWriter("spin", "spin", _file, _spin);
37  _writer->Init();
38  return kStOk;
39  }
40 
41  Int_t Make()
42  {
43  _writer->Make();
44  return kStOk;
45  }
46 
47  Int_t Finish()
48  {
49  _writer->Finish();
50  return kStOk;
51  }
52  ClassDef(StjSpinMaker, 0)
53 };
StMaker(const char *name="", const char *dummy=0)
Constructor &amp; Destructor.
Definition: StMaker.cxx:188
Int_t Make()
Definition: StjSpinMaker.C:41
Definition: StjSpin.h:9
Definition: Stypes.h:41
Int_t Finish()
Definition: StjSpinMaker.C:47