StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjMCParticleListWriter.h
1 // -*- mode: c++;-*-
2 // $Id: StjMCParticleListWriter.h,v 1.6 2008/08/22 18:36:32 tai Exp $
3 #ifndef STJMCPARTICLELISTWRITER_H
4 #define STJMCPARTICLELISTWRITER_H
5 
6 #include <TObject.h>
7 
8 #include "StjMCParticleList.h"
9 #include <Rtypes.h>
10 
11 class TDirectory;
12 class TTree;
13 
14 class StjMCParticleListWriter : public TObject {
15 
16 public:
17 
18  StjMCParticleListWriter(const char* treeName, TDirectory* file);
19  virtual ~StjMCParticleListWriter() { }
20 
21  void Fill(const StjMCParticleList& theList);
22  void Finish();
23 
24 private:
25 
26  TDirectory* _file;
27  TTree* _tree;
28 
29  Int_t _runNumber;
30  Int_t _eventId;
31  Int_t _nMCParticles;
32  Int_t _mcparticleId[4096];
33  Int_t _pdg[4096];
34  Int_t _firstMotherId[4096];
35  Int_t _lastMotherId[4096];
36  Int_t _firstDaughterId[4096];
37  Int_t _lastDaughterId[4096];
38  Double_t _pt[4096];
39  Double_t _eta[4096];
40  Double_t _phi[4096];
41  Double_t _m[4096];
42  Double_t _e[4096];
43  Int_t _status[4096]; // 1: stable 2: unstable 3: incoming and parton
44  Double_t _vertexZ;
45 
46  ClassDef(StjMCParticleListWriter, 1)
47 
48 };
49 
50 #endif // STJMCPARTICLELISTWRITER_H