CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

stor::FRDStreamHandler Class Reference

#include <FRDStreamHandler.h>

Inheritance diagram for stor::FRDStreamHandler:
stor::StreamHandler

List of all members.

Public Member Functions

 FRDStreamHandler (const ErrorStreamConfigurationInfo &, const SharedResourcesPtr, const DbFileHandlerPtr)

Private Member Functions

virtual double fractionToDisk () const
virtual int getStreamMaxFileSize () const
virtual FileHandlerPtr newFileHandler (const I2OChain &event)
virtual std::string streamLabel () const

Private Attributes

ErrorStreamConfigurationInfo streamConfig_

Detailed Description

Handle one FED Raw Data (error) event stream written to disk.

Author:
mommsen
Revision:
1.7
Date:
2011/03/07 15:31:31

Definition at line 25 of file FRDStreamHandler.h.


Constructor & Destructor Documentation

stor::FRDStreamHandler::FRDStreamHandler ( const ErrorStreamConfigurationInfo streamConfig,
const SharedResourcesPtr  sharedResources,
const DbFileHandlerPtr  dbFileHandler 
)

Definition at line 13 of file FRDStreamHandler.cc.

References StorageManager_cfg::streamLabel.

   :
  StreamHandler(sharedResources, dbFileHandler),
  streamConfig_(streamConfig)
  {
    streamRecord_->streamName = streamLabel();
    streamRecord_->fractionToDisk = fractionToDisk();
  }

Member Function Documentation

virtual double stor::FRDStreamHandler::fractionToDisk ( ) const [inline, private, virtual]

Return the fraction-to-disk parameter This value is not configurable for FRD events, i.e. all events are always written

Implements stor::StreamHandler.

Definition at line 50 of file FRDStreamHandler.h.

    { return 1; }
virtual int stor::FRDStreamHandler::getStreamMaxFileSize ( ) const [inline, private, virtual]

Return the maximum file size for the stream in MB

Implements stor::StreamHandler.

Definition at line 61 of file FRDStreamHandler.h.

References stor::ErrorStreamConfigurationInfo::maxFileSizeMB(), and streamConfig_.

    { return streamConfig_.maxFileSizeMB(); }
FRDStreamHandler::FileHandlerPtr stor::FRDStreamHandler::newFileHandler ( const I2OChain event) [private, virtual]
virtual std::string stor::FRDStreamHandler::streamLabel ( ) const [inline, private, virtual]

Return the stream label

Implements stor::StreamHandler.

Definition at line 42 of file FRDStreamHandler.h.

References streamConfig_, and stor::ErrorStreamConfigurationInfo::streamLabel().

    { return streamConfig_.streamLabel(); }

Member Data Documentation

Definition at line 65 of file FRDStreamHandler.h.

Referenced by getStreamMaxFileSize(), and streamLabel().