CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Classes | Typedefs | Functions
stor Namespace Reference

Namespaces

 detail
 
 enquing_policy
 
 soaputils
 
 utils
 

Classes

class  AlarmHandler
 
struct  AlarmParams
 
class  ConcurrentQueue
 
class  Configuration
 
class  Configure
 
class  Constructed
 
struct  ConsumerID
 
class  ConsumerMonitorCollection
 
class  ConsumerUtils
 
class  ConsumerWebPageHelper
 
class  CurlInterface
 
class  DataSenderMonitorCollection
 
class  DbFileHandler
 
class  DiscardManager
 
class  DiskWriter
 
class  DiskWriterResources
 
struct  DiskWritingParams
 
class  DQMConsumerMonitorCollection
 
class  DQMEventConsumerRegistrationInfo
 
class  DQMEventMonitorCollection
 
class  DQMEventProcessor
 
class  DQMEventProcessorResources
 
class  DQMEventSelector
 
class  DQMEventStore
 
class  DQMFolder
 
struct  DQMKey
 
struct  DQMProcessingParams
 
class  DQMTopLevelFolder
 
class  DrainingQueues
 
class  EmergencyStop
 
class  Enable
 
class  Enabled
 
class  EndRun
 
class  ErrorStreamConfigurationInfo
 
class  ErrorStreamSelector
 
class  EventConsumerMonitorCollection
 
class  EventConsumerRegistrationInfo
 
class  EventConsumerSelector
 
class  EventDistributor
 
class  EventFileHandler
 
class  EventServerProxy
 
struct  EventServingParams
 
class  EventStreamConfigurationInfo
 
class  EventStreamHandler
 
class  EventStreamSelector
 
class  ExpirableQueue
 
class  Fail
 
class  Failed
 
struct  FailIfFull
 
class  FaultyEventStreamHandler
 
class  FileHandler
 
class  FilesMonitorCollection
 
class  FinishingDQM
 
struct  FragEntry
 
struct  FragKey
 
class  FragmentMonitorCollection
 
class  FragmentProcessor
 
class  FragmentStore
 
class  FRDFileHandler
 
class  FRDStreamHandler
 
class  FUProxy
 
class  Halt
 
class  HaltDone
 
class  Halted
 
class  Halting
 
class  HLTInfo
 
class  I2OChain
 
class  InitMsgCollection
 
struct  KeepNewest
 
class  MonitorCollection
 
class  MonitoredQuantity
 
class  Normal
 
class  Notifier
 
class  Operations
 
class  Processing
 
class  QueueCollection
 
struct  QueueConfigurationParams
 
class  QueueID
 
class  QueuesEmpty
 
class  Ready
 
class  Reconfigure
 
class  RegistrationCollection
 
class  RegistrationInfoBase
 
struct  RejectNewest
 
class  ResourceMonitorCollection
 
struct  ResourceMonitorParams
 
class  RunMonitorCollection
 
class  Running
 
struct  SharedResources
 
class  SMWebPageHelper
 
class  Starting
 
class  StartRun
 
class  StateMachine
 
class  StateMachineMonitorCollection
 
class  StatisticsReporter
 
class  Stop
 
class  StopDone
 
class  Stopped
 
class  Stopping
 
class  StorageManager
 
class  StreamHandler
 
class  StreamsMonitorCollection
 
class  ThroughputMonitorCollection
 
class  TransitionRecord
 
class  TriggerSelector
 
class  WebPageHelper
 
struct  WorkerThreadParams
 
class  WrapperNotifier
 
class  XHTMLMaker
 
class  XHTMLMonitor
 

Typedefs

typedef boost::shared_ptr
< AlarmHandler
AlarmHandlerPtr
 
typedef ConcurrentQueue
< EventPtr_t
CommandQueue
 
typedef boost::shared_ptr
< CommandQueue
CommandQueuePtr
 
typedef boost::shared_ptr
< Configuration
ConfigurationPtr
 
typedef boost::shared_ptr
< DbFileHandler
DbFileHandlerPtr
 
typedef boost::shared_ptr
< DiscardManager
DiscardManagerPtr
 
typedef boost::shared_ptr
< DiskWriterResources
DiskWriterResourcesPtr
 
typedef boost::shared_ptr
< stor::DQMEventConsumerRegistrationInfo
DQMEventConsRegPtr
 
typedef boost::shared_ptr
< DQMEventProcessorResources
DQMEventProcessorResourcesPtr
 
typedef ConcurrentQueue
< I2OChain, KeepNewest
< I2OChain > > 
DQMEventQueue
 
typedef QueueCollection
< DQMTopLevelFolder::Record
DQMEventQueueCollection
 
typedef boost::shared_ptr
< DQMEventQueueCollection
DQMEventQueueCollectionPtr
 
typedef boost::shared_ptr
< DQMEventQueue
DQMEventQueuePtr
 
typedef boost::shared_ptr
< DQMTopLevelFolder
DQMTopLevelFolderPtr
 
typedef DataSenderMonitorCollection DSMC
 
typedef std::vector
< ErrorStreamConfigurationInfo
ErrStrConfigList
 
typedef boost::shared_ptr
< ErrStrConfigList
ErrStrConfigListPtr
 
typedef boost::shared_ptr
< stor::EventConsumerRegistrationInfo
EventConsRegPtr
 
typedef boost::shared_ptr
< boost::statechart::event_base > 
EventPtr_t
 
typedef QueueCollection< I2OChainEventQueueCollection
 
typedef boost::shared_ptr
< EventQueueCollection
EventQueueCollectionPtr
 
typedef std::vector
< EventStreamConfigurationInfo
EvtStrConfigList
 
typedef boost::shared_ptr
< EvtStrConfigList
EvtStrConfigListPtr
 
typedef ConcurrentQueue< I2OChainFragmentQueue
 
typedef boost::shared_ptr
< FragmentQueue
FragmentQueuePtr
 
typedef std::vector< unsigned
char > 
InitMsgBuffer
 
typedef boost::shared_ptr
< InitMsgCollection
InitMsgCollectionPtr
 
typedef boost::shared_ptr
< InitMsgBuffer
InitMsgSharedPtr
 
typedef boost::shared_ptr
< MonitoredQuantity
MonitoredQuantityPtr
 
typedef std::vector< QueueIDQueueIDs
 
typedef boost::shared_ptr
< RegistrationCollection
RegistrationCollectionPtr
 
typedef ConcurrentQueue< RegPtrRegistrationQueue
 
typedef boost::shared_ptr
< RegistrationQueue
RegistrationQueuePtr
 
typedef boost::shared_ptr
< RegistrationInfoBase
RegPtr
 
typedef boost::shared_ptr
< SharedResources
SharedResourcesPtr
 
typedef boost::shared_ptr
< StateMachine
StateMachinePtr
 
typedef boost::shared_ptr
< StatisticsReporter
StatisticsReporterPtr
 
typedef size_t StreamID
 
typedef ConcurrentQueue< I2OChainStreamQueue
 
typedef boost::shared_ptr
< StreamQueue
StreamQueuePtr
 
typedef boost::shared_ptr
< TriggerSelector
TriggerSelectorPtr
 

Functions

bool compareRBResultPtrValues (DataSenderMonitorCollection::RBResultPtr firstValue, DataSenderMonitorCollection::RBResultPtr secondValue)
 
std::ostream & operator<< (std::ostream &, const TransitionRecord &)
 
std::ostream & operator<< (std::ostream &, const ErrorStreamConfigurationInfo &)
 
std::ostream & operator<< (std::ostream &os, ConsumerID id)
 
std::ostream & operator<< (std::ostream &, const EventStreamConfigurationInfo &)
 
std::ostream & operator<< (std::ostream &os, const QueueID &queueId)
 
std::ostream & operator<< (std::ostream &os, RegistrationInfoBase const &ri)
 
void parseStreamConfiguration (std::string cfgString, EvtStrConfigListPtr evtCfgList, ErrStrConfigListPtr errCfgList)
 

Typedef Documentation

typedef boost::shared_ptr<AlarmHandler> stor::AlarmHandlerPtr

Definition at line 91 of file AlarmHandler.h.

Definition at line 22 of file CommandQueue.h.

typedef boost::shared_ptr<CommandQueue> stor::CommandQueuePtr

Definition at line 23 of file CommandQueue.h.

typedef boost::shared_ptr<Configuration> stor::ConfigurationPtr

Definition at line 403 of file Configuration.h.

typedef boost::shared_ptr<DbFileHandler> stor::DbFileHandlerPtr

Definition at line 65 of file DbFileHandler.h.

typedef boost::shared_ptr<DiscardManager> stor::DiscardManagerPtr

Definition at line 108 of file DiscardManager.h.

Definition at line 128 of file DiskWriterResources.h.

Definition at line 85 of file DQMEventConsumerRegistrationInfo.h.

Definition at line 102 of file DQMEventProcessorResources.h.

Queue holding I2OChains of complete DQM events (histograms) waiting to be processed by the DQMEventProcessor

Author:
mommsen
Revision:
1.4.10.1
Date:
2011/03/07 11:33:04

Definition at line 22 of file DQMEventQueue.h.

A collection of ConcurrentQueue<DQMEventRecord>.

Author:
mommsen
Revision:
1.3.16.1
Date:
2011/03/07 11:33:04

Definition at line 21 of file DQMEventQueueCollection.h.

Definition at line 22 of file DQMEventQueueCollection.h.

typedef boost::shared_ptr<DQMEventQueue> stor::DQMEventQueuePtr

Definition at line 23 of file DQMEventQueue.h.

typedef boost::shared_ptr<DQMTopLevelFolder> stor::DQMTopLevelFolderPtr

Definition at line 185 of file DQMTopLevelFolder.h.

Definition at line 621 of file DataSenderMonitorCollection.cc.

Definition at line 65 of file ErrorStreamConfigurationInfo.h.

typedef boost::shared_ptr<ErrStrConfigList> stor::ErrStrConfigListPtr

Definition at line 66 of file ErrorStreamConfigurationInfo.h.

Definition at line 93 of file EventConsumerRegistrationInfo.h.

typedef boost::shared_ptr<boost::statechart::event_base> stor::EventPtr_t

Concurrent queue holding state machine events

Author:
mommsen
Revision:
1.5.16.1
Date:
2011/03/07 11:33:04

Definition at line 21 of file CommandQueue.h.

A collection of ConcurrentQueue<I2OChain>.

Author:
mommsen
Revision:
1.3.16.1
Date:
2011/03/07 11:33:04

Definition at line 21 of file EventQueueCollection.h.

Definition at line 22 of file EventQueueCollection.h.

Definition at line 82 of file EventStreamConfigurationInfo.h.

typedef boost::shared_ptr<EvtStrConfigList> stor::EvtStrConfigListPtr

Definition at line 83 of file EventStreamConfigurationInfo.h.

Queue holding I2OChains of event fragments

Author:
mommsen
Revision:
1.3.16.1
Date:
2011/03/07 11:33:04

Definition at line 21 of file FragmentQueue.h.

typedef boost::shared_ptr<FragmentQueue> stor::FragmentQueuePtr

Definition at line 22 of file FragmentQueue.h.

typedef std::vector<unsigned char> stor::InitMsgBuffer

This class is used to manage the unique set of INIT messages that have been received by the storage manager and will be sent to event consumers and written to output streams.

Author:
mommsen
Revision:
1.13
Date:
2011/03/07 15:31:32

Definition at line 29 of file InitMsgCollection.h.

typedef boost::shared_ptr<InitMsgCollection> stor::InitMsgCollectionPtr

Definition at line 176 of file InitMsgCollection.h.

typedef boost::shared_ptr<InitMsgBuffer> stor::InitMsgSharedPtr

Definition at line 30 of file InitMsgCollection.h.

typedef boost::shared_ptr<MonitoredQuantity> stor::MonitoredQuantityPtr

Definition at line 256 of file MonitoredQuantity.h.

typedef std::vector<QueueID> stor::QueueIDs

Definition at line 80 of file QueueID.h.

Definition at line 99 of file RegistrationCollection.h.

Concurrent queue holding consumer registrations

Author:
mommsen
Revision:
1.5.16.1
Date:
2011/03/07 11:33:04

Definition at line 21 of file RegistrationQueue.h.

typedef boost::shared_ptr<RegistrationQueue> stor::RegistrationQueuePtr

Definition at line 22 of file RegistrationQueue.h.

typedef boost::shared_ptr<RegistrationInfoBase> stor::RegPtr

Definition at line 141 of file RegistrationInfoBase.h.

typedef boost::shared_ptr<SharedResources> stor::SharedResourcesPtr

Definition at line 74 of file SharedResources.h.

typedef boost::shared_ptr<StateMachine> stor::StateMachinePtr

Definition at line 587 of file StateMachine.h.

typedef boost::shared_ptr<StatisticsReporter> stor::StatisticsReporterPtr

Definition at line 211 of file StatisticsReporter.h.

typedef size_t stor::StreamID

Definition of the StreamID used in the storage manager

Author:
mommsen
Revision:
1.3.16.1
Date:
2011/03/07 11:33:04

Definition at line 19 of file StreamID.h.

Queue holding I2OChains of events to be written to disk

Author:
mommsen
Revision:
1.3.16.1
Date:
2011/03/07 11:33:04

Definition at line 21 of file StreamQueue.h.

typedef boost::shared_ptr<StreamQueue> stor::StreamQueuePtr

Definition at line 22 of file StreamQueue.h.

typedef boost::shared_ptr<TriggerSelector> stor::TriggerSelectorPtr

Definition at line 162 of file TriggerSelector.h.

Function Documentation

bool stor::compareRBResultPtrValues ( DataSenderMonitorCollection::RBResultPtr  firstValue,
DataSenderMonitorCollection::RBResultPtr  secondValue 
)

Definition at line 852 of file DataSenderMonitorCollection.cc.

Referenced by stor::SMWebPageHelper::addResourceBrokerList().

856  {
857  return *firstValue < *secondValue;
858  }
std::ostream & stor::operator<< ( std::ostream &  os,
const TransitionRecord tr 
)

Definition at line 23 of file TransitionRecord.cc.

References stor::TransitionRecord::isEntry(), stor::TransitionRecord::stateName(), and stor::TransitionRecord::timeStamp().

25 {
26 
27  os << tr.timeStamp().tv_sec << "."
28  << tr.timeStamp().tv_usec << ": ";
29 
30  if( tr.isEntry() )
31  {
32  os << "entered";
33  }
34  else
35  {
36  os << "exited";
37  }
38 
39  os << " " << tr.stateName();
40 
41  return os;
42 
43 }
const std::string & stateName() const
struct timeval & timeStamp() const
std::ostream & stor::operator<< ( std::ostream &  os,
const ErrorStreamConfigurationInfo ci 
)

Definition at line 20 of file ErrorStreamConfigurationInfo.cc.

24 {
25  os << "ErrorStreamConfigurationInfo:" << std::endl
26  << " Stream label: " << ci.streamLabel() << std::endl
27  << " Maximum file size, MB: " << ci.maxFileSizeMB() << std::endl
28  << " Stream Id: " << ci.streamId() << std::endl;
29 
30  return os;
31 }
std::ostream& stor::operator<< ( std::ostream &  os,
ConsumerID  id 
)
inline

Definition at line 69 of file ConsumerID.h.

70  {
71  return os << id.value;
72  }
std::ostream & stor::operator<< ( std::ostream &  os,
const EventStreamConfigurationInfo ci 
)

Definition at line 29 of file EventStreamConfigurationInfo.cc.

References i.

33 {
34  os << "EventStreamConfigurationInfo:" << std::endl
35  << " Stream label: " << ci.streamLabel() << std::endl
36  << " Maximum file size, MB: " << ci.maxFileSizeMB() << std::endl
37  << " HLT output: " << ci.outputModuleLabel() << std::endl
38  << " Fraction of events written to disk: " << ci.fractionToDisk() << std::endl
39  << " Stream Id: " << ci.streamId() << std::endl;
40 
41  os << " Event filters:";
42  if (ci.triggerSelection().size()) {
43  os << std::endl << ci.triggerSelection();
44  }
45  else
46  for( unsigned int i = 0; i < ci.eventSelection().size(); ++i )
47  {
48  os << std::endl << " " << ci.eventSelection()[i];
49  }
50 
51  return os;
52 }
const std::string & triggerSelection() const
int i
Definition: DBlmapReader.cc:9
const std::string & outputModuleLabel() const
std::ostream& stor::operator<< ( std::ostream &  os,
const QueueID &  queueId 
)
inline

Definition at line 140 of file QueueID.h.

References stor::QueueID::index(), and stor::QueueID::policy().

141  {
142  os << "policy: " << queueId.policy() <<
143  " index: " << queueId.index();
144  return os;
145  }
std::ostream & stor::operator<< ( std::ostream &  os,
RegistrationInfoBase const &  ri 
)

Definition at line 173 of file RegistrationInfoBase.cc.

References stor::RegistrationInfoBase::consumerId(), stor::RegistrationInfoBase::consumerName(), stor::RegistrationInfoBase::queueId(), stor::RegistrationInfoBase::queuePolicy(), stor::RegistrationInfoBase::queueSize(), stor::RegistrationInfoBase::remoteHost(), stor::RegistrationInfoBase::secondsToStale(), and stor::RegistrationInfoBase::sourceURL().

175  {
176  os << "\n Consumer name: " << ri.consumerName()
177  << "\n Consumer id: " << ri.consumerId()
178  << "\n Source URL: " << ri.sourceURL()
179  << "\n Remote Host: " << ri.remoteHost()
180  << "\n Queue id: " << ri.queueId()
181  << "\n Maximum size of queue: " << ri.queueSize()
182  << "\n Policy used if queue is full: " << ri.queuePolicy()
183  << "\n Time until queue becomes stale (seconds): " << ri.secondsToStale().total_seconds();
184  return os;
185  }
void stor::parseStreamConfiguration ( std::string  cfgString,
EvtStrConfigListPtr  evtCfgList,
ErrStrConfigListPtr  errCfgList 
)

Free function to parse a storage manager configuration string into the appropriate "configuration info" objects.

Definition at line 546 of file Configuration.cc.

References edm::ParameterSet::empty(), edm::EventSelector::getEventSelectionVString(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), PythonProcessDesc::processDesc(), and python.StorageManager_cfg::streamLabel.

Referenced by stor::Ready::do_entryActionWork().

549  {
550  if (cfgString == "") return;
551 
552  PythonProcessDesc py_pdesc(cfgString.c_str());
553  boost::shared_ptr<edm::ProcessDesc> pdesc = py_pdesc.processDesc();
554  boost::shared_ptr<edm::ParameterSet> smPSet = pdesc->getProcessPSet();
555 
556  // loop over each end path
557  std::vector<std::string> allEndPaths =
558  smPSet->getParameter<std::vector<std::string> >("@end_paths");
559  for(std::vector<std::string>::iterator endPathIter = allEndPaths.begin();
560  endPathIter != allEndPaths.end(); ++endPathIter) {
561 
562  // loop over each element in the end path list (not sure why...)
563  std::vector<std::string> anEndPath =
564  smPSet->getParameter<std::vector<std::string> >((*endPathIter));
565  for(std::vector<std::string>::iterator ep2Iter = anEndPath.begin();
566  ep2Iter != anEndPath.end(); ++ep2Iter) {
567 
568  // fetch the end path parameter set
569  edm::ParameterSet endPathPSet =
570  smPSet->getParameter<edm::ParameterSet>((*ep2Iter));
571  if (! endPathPSet.empty()) {
572  std::string mod_type =
573  endPathPSet.getParameter<std::string> ("@module_type");
574  if (mod_type == "EventStreamFileWriter") {
575 
576  std::string streamLabel =
577  endPathPSet.getParameter<std::string> ("streamLabel");
578  int maxFileSizeMB = endPathPSet.getParameter<int> ("maxSize");
579  std::string newRequestedEvents = endPathPSet.getUntrackedParameter("TriggerSelector",std::string());
580  Strings requestedEvents =
582  std::string requestedOMLabel =
583  endPathPSet.getUntrackedParameter<std::string>("SelectHLTOutput",
584  std::string());
585  double fractionToDisk =
586  endPathPSet.getUntrackedParameter<double>("fractionToDisk", 1);
587 
588  EventStreamConfigurationInfo cfgInfo(streamLabel,
589  maxFileSizeMB,
590  newRequestedEvents,
591  requestedEvents,
592  requestedOMLabel,
593  fractionToDisk);
594  evtCfgList->push_back(cfgInfo);
595  }
596  else if (mod_type == "ErrorStreamFileWriter" ||
597  mod_type == "FRDStreamFileWriter") {
598 
599  std::string streamLabel =
600  endPathPSet.getParameter<std::string> ("streamLabel");
601  int maxFileSizeMB = endPathPSet.getParameter<int> ("maxSize");
602 
603  ErrorStreamConfigurationInfo cfgInfo(streamLabel,
604  maxFileSizeMB);
605  errCfgList->push_back(cfgInfo);
606  }
607  }
608  }
609  }
610  }
T getParameter(std::string const &) const
bool empty() const
Definition: ParameterSet.h:212
T getUntrackedParameter(std::string const &, T const &) const
std::vector< std::string > Strings
Definition: MsgTools.h:18
static std::vector< std::string > getEventSelectionVString(edm::ParameterSet const &pset)
boost::shared_ptr< edm::ProcessDesc > processDesc()