NSCL DDAS
12.1-001
Support for XIA DDAS at FRIB
|
Main program to use the format library to dump DDAS event files. Based on the unified format library evtdump example code. More...
#include <cstdlib>
#include <iostream>
#include <string>
#include <sstream>
#include <map>
#include <memory>
#include <algorithm>
#include <fstream>
#include <NSCLDAQFormatFactorySelector.h>
#include <DataFormat.h>
#include <RingItemFactoryBase.h>
#include <CRingItem.h>
#include <CAbnormalEndItem.h>
#include <CDataFormatItem.h>
#include <CGlomParameters.h>
#include <CPhysicsEventItem.h>
#include <CRingFragmentItem.h>
#include <CRingPhysicsEventCountItem.h>
#include <CRingScalerItem.h>
#include <CRingTextItem.h>
#include <CRingStateChangeItem.h>
#include <CUnknownFragment.h>
#include <URL.h>
#include "dumperargs.h"
#include "DataSource.h"
#include "FdDataSource.h"
#include "StreamDataSource.h"
#include "RootFileDataSink.h"
Functions | |
std::vector< uint32_t > | makeExclusionList (const std::string &exclusions) |
Creates a vector of the ring item types to be excluded from the dump given a comma separated list of types. More... | |
DataSource * | makeDataSource (::ufmt::RingItemFactoryBase *pFactory, const std::string &strUrl) |
Parse the URI of the source and based on the parse create the underlying connection. Create the correct concrete instance of DataSource given all that. More... | |
int | main (int argc, char *argv[]) |
Setup, configure dumper settings and dump events. More... | |
Main program to use the format library to dump DDAS event files. Based on the unified format library evtdump example code.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Setup, configure dumper settings and dump events.
argc,argv | Argument count and argument vector. |
std::exit(EXIT_FAILURE)
. DataSource* makeDataSource | ( | ::ufmt::RingItemFactoryBase * | pFactory, |
const std::string & | strUrl | ||
) |
Parse the URI of the source and based on the parse create the underlying connection. Create the correct concrete instance of DataSource given all that.
pFactory | Pointer to the ring item factory to use. |
strUrl | String URI of the connection. |
std::invalid_argument | If a ringbuffer data source is requested. The unified format library is incorporated into the NSCLDAQ, but does not have NSCLDAQ support enabled as its installed first. |
std::vector<uint32_t> makeExclusionList | ( | const std::string & | exclusions | ) |
Creates a vector of the ring item types to be excluded from the dump given a comma separated list of types.
exclusions | - string containing the exclusion list. |
std::invalid_argument | an exclusion item is not a string and is not in the map of recognized item types. |
A type can be a string or a positive number. If it is a string, it is translated to the type id using TypeMap. If it is a number, it is used as is.