00001 #ifndef CDBROOTABLE_NTUPLE_SIMPLE_IMPL_R_RDL
00002 #define CDBROOTABLE_NTUPLE_SIMPLE_IMPL_R_RDL
00003
00004
00005
00006
00007 #include "CdbRooTable/CdbRooNTupleR.hh"
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 template< class E >
00018 class CdbRooNTupleSimpleImplR : public CdbRooNTupleR<E> {
00019
00020 public:
00021
00022
00023
00024
00025
00026
00027 CdbRooNTupleSimpleImplR( );
00028
00029
00030
00031
00032
00033
00034 CdbRooNTupleSimpleImplR( UInt_t theNumberOfColumns,
00035 const std::string& theName,
00036 const std::string& theDescription,
00037 const std::vector<std::string>& theColumnNames );
00038
00039
00040
00041 virtual ~CdbRooNTupleSimpleImplR ( );
00042
00043
00044
00045
00046
00047
00048
00049 virtual UInt_t rows( ) const { return _data.size( ); }
00050
00051
00052
00053
00054
00055
00056
00057 virtual CdbStatus get_row( std::vector<E>& theRow,
00058 const UInt_t theNumber ) const;
00059
00060
00061
00062
00063
00064
00065
00066 virtual CdbStatus append_row( const std::vector<E>& theRow );
00067
00068 private:
00069
00070
00071
00072 std::vector< std::vector<E> > _data;
00073
00074 ClassDefT(CdbRooNTupleSimpleImplR<E>,1);
00075 };
00076
00077
00078
00079 #ifndef __CINT__
00080 #ifdef BABAR_COMP_INST
00081 #include "CdbRooTable/CdbRooNTupleSimpleImplR.cc"
00082 #endif
00083 #endif
00084
00085 #endif