#include <EventStreamConfigurationInfo.h>
Public Member Functions | |
const Strings & | eventSelection () 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 &) |
Configuration information for the event stream
Definition at line 27 of file EventStreamConfigurationInfo.h.
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.
stor::EventStreamConfigurationInfo::~EventStreamConfigurationInfo | ( | ) | [inline] |
Definition at line 49 of file EventStreamConfigurationInfo.h.
{}
const Strings& stor::EventStreamConfigurationInfo::eventSelection | ( | ) | const [inline] |
Definition at line 55 of file EventStreamConfigurationInfo.h.
References eventSelection_.
Referenced by stor::EventStreamSelector::initialize(), and operator<().
{ return eventSelection_; }
double stor::EventStreamConfigurationInfo::fractionToDisk | ( | ) | const [inline] |
Definition at line 57 of file EventStreamConfigurationInfo.h.
References fractionToDisk_.
Referenced by stor::EventStreamSelector::acceptEvent(), stor::EventStreamHandler::fractionToDisk(), and operator<().
{ return fractionToDisk_; }
const int stor::EventStreamConfigurationInfo::maxFileSizeMB | ( | ) | const [inline] |
Definition at line 53 of file EventStreamConfigurationInfo.h.
References maxFileSizeMB_.
Referenced by stor::EventStreamHandler::getStreamMaxFileSize(), and operator<().
{ return maxFileSizeMB_; }
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_.
{ if ( outputModuleLabel_ != other.outputModuleLabel() ) return ( outputModuleLabel_ < other.outputModuleLabel() ); if ( triggerSelection_ != other.triggerSelection() ) return ( triggerSelection_ < other.triggerSelection() ); if ( eventSelection_ != other.eventSelection() ) return ( eventSelection_ < other.eventSelection() ); if ( streamLabel_ != other.streamLabel() ) return ( streamLabel_ < other.streamLabel() ); if ( streamId_ != other.streamId() ) return ( streamId_ < other.streamId() ); if ( maxFileSizeMB_ != other.maxFileSizeMB() ) return ( maxFileSizeMB_ < other.maxFileSizeMB() ); return ( fractionToDisk_ < other.fractionToDisk() ); }
const std::string& stor::EventStreamConfigurationInfo::outputModuleLabel | ( | ) | const [inline] |
Definition at line 56 of file EventStreamConfigurationInfo.h.
References outputModuleLabel_.
Referenced by stor::EventStreamSelector::initialize(), stor::EventStreamHandler::newFileHandler(), and operator<().
{ return outputModuleLabel_; }
void stor::EventStreamConfigurationInfo::setStreamId | ( | StreamID | sid | ) | [inline] |
Definition at line 64 of file EventStreamConfigurationInfo.h.
References evf::utils::sid, and streamId_.
Referenced by stor::DiskWriter::makeEventStream().
StreamID stor::EventStreamConfigurationInfo::streamId | ( | ) | const [inline] |
Definition at line 58 of file EventStreamConfigurationInfo.h.
References streamId_.
Referenced by operator<().
{ return streamId_; }
const std::string& stor::EventStreamConfigurationInfo::streamLabel | ( | ) | const [inline] |
Definition at line 52 of file EventStreamConfigurationInfo.h.
References streamLabel_.
Referenced by stor::EventStreamSelector::initialize(), operator<(), and stor::EventStreamHandler::streamLabel().
{ return streamLabel_; }
const std::string& stor::EventStreamConfigurationInfo::triggerSelection | ( | ) | const [inline] |
Definition at line 54 of file EventStreamConfigurationInfo.h.
References triggerSelection_.
Referenced by stor::EventStreamSelector::initialize(), and operator<().
{ return triggerSelection_; }
std::ostream& operator<< | ( | std::ostream & | , |
const EventStreamConfigurationInfo & | |||
) | [friend] |
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().
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().