StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjJetListWriter.h
1 // -*- mode: c++;-*-
2 // $Id: StjJetListWriter.h,v 1.8 2008/09/15 05:50:06 tai Exp $
3 #ifndef STJJETLISTWRITER_H
4 #define STJJETLISTWRITER_H
5 
6 #include <TObject.h>
7 
8 #include "StjFourVecList.h"
9 #include "StjJetList.h"
10 
11 #include <Rtypes.h>
12 
13 class TDirectory;
14 class TTree;
15 
16 
17 class StjJetListWriter : public TObject {
18 
19 public:
20 
21  StjJetListWriter(const char* jetTreeName, const char* jetFourVecTreeName, TDirectory* file);
22  virtual ~StjJetListWriter() { }
23 
24  void Fill(const StjJetList& jetList);
25  void Finish();
26 
27 private:
28 
29  void fillFourVecTree(int jetId, const StjFourVecList& fourVecList);
30 
31  TDirectory* _file;
32  TTree* _jetTree;
33  TTree* _jetFourVecTree;
34 
35  Int_t _jet_runNumber;
36  Int_t _jet_eventId;
37  Int_t _jet_nJets;
38  Int_t _jet_jetId[128];
39  Double_t _jet_pt[128];
40  Double_t _jet_eta[128];
41  Double_t _jet_phi[128];
42  Double_t _jet_m[128];
43  Double_t _jet_neuRt[128];
44  Double_t _jet_vertexZ;
45  Double_t _jet_detectorEta[128];
46 
47  Int_t _four_runNumber;
48  Int_t _four_eventId;
49  Int_t _four_nFourVecs;
50  Int_t _four_fourvecId[4096];
51  Int_t _four_jetId[4096];
52  Int_t _four_type[4096];
53  Int_t _four_detectorId[4096];
54  Short_t _four_trackId[4096];
55  Int_t _four_towerId[4096];
56  Int_t _four_mcparticleId[4096];
57  Double_t _four_pt[4096];
58  Double_t _four_eta[4096];
59  Double_t _four_phi[4096];
60  Double_t _four_m[4096];
61  Double_t _four_vertexZ;
62 
63  int _ifourvec;
64 
65  ClassDef(StjJetListWriter, 1)
66 
67 };
68 
69 #endif // STJJETLISTWRITER_H