CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/EventFilter/StorageManager/interface/FRDStreamHandler.h

Go to the documentation of this file.
00001 // $Id: FRDStreamHandler.h,v 1.7 2011/03/07 15:31:31 mommsen Exp $
00003 
00004 #ifndef EventFilter_StorageManager_FRDStreamHandler_h
00005 #define EventFilter_StorageManager_FRDStreamHandler_h
00006 
00007 #include "EventFilter/StorageManager/interface/SharedResources.h"
00008 #include "EventFilter/StorageManager/interface/StreamHandler.h"
00009 
00010 
00011 namespace stor {
00012 
00013   class ErrorStreamConfigurationInfo;
00014   class I2OChain;
00015 
00016 
00025   class FRDStreamHandler : public StreamHandler
00026   {
00027   public:
00028     
00029     FRDStreamHandler
00030     (
00031       const ErrorStreamConfigurationInfo&,
00032       const SharedResourcesPtr,
00033       const DbFileHandlerPtr
00034     );
00035 
00036 
00037   private:
00038 
00042     virtual std::string streamLabel() const
00043     { return streamConfig_.streamLabel(); }
00044 
00050     virtual double fractionToDisk() const
00051     { return 1; }
00052 
00056     virtual FileHandlerPtr newFileHandler(const I2OChain& event);
00057 
00061     virtual int getStreamMaxFileSize() const
00062     { return streamConfig_.maxFileSizeMB(); }
00063 
00064 
00065     ErrorStreamConfigurationInfo streamConfig_;
00066     
00067   };
00068   
00069 } // namespace stor
00070 
00071 #endif // EventFilter_StorageManager_FRDStreamHandler_h 
00072 
00073