CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EventStreamHandler.h
Go to the documentation of this file.
1 // $Id: EventStreamHandler.h,v 1.6.10.1 2011/03/07 11:33:04 mommsen Exp $
3 
4 #ifndef EventFilter_StorageManager_EventStreamHandler_h
5 #define EventFilter_StorageManager_EventStreamHandler_h
6 
7 #include <string>
8 
10 
13 
14 
15 namespace stor {
16 
17  class Configuration;
18  class EventStreamConfigurationInfo;
19 
20 
30  {
31  public:
32 
34  (
36  const SharedResourcesPtr,
37  const DbFileHandlerPtr
38  );
39 
40 
41  private:
42 
46  virtual std::string streamLabel() const
47  { return streamConfig_.streamLabel(); }
48 
52  virtual double fractionToDisk() const
53  { return streamConfig_.fractionToDisk(); }
54 
59 
63  virtual int getStreamMaxFileSize() const
64  { return streamConfig_.maxFileSizeMB(); }
65 
66 
70 
71  };
72 
73 } // namespace stor
74 
75 #endif // EventFilter_StorageManager_EventStreamHandler_h
76 
77 
InitMsgCollectionPtr initMsgCollection_
virtual double fractionToDisk() const
boost::shared_ptr< SharedResources > SharedResourcesPtr
boost::shared_ptr< InitMsgBuffer > InitMsgSharedPtr
virtual FileHandlerPtr newFileHandler(const I2OChain &event)
boost::shared_ptr< DbFileHandler > DbFileHandlerPtr
Definition: DbFileHandler.h:65
boost::shared_ptr< InitMsgCollection > InitMsgCollectionPtr
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
boost::shared_ptr< FileHandler > FileHandlerPtr
Definition: StreamHandler.h:67
InitMsgSharedPtr initMsgView_
EventStreamHandler(const EventStreamConfigurationInfo &, const SharedResourcesPtr, const DbFileHandlerPtr)
virtual std::string streamLabel() const
virtual int getStreamMaxFileSize() const
EventStreamConfigurationInfo streamConfig_