StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEStructEventWriter.cxx
1 /**********************************************************************
2  *
3  * $Id: StEStructEventWriter.cxx,v 1.1 2003/10/15 18:20:32 porter Exp $
4  *
5  * Author: Jeff Porter
6  *
7  **********************************************************************
8  *
9  * Description: StEStructAnalysis implementation which writes EStruct
10  * MuDsts using the StEStructEventMaker class
11  *
12  ***********************************************************************/
13 #include "StEStructEventWriter.h"
14 
15 #include "StEStructPool/EventMaker/StEStructEventMaker.h"
16 #include "StEStructPool/EventMaker/StEStructEvent.h"
17 
18 
19 void StEStructEventWriter::setOutputFileName(const char* fname){
20  if(!myMaker) return;
21  myMaker->setOutputFile(fname);
22 }
23 
24 void StEStructEventWriter::finish(){
25 
26  if(myMaker) myMaker->Finish();
27 
28 };
29 
30 
31 bool StEStructEventWriter::doEvent(StEStructEvent* e){
32  return myMaker->writeEvent(e);
33 }
34 
35 /***********************************************************************
36  *
37  * $Log: StEStructEventWriter.cxx,v $
38  * Revision 1.1 2003/10/15 18:20:32 porter
39  * initial check in of Estruct Analysis maker codes.
40  *
41  *
42  *********************************************************************/