CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes | Friends
stor::EventStreamConfigurationInfo Class Reference

#include <EventStreamConfigurationInfo.h>

Public Member Functions

const StringseventSelection () const
 
 EventStreamConfigurationInfo (const std::string &streamLabel, const int maxFileSizeMB, const std::string &triggerSelection, const Strings &eventSelection, const std::string &outputModuleLabel, double fractionToDisk)
 
double fractionToDisk () const
 
const int maxFileSizeMB () const
 
bool operator< (const EventStreamConfigurationInfo &) const
 
const std::string & outputModuleLabel () const
 
void setStreamId (StreamID sid)
 
StreamID streamId () const
 
const std::string & streamLabel () const
 
const std::string & triggerSelection () const
 
 ~EventStreamConfigurationInfo ()
 

Private Attributes

Strings eventSelection_
 
double fractionToDisk_
 
int maxFileSizeMB_
 
std::string outputModuleLabel_
 
StreamID streamId_
 
std::string streamLabel_
 
std::string triggerSelection_
 

Friends

std::ostream & operator<< (std::ostream &, const EventStreamConfigurationInfo &)
 

Detailed Description

Configuration information for the event stream

Author:
wmtan
Revision:
1.12
Date:
2011/08/31 20:11:59

Definition at line 27 of file EventStreamConfigurationInfo.h.

Constructor & Destructor Documentation

stor::EventStreamConfigurationInfo::EventStreamConfigurationInfo ( const std::string &  streamLabel,
const int  maxFileSizeMB,
const std::string &  triggerSelection,
const Strings eventSelection,
const std::string &  outputModuleLabel,
double  fractionToDisk 
)
inline

Definition at line 33 of file EventStreamConfigurationInfo.h.

38  :
45  streamId_(0)
46  {}
const std::string & triggerSelection() const
const std::string & outputModuleLabel() const
stor::EventStreamConfigurationInfo::~EventStreamConfigurationInfo ( )
inline

Definition at line 49 of file EventStreamConfigurationInfo.h.

49 {}

Member Function Documentation

const Strings& stor::EventStreamConfigurationInfo::eventSelection ( ) const
inline
double stor::EventStreamConfigurationInfo::fractionToDisk ( ) const
inline
const int stor::EventStreamConfigurationInfo::maxFileSizeMB ( ) const
inline
bool EventStreamConfigurationInfo::operator< ( const EventStreamConfigurationInfo other) const

Definition at line 10 of file EventStreamConfigurationInfo.cc.

References eventSelection(), eventSelection_, fractionToDisk(), fractionToDisk_, maxFileSizeMB(), maxFileSizeMB_, outputModuleLabel(), outputModuleLabel_, streamId(), streamId_, streamLabel(), streamLabel_, triggerSelection(), and triggerSelection_.

11 {
12  if ( outputModuleLabel_ != other.outputModuleLabel() )
13  return ( outputModuleLabel_ < other.outputModuleLabel() );
14  if ( triggerSelection_ != other.triggerSelection() )
15  return ( triggerSelection_ < other.triggerSelection() );
16  if ( eventSelection_ != other.eventSelection() )
17  return ( eventSelection_ < other.eventSelection() );
18  if ( streamLabel_ != other.streamLabel() )
19  return ( streamLabel_ < other.streamLabel() );
20  if ( streamId_ != other.streamId() )
21  return ( streamId_ < other.streamId() );
22  if ( maxFileSizeMB_ != other.maxFileSizeMB() )
23  return ( maxFileSizeMB_ < other.maxFileSizeMB() );
24  return ( fractionToDisk_ < other.fractionToDisk() );
25 }
const std::string & triggerSelection() const
const std::string & outputModuleLabel() const
const std::string& stor::EventStreamConfigurationInfo::outputModuleLabel ( ) const
inline
void stor::EventStreamConfigurationInfo::setStreamId ( StreamID  sid)
inline
StreamID stor::EventStreamConfigurationInfo::streamId ( ) const
inline

Definition at line 58 of file EventStreamConfigurationInfo.h.

References streamId_.

Referenced by operator<().

const std::string& stor::EventStreamConfigurationInfo::streamLabel ( ) const
inline
const std::string& stor::EventStreamConfigurationInfo::triggerSelection ( ) const
inline

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const EventStreamConfigurationInfo  
)
friend

Member Data Documentation

Strings stor::EventStreamConfigurationInfo::eventSelection_
private

Definition at line 75 of file EventStreamConfigurationInfo.h.

Referenced by eventSelection(), and operator<().

double stor::EventStreamConfigurationInfo::fractionToDisk_
private

Definition at line 77 of file EventStreamConfigurationInfo.h.

Referenced by fractionToDisk(), and operator<().

int stor::EventStreamConfigurationInfo::maxFileSizeMB_
private

Definition at line 73 of file EventStreamConfigurationInfo.h.

Referenced by maxFileSizeMB(), and operator<().

std::string stor::EventStreamConfigurationInfo::outputModuleLabel_
private

Definition at line 76 of file EventStreamConfigurationInfo.h.

Referenced by operator<(), and outputModuleLabel().

StreamID stor::EventStreamConfigurationInfo::streamId_
private

Definition at line 78 of file EventStreamConfigurationInfo.h.

Referenced by operator<(), setStreamId(), and streamId().

std::string stor::EventStreamConfigurationInfo::streamLabel_
private

Definition at line 72 of file EventStreamConfigurationInfo.h.

Referenced by operator<(), and streamLabel().

std::string stor::EventStreamConfigurationInfo::triggerSelection_
private

Definition at line 74 of file EventStreamConfigurationInfo.h.

Referenced by operator<(), and triggerSelection().