CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EventStreamConfigurationInfo.h
Go to the documentation of this file.
1 // $Id: EventStreamConfigurationInfo.h,v 1.12 2011/08/31 20:11:59 wmtan Exp $
3 
4 #ifndef EventFilter_StorageManager_EventStreamConfigurationInfo_h
5 #define EventFilter_StorageManager_EventStreamConfigurationInfo_h
6 
9 
10 #include <boost/shared_ptr.hpp>
11 
12 #include <string>
13 #include <vector>
14 #include <iosfwd>
15 
16 namespace stor
17 {
18 
28  {
29 
30  public:
31 
32  // Constructor:
34  const int maxFileSizeMB,
35  const std::string& triggerSelection,
36  const Strings& eventSelection,
37  const std::string& outputModuleLabel,
38  double fractionToDisk ):
39  streamLabel_( streamLabel ),
40  maxFileSizeMB_( maxFileSizeMB ),
41  triggerSelection_( triggerSelection ),
42  eventSelection_( eventSelection ),
43  outputModuleLabel_( outputModuleLabel ),
44  fractionToDisk_( fractionToDisk ),
45  streamId_(0)
46  {}
47 
48  // Destructor:
50 
51  // Accessors:
52  const std::string& streamLabel() const { return streamLabel_; }
53  const int maxFileSizeMB() const { return maxFileSizeMB_; }
54  const std::string& triggerSelection() const { return triggerSelection_; }
55  const Strings& eventSelection() const { return eventSelection_; }
56  const std::string& outputModuleLabel() const { return outputModuleLabel_; }
57  double fractionToDisk() const { return fractionToDisk_; }
58  StreamID streamId() const { return streamId_; }
59 
60  // Comparison:
61  bool operator<(const EventStreamConfigurationInfo&) const;
62 
63  // Set stream Id:
65 
66  // Output:
67  friend std::ostream& operator <<
68  ( std::ostream&, const EventStreamConfigurationInfo& );
69 
70  private:
71 
72  std::string streamLabel_;
74  std::string triggerSelection_;
76  std::string outputModuleLabel_;
79 
80  };
81 
82  typedef std::vector<EventStreamConfigurationInfo> EvtStrConfigList;
83  typedef boost::shared_ptr<EvtStrConfigList> EvtStrConfigListPtr;
84 
85  std::ostream& operator << ( std::ostream&, const EventStreamConfigurationInfo& );
86 
87 } // namespace stor
88 
89 #endif // EventFilter_StorageManager_EventStreamConfigurationInfo_h
90 
91 
const std::string & triggerSelection() const
std::vector< std::string > Strings
Definition: MsgTools.h:18
std::vector< EventStreamConfigurationInfo > EvtStrConfigList
boost::shared_ptr< EvtStrConfigList > EvtStrConfigListPtr
std::ostream & operator<<(std::ostream &os, ConsumerID id)
Definition: ConsumerID.h:69
EventStreamConfigurationInfo(const std::string &streamLabel, const int maxFileSizeMB, const std::string &triggerSelection, const Strings &eventSelection, const std::string &outputModuleLabel, double fractionToDisk)
size_t StreamID
Definition: StreamID.h:19
bool operator<(const EventStreamConfigurationInfo &) const
const std::string & outputModuleLabel() const