StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjVertexReader.cxx
1 // $Id: StjVertexReader.cxx,v 1.1 2008/08/13 19:37:29 tai Exp $
2 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
3 #include "StjVertexReader.h"
4 
5 #include <TTree.h>
6 
7 ClassImp(StjVertexReader)
8 
9 void StjVertexReader::SetBranchAddress(TTree *tree)
10 {
11  tree->SetBranchAddress("runNumber" , &_runNumber );
12  tree->SetBranchAddress("eventId" , &_eventId );
13  tree->SetBranchAddress("vertexZ" , &_vertexZ );
14  tree->SetBranchAddress("vertexY" , &_vertexY );
15  tree->SetBranchAddress("vertexX" , &_vertexX );
16 }
17 
18 void StjVertexReader::clearEntry()
19 {
20  __runNumber = 0;
21  __eventId = 0;
22  __vertexZ = 0;
23  __vertexY = 0;
24  __vertexX = 0;
25 }
26 
27 void StjVertexReader::readEntry()
28 {
29  __runNumber = _runNumber;
30  __eventId = _eventId;
31  __vertexZ = _vertexZ;
32  __vertexY = _vertexY;
33  __vertexX = _vertexX;
34 }