StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjJetListReader.h
1 // -*- mode: c++;-*-
2 // $Id: StjJetListReader.h,v 1.2 2009/12/03 09:57:36 pibero Exp $
3 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4 #ifndef STJJETLISTREADER_H
5 #define STJJETLISTREADER_H
6 
7 #include "StjTreeReaderTwoTrees.h"
8 
9 #include <StjJetList.h>
10 
11 #include <Rtypes.h>
12 
14 
15 public:
16  StjJetListReader(TTree *jettree, TTree *fourtree)
17  : StjTreeReaderTwoTrees(jettree, fourtree) { }
18  virtual ~StjJetListReader() { }
19 
20  StjJetList getList() { return _list; }
21 
22 private:
23 
24  void SetBranchAddress(TTree* tree) { StjTreeReaderTwoTrees::SetBranchAddress(tree); }
25  void SetBranchAddress(TTree *jettree, TTree *fourtree);
26 
27  void clearEntry();
28  void readEntry();
29 
30  StjJetList _list;
31 
32  Int_t _jet_runNumber;
33  Int_t _jet_eventId;
34  Int_t _jet_nJets;
35  Int_t _jet_jetId[128];
36  Double_t _jet_pt[128];
37  Double_t _jet_eta[128];
38  Double_t _jet_phi[128];
39  Double_t _jet_m[128];
40  Double_t _jet_neuRt[128];
41  Double_t _jet_vertexZ;
42  Double_t _jet_detectorEta[128];
43 
44  Int_t _four_runNumber;
45  Int_t _four_eventId;
46  Int_t _four_nFourVecs;
47  Int_t _four_fourvecId[4096];
48  Int_t _four_jetId[4096];
49  Int_t _four_type[4096];
50  Int_t _four_detectorId[4096];
51  Short_t _four_trackId[4096];
52  Int_t _four_towerId[4096];
53  Int_t _four_mcparticleId[4096];
54  Double_t _four_pt[4096];
55  Double_t _four_eta[4096];
56  Double_t _four_phi[4096];
57  Double_t _four_m[4096];
58  Double_t _four_vertexZ;
59 
60  ClassDef(StjJetListReader, 1)
61 
62 };
63 
64 #endif // STJJETLISTREADER_H