CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/CalibFormats/CaloObjects/interface/CaloTSamples.h

Go to the documentation of this file.
00001 #ifndef CALOTSAMPLES_H
00002 #define CALOTSAMPLES_H 1
00003 
00004 #include "CalibFormats/CaloObjects/interface/CaloTSamplesBase.h"
00005 
00013 template <class Ttype, uint32_t Tsize> 
00014 class CaloTSamples : public CaloTSamplesBase<Ttype>
00015 {
00016    public:
00017 
00018       enum { kCapacity = Tsize } ;
00019 
00020       CaloTSamples<Ttype,Tsize>()  ;
00021       CaloTSamples<Ttype,Tsize>( const CaloTSamples<Ttype,Tsize>& cs )  ;
00022       CaloTSamples<Ttype,Tsize>( const DetId& id   , 
00023                                  uint32_t size = 0 ,
00024                                  uint32_t pre  = 0  ) ;
00025       virtual ~CaloTSamples<Ttype,Tsize>() ;
00026 
00027       CaloTSamples<Ttype,Tsize>& operator=( const CaloTSamples<Ttype,Tsize>& cs ) ;
00028 
00029       virtual uint32_t capacity() const ;
00030 
00031    private:
00032 
00033       virtual       Ttype* data(  uint32_t i ) ;
00034       virtual const Ttype* cdata( uint32_t i ) const ;
00035 
00036       Ttype m_data[ Tsize ] ;
00037 } ;
00038 
00039 #endif