StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjMCParticleListReader.h
1 // -*- mode: c++;-*-
2 // $Id: StjMCParticleListReader.h,v 1.1 2008/08/22 17:25:33 tai Exp $
3 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4 #ifndef STJMCPARTICLELISTREADER_H
5 #define STJMCPARTICLELISTREADER_H
6 
7 #include "StjTreeReader.h"
8 
9 #include "StjMCParticleList.h"
10 
11 #include <Rtypes.h>
12 
14 
15 public:
16  StjMCParticleListReader(TTree *tree) : StjTreeReader(tree) { }
17  virtual ~StjMCParticleListReader() { }
18 
19  StjMCParticleList getMCParticleList() { return _list; }
20 
21 private:
22 
23  void SetBranchAddress(TTree *tree);
24 
25  void clearEntry();
26  void readEntry();
27 
28  StjMCParticleList _list;
29 
30  Int_t _runNumber;
31  Int_t _eventId;
32  Int_t _nMCParticles;
33  Int_t _mcparticleId[4096];
34  Int_t _pdg[4096];
35  Int_t _firstMotherId[4096];
36  Int_t _lastMotherId[4096];
37  Int_t _firstDaughterId[4096];
38  Int_t _lastDaughterId[4096];
39  Double_t _pt[4096];
40  Double_t _eta[4096];
41  Double_t _phi[4096];
42  Double_t _m[4096];
43  Double_t _e[4096];
44  Int_t _status[4096]; // 1: stable 2: unstable 3: incoming and parton
45  Double_t _vertexZ;
46 
47  ClassDef(StjMCParticleListReader, 1)
48 
49 };
50 
51 #endif // STJMCPARTICLELISTREADER_H