CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/EventFilter/StorageManager/interface/FaultyEventStreamHandler.h

Go to the documentation of this file.
00001 // $Id: FaultyEventStreamHandler.h,v 1.2 2011/03/07 15:31:31 mommsen Exp $
00003 
00004 #ifndef EventFilter_StorageManager_FaultyEventStreamHandler_h
00005 #define EventFilter_StorageManager_FaultyEventStreamHandler_h
00006 
00007 #include <string>
00008 
00009 #include "IOPool/Streamer/interface/InitMessage.h"
00010 
00011 #include "EventFilter/StorageManager/interface/InitMsgCollection.h"
00012 #include "EventFilter/StorageManager/interface/StreamHandler.h"
00013 
00014 
00015 namespace stor {
00016 
00017 
00026   class FaultyEventStreamHandler : public StreamHandler
00027   {
00028   public:
00029     
00030     FaultyEventStreamHandler
00031     (
00032       const SharedResourcesPtr,
00033       const DbFileHandlerPtr,
00034       const std::string& streamName
00035     );
00036 
00037 
00038   private:
00039 
00043     virtual std::string streamLabel() const
00044     { return streamRecord_->streamName; }
00045 
00049     virtual double fractionToDisk() const
00050     { return streamRecord_->fractionToDisk; }
00051 
00055     virtual FileHandlerPtr getFileHandler(const I2OChain& event);
00056 
00060     virtual FileHandlerPtr newFileHandler(const I2OChain& event);
00061 
00065     virtual int getStreamMaxFileSize() const
00066     { return 0; }
00067 
00068 
00069     InitMsgCollectionPtr initMsgCollection_;
00070 
00071   };
00072   
00073 } // namespace stor
00074 
00075 #endif // EventFilter_StorageManager_FaultyEventStreamHandler_h 
00076 
00077