Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DFCALGeometry_factory.cc
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DFCALGeometry_factory.cc
4 // Created: Wed Aug 24 10:09:27 EST 2005
5 // Creator: shepherd (on Darwin 129-79-159-16.dhcp-bl.indiana.edu 8.2.0 powerpc)
6 //
7 
8 #include <cassert>
9 
10 #include "DFCALGeometry_factory.h"
11 #include "DFCALGeometry.h"
12 
13 //------------------
14 // brun
15 //------------------
16 jerror_t DFCALGeometry_factory::brun(JEventLoop *loop, int32_t runnumber)
17 {
18  assert( _data.size() == 0 );
19 
20  flags = PERSISTANT;
21  _data.push_back( new DFCALGeometry() );
22 
23  return NOERROR;
24 }
25 
26 //------------------
27 // erun
28 //------------------
30 {
31  for(unsigned int i=0; i<_data.size(); i++)delete _data[i];
32  _data.clear();
33 
34  return NOERROR;
35 }
36 
jerror_t brun(JEventLoop *loop, int32_t runnumber)