CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EventStreamHandler.cc
Go to the documentation of this file.
1 // $Id: EventStreamHandler.cc,v 1.7.6.1 2011/03/07 11:33:05 mommsen Exp $
3 
8 
9 
10 namespace stor {
11 
13  (
14  const EventStreamConfigurationInfo& streamConfig,
15  const SharedResourcesPtr sharedResources,
16  const DbFileHandlerPtr dbFileHandler
17  ):
18  StreamHandler(sharedResources, dbFileHandler),
19  streamConfig_(streamConfig),
20  initMsgCollection_(sharedResources->initMsgCollection_)
21  {
22  streamRecord_->streamName = streamLabel();
23  streamRecord_->fractionToDisk = fractionToDisk();
24  }
25 
26 
29  {
30  // the INIT message is not available when the EventStreamHandler is
31  // constructed, so we need to fetch it when we first need a new file
32  // handler (when the first event is received, which is after the
33  // INIT messages have been received)
34  if (initMsgView_.get() == 0)
35  {
36  initMsgView_ = initMsgCollection_->getElementForOutputModule(streamConfig_.outputModuleLabel());
37  }
38 
40 
44  );
45  fileHandlers_.push_back(newFileHandler);
46 
47  return newFileHandler;
48  }
49 
50 } // namespace stor
51 
InitMsgCollectionPtr initMsgCollection_
const DiskWritingParams diskWritingParams_
boost::shared_ptr< SharedResources > SharedResourcesPtr
const DbFileHandlerPtr dbFileHandler_
boost::shared_ptr< FileRecord > FileRecordPtr
virtual FileHandlerPtr newFileHandler(const I2OChain &event)
unsigned long long getMaxFileSize() const
boost::shared_ptr< DbFileHandler > DbFileHandlerPtr
Definition: DbFileHandler.h:65
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
FilesMonitorCollection::FileRecordPtr getNewFileRecord(const I2OChain &event)
FileHandlers fileHandlers_
boost::shared_ptr< FileHandler > FileHandlerPtr
Definition: StreamHandler.h:67
InitMsgSharedPtr initMsgView_
EventStreamHandler(const EventStreamConfigurationInfo &, const SharedResourcesPtr, const DbFileHandlerPtr)
const std::string & outputModuleLabel() const
EventStreamConfigurationInfo streamConfig_