StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AgStarReader.h
1 #ifndef __AgStarReader_h__
2 #define __AgStarReader_h__
3 
4 #include "TObject.h"
5 class StarParticleData;
7 
15 class AgStarReader : public TObject
16 {
17  public:
18 
19  ~AgStarReader(){ /* nada */ };
20 
23  void SetStack( StarParticleStack *stack ){ mStack = stack; }
24 
26  void ReadEvent();
27 
29  static AgStarReader &Instance();
30 
31  void SetVert( Float_t *vertex, Int_t ntbeam, Int_t nttarg, Float_t *ubuf, Int_t nu, Int_t &nv );
32  void SetKine( Float_t *plab, Int_t idpart, Int_t nv, Float_t *ubuf, Int_t nb, Int_t &nt );
33 
34  private:
35  protected:
36 
37  // The particle stack
38  StarParticleStack *mStack;
39 
40  static AgStarReader *mInstance;
41  StarParticleData *mParticleData;
42 
43  AgStarReader();
44 
45 
46  ClassDef(AgStarReader,1);
47 
48 };
49 
50 #endif
void ReadEvent()
Read events from the particle stack and push them out to starsim.
static AgStarReader & Instance()
Return the single instance of this class.
Interface to PDG information.
Implementation of the VMC particle stack for use in STAR.
Pushes particles out from the StarParticleStack to geant3.
Definition: AgStarReader.h:15
void SetStack(StarParticleStack *stack)
Definition: AgStarReader.h:23