CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch1/src/EventFilter/StorageManager/src/FRDStreamHandler.cc

Go to the documentation of this file.
00001 // $Id: FRDStreamHandler.cc,v 1.8 2012/04/04 12:17:02 mommsen Exp $
00003 
00004 #include "EventFilter/StorageManager/interface/ErrorStreamConfigurationInfo.h"
00005 #include "EventFilter/StorageManager/interface/I2OChain.h"
00006 #include "EventFilter/StorageManager/interface/FRDFileHandler.h"
00007 #include "EventFilter/StorageManager/interface/FRDStreamHandler.h"
00008 
00009 
00010 namespace stor {
00011   
00012   FRDStreamHandler::FRDStreamHandler
00013   (
00014     const ErrorStreamConfigurationInfo& streamConfig,
00015     const SharedResourcesPtr sharedResources,
00016     const DbFileHandlerPtr dbFileHandler
00017   ):
00018   StreamHandler(sharedResources, dbFileHandler),
00019   streamConfig_(streamConfig)
00020   {
00021     streamRecord_->streamName = streamLabel();
00022     streamRecord_->fractionToDisk = fractionToDisk();
00023   }
00024   
00025   
00026   FRDStreamHandler::FileHandlerPtr
00027   FRDStreamHandler::newFileHandler(const I2OChain& event)
00028   {
00029     FilesMonitorCollection::FileRecordPtr fileRecord = getNewFileRecord(event);
00030     
00031     FileHandlerPtr newFileHandler(
00032       new FRDFileHandler(fileRecord, dbFileHandler_, getMaxFileSize())
00033     );
00034     fileHandlers_.push_back(newFileHandler);
00035     
00036     return newFileHandler;
00037   }
00038 
00039 } // namespace stor
00040