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  FragKey
 
class  FragmentMonitorCollection
 
class  FragmentProcessor
 
class  FragmentStore
 
class  FRDFileHandler
 
class  FRDStreamHandler
 
class  FUProxy
 
class  Halt
 
class  HaltDone
 
class  Halted
 
class  Halting
 
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
< CurlInterface
CurlInterfacePtr
 
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 116 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 406 of file Configuration.h.

typedef boost::shared_ptr<CurlInterface> stor::CurlInterfacePtr

Definition at line 71 of file CurlInterface.h.

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

Definition at line 71 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.5
Date:
2011/03/07 15:31:31

Definition at line 22 of file DQMEventQueue.h.

A collection of ConcurrentQueue<DQMEventRecord>.

Author:
mommsen
Revision:
1.4
Date:
2011/03/07 15:31:31

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 186 of file DQMTopLevelFolder.h.

Definition at line 605 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.6
Date:
2011/03/07 15:31:31

Definition at line 21 of file CommandQueue.h.

A collection of ConcurrentQueue<I2OChain>.

Author:
mommsen
Revision:
1.4
Date:
2011/03/07 15:31:31

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.4
Date:
2011/03/07 15:31:32

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.15
Date:
2012/04/20 10:48:18

Definition at line 20 of file InitMsgCollection.h.

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

Definition at line 179 of file InitMsgCollection.h.

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

Definition at line 33 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.6
Date:
2011/03/07 15:31:32

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 65 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 203 of file StatisticsReporter.h.

typedef size_t stor::StreamID

Definition of the StreamID used in the storage manager

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

Definition at line 19 of file StreamID.h.

Queue holding I2OChains of events to be written to disk

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

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 836 of file DataSenderMonitorCollection.cc.

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

840  {
841  return *firstValue < *secondValue;
842  }
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 550 of file Configuration.cc.

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

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

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