otsdaq  v2_05_02_indev
ots::ARTDAQTableBase Class Reference
Inheritance diagram for ots::ARTDAQTableBase:
ots::TableBase ots::ARTDAQBoardReaderTable ots::ARTDAQDataLoggerTable ots::ARTDAQDispatcherTable ots::ARTDAQEventBuilderTable ots::ARTDAQRoutingMasterTable

Classes

struct  ARTDAQInfo
 
struct  ColARTDAQSubsystem
 
struct  ColARTDAQSupervisor
 
struct  ProcessInfo
 
struct  ProcessTypes
 
struct  SubsystemInfo
 

Public Types

enum  ARTDAQAppType {
  BoardReader, EventBuilder, DataLogger, Dispatcher,
  Monitor, RoutingMaster
}
 
enum  { DEFAULT_MAX_FRAGMENT_SIZE = 1048576, DEFAULT_ROUTING_TIMEOUT_MS = 1000, DEFAULT_ROUTING_RETRY_COUNT = 5 }
 

Public Member Functions

 ARTDAQTableBase (std::string tableName, std::string *accumulatedExceptions=0)
 
- Public Member Functions inherited from ots::TableBase
 TableBase (bool specialTable, const std::string &specialTableName)
 
 TableBase (const std::string &tableName, std::string *accumulatedExceptions=0)
 
virtual void init (ConfigurationManager *configManager)
 
void destroy (void)
 
void reset (bool keepTemporaryVersions=false)
 
void deactivate (void)
 
bool isActive (void)
 
void print (std::ostream &out=std::cout) const
 
std::string getTypeId (void)
 
void setupMockupView (TableVersion version)
 
void changeVersionAndActivateView (TableVersion temporaryVersion, TableVersion version)
 
bool isStored (const TableVersion &version) const
 
bool eraseView (TableVersion version)
 
void trimCache (unsigned int trimSize=-1)
 
void trimTemporary (TableVersion targetVersion=TableVersion())
 
TableVersion checkForDuplicate (TableVersion needleVersion, TableVersion ignoreVersion=TableVersion()) const
 
const std::string & getTableName (void) const
 
const std::string & getTableDescription (void) const
 
std::set< TableVersiongetStoredVersions (void) const
 
const TableViewgetView (void) const
 
TableViewgetViewP (void)
 
TableViewgetMockupViewP (void)
 
const TableVersiongetViewVersion (void) const
 
TableViewgetTemporaryView (TableVersion temporaryVersion)
 
TableVersion getNextTemporaryVersion (void) const
 
TableVersion getNextVersion (void) const
 
void setTableName (const std::string &tableName)
 
void setTableDescription (const std::string &tableDescription)
 
bool setActiveView (TableVersion version)
 
TableVersion copyView (const TableView &sourceView, TableVersion destinationVersion, const std::string &author)
 
TableVersion mergeViews (const TableView &sourceViewA, const TableView &sourceViewB, TableVersion destinationVersion, const std::string &author, const std::string &mergeApproach, std::map< std::pair< std::string, std::string >, std::string > &uidConversionMap, std::map< std::pair< std::string, std::pair< std::string, std::string > >, std::string > &groupidConversionMap, bool fillRecordConversionMaps, bool applyRecordConversionMaps, bool generateUniqueDataColumns=false)
 
TableVersion createTemporaryView (TableVersion sourceViewVersion=TableVersion(), TableVersion destTemporaryViewVersion=TableVersion::getNextTemporaryVersion())
 
bool latestAndMockupColumnNumberMismatch (void) const
 
unsigned int getNumberOfStoredViews (void) const
 

Static Public Member Functions

static const std::string & getTypeString (ARTDAQAppType type)
 
static std::string getFHICLFilename (ARTDAQAppType type, const std::string &name)
 
static std::string getFlatFHICLFilename (ARTDAQAppType type, const std::string &name)
 
static void flattenFHICL (ARTDAQAppType type, const std::string &name)
 
static void insertParameters (std::ostream &out, std::string &tabStr, std::string &commentStr, ConfigurationTree parameterLink, const std::string &parameterPreamble, bool onlyInsertAtTableParameters=false, bool includeAtTableParameters=false)
 
static std::string insertModuleType (std::ostream &out, std::string &tabStr, std::string &commentStr, ConfigurationTree moduleTypeNode)
 
static void insertMetricsBlock (std::ostream &out, std::string &tabStr, std::string &commentStr, ConfigurationTree daqNode)
 
static void outputBoardReaderFHICL (const ConfigurationTree &boardReaderNode, size_t maxFragmentSizeBytes=DEFAULT_MAX_FRAGMENT_SIZE, size_t routingTimeoutMs=DEFAULT_ROUTING_TIMEOUT_MS, size_t routingRetryCount=DEFAULT_ROUTING_RETRY_COUNT)
 
static void outputDataReceiverFHICL (const ConfigurationTree &receiverNode, ARTDAQAppType appType, size_t maxFragmentSizeBytes=DEFAULT_MAX_FRAGMENT_SIZE, size_t routingTimeoutMs=DEFAULT_ROUTING_TIMEOUT_MS, size_t routingRetryCount=DEFAULT_ROUTING_RETRY_COUNT)
 
static void outputRoutingMasterFHICL (const ConfigurationTree &routingMasterNode, size_t routingTimeoutMs=DEFAULT_ROUTING_TIMEOUT_MS, size_t routingRetryCount=DEFAULT_ROUTING_RETRY_COUNT)
 
static const ARTDAQInfoextractARTDAQInfo (ConfigurationTree artdaqSupervisorNode, bool getStatusFalseNodes=false, bool doWriteFHiCL=false, size_t maxFragmentSizeBytes=DEFAULT_MAX_FRAGMENT_SIZE, size_t routingTimeoutMs=DEFAULT_ROUTING_TIMEOUT_MS, size_t routingRetryCount=DEFAULT_ROUTING_RETRY_COUNT, ProgressBar *progressBar=0)
 
static const ARTDAQInfogetARTDAQSystem (ConfigurationManagerRW *cfgMgr, std::map< std::string, std::map< std::string, std::vector< std::string >>> &nodeTypeToObjectMap, std::map< std::string, std::string > &subsystemObjectMap, std::vector< std::string > &artdaqSupervisoInfo)
 
static void setAndActivateARTDAQSystem (ConfigurationManagerRW *cfgMgr, const std::map< std::string, std::map< std::string, std::vector< std::string >>> &nodeTypeToObjectMap, const std::map< std::string, std::string > &subsystemObjectMap)
 
- Static Public Member Functions inherited from ots::TableBase
static std::string convertToCaps (std::string &str, bool isConfigName=false)
 

Static Public Attributes

static const std::string ARTDAQ_FCL_PATH = std::string(__ENV__("USER_DATA")) + "/" + "ARTDAQConfigurations/"
 
static const std::string ARTDAQ_SUPERVISOR_CLASS = "ots::ARTDAQSupervisor"
 
static const std::string ARTDAQ_SUPERVISOR_TABLE = "ARTDAQSupervisorTable"
 
static const std::string ARTDAQ_READER_TABLE = "ARTDAQBoardReaderTable"
 
static const std::string ARTDAQ_BUILDER_TABLE = "ARTDAQEventBuilderTable"
 
static const std::string ARTDAQ_LOGGER_TABLE = "ARTDAQDataLoggerTable"
 
static const std::string ARTDAQ_DISPATCHER_TABLE = "ARTDAQDispatcherTable"
 
static const std::string ARTDAQ_MONITOR_TABLE = "ARTDAQMonitorTable"
 
static const std::string ARTDAQ_ROUTER_TABLE = "ARTDAQRoutingMasterTable"
 
static const std::string ARTDAQ_SUBSYSTEM_TABLE = "ARTDAQSubsystemTable"
 
static const std::string ARTDAQ_TYPE_TABLE_HOSTNAME = "ExecutionHostname"
 
static const std::string ARTDAQ_TYPE_TABLE_SUBSYSTEM_LINK = "SubsystemLink"
 
static const std::string ARTDAQ_TYPE_TABLE_SUBSYSTEM_LINK_UID = "SubsystemLinkUID"
 
static const int NULL_SUBSYSTEM_DESTINATION = 0
 
static const std::string NULL_SUBSYSTEM_DESTINATION_LABEL = "nullDestinationSubsystem"
 
static struct
ots::ARTDAQTableBase::ProcessTypes 
processTypes_
 
static struct
ots::ARTDAQTableBase::ColARTDAQSupervisor 
colARTDAQSupervisor_
 
static struct
ots::ARTDAQTableBase::ColARTDAQSubsystem 
colARTDAQSubsystem_
 

Additional Inherited Members

- Public Attributes inherited from ots::TableBase
const unsigned int MAX_VIEWS_IN_CACHE
 
- Protected Attributes inherited from ots::TableBase
std::string tableName_
 
std::string tableDescription_
 
TableViewactiveTableView_
 
TableView mockupTableView_
 
std::map< TableVersion, TableViewtableViews_
 

Detailed Description

Definition at line 18 of file ARTDAQTableBase.h.

Member Function Documentation

void ARTDAQTableBase::setAndActivateARTDAQSystem ( ConfigurationManagerRW cfgMgr,
const std::map< std::string, std::map< std::string, std::vector< std::string >>> &  nodeTypeToObjectMap,
const std::map< std::string, std::string > &  subsystemObjectMap 
)
static

needArtdaqSupervisorParents

Definition at line 2225 of file ARTDAQTableBase.cc.


The documentation for this class was generated from the following files: