Hall-D Software
alpha
|
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
#include <time.h>
#include <iostream>
#include <string>
#include <vector>
#include <stack>
#include <thread>
#include <TFile.h>
#include "DMapEVIOWords.h"
#include <DAQ/HDEVIO.h>
Go to the source code of this file.
Functions | |
void | Usage (string mess) |
void | ParseCommandLineArguments (int narg, char *argv[]) |
void | PrintSummary (void) |
void | MapEVIOWords (void) |
int | main (int narg, char *argv[]) |
Variables | |
vector< string > | filenames |
bool | PRINT_SUMMARY = true |
bool | SAVE_FILE_MAP = false |
bool | SKIP_EVENT_MAPPING = false |
bool | MAP_WORDS = false |
bool | GENERATE_ERROR_REPORT = false |
string | ROOT_FILENAME = "hdevio_scan.root" |
string | MAP_FILENAME = "" |
uint64_t | MAX_EVIO_EVENTS = 20000 |
uint64_t | SKIP_EVIO_EVENTS = 0 |
uint32_t | BLOCK_SIZE = 20 |
uint32_t | MAX_HISTORY_BUFF_SIZE = 400 |
int main | ( | int | narg, |
char * | argv[] | ||
) |
Definition at line 43 of file hdevio_scan.cc.
References MAP_WORDS, MapEVIOWords(), ParseCommandLineArguments(), PRINT_SUMMARY, and PrintSummary().
void MapEVIOWords | ( | void | ) |
Definition at line 217 of file hdevio_scan.cc.
References HDEVIO::err_code, HDEVIO::err_mess, filename, filenames, HDEVIO::HDEVIO_EOF, HDEVIO::HDEVIO_OK, HDEVIO::HDEVIO_USER_BUFFER_TOO_SMALL, HDEVIO::is_open, HDEVIO::last_event_len, MAX_EVIO_EVENTS, MAX_HISTORY_BUFF_SIZE, DMapEVIOWords::max_history_buff_size, Nevents, HDEVIO::readNoFileBuff(), ROOT_FILENAME, and SKIP_EVIO_EVENTS.
Referenced by main().
void ParseCommandLineArguments | ( | int | narg, |
char * | argv[] | ||
) |
void PrintSummary | ( | void | ) |
Definition at line 122 of file hdevio_scan.cc.
References HDEVIO::err_mess, HDEVIO::EVIOEventRecord::event_header, HDEVIO::EVIOEventRecord::event_len, HDEVIO::EVIOEventRecord::event_type, filename, filenames, GENERATE_ERROR_REPORT, HDEVIO::GetEVIOBlockRecords(), HDEVIO::is_open, HDEVIO::kBT_UNKNOWN, MAP_FILENAME, HDEVIO::EVIOEventRecord::pos, HDEVIO::EVIOBlockRecord::pos, HDEVIO::PrintFileSummary(), SAVE_FILE_MAP, HDEVIO::SaveFileMap(), SKIP_EVENT_MAPPING, HDEVIO::SKIP_EVENT_MAPPING, sprintf(), start_time, and str.
Referenced by main().
void Usage | ( | string | mess = "" | ) |
uint32_t BLOCK_SIZE = 20 |
Definition at line 37 of file hdevio_scan.cc.
Referenced by DMapEVIOWords::DMapEVIOWords(), and DMapEVIOWords::ParseEvent().
vector<string> filenames |
Definition at line 27 of file hdevio_scan.cc.
bool GENERATE_ERROR_REPORT = false |
Definition at line 32 of file hdevio_scan.cc.
Referenced by PrintSummary().
string MAP_FILENAME = "" |
Definition at line 34 of file hdevio_scan.cc.
Referenced by PrintSummary().
bool MAP_WORDS = false |
Definition at line 31 of file hdevio_scan.cc.
Referenced by main().
uint64_t MAX_EVIO_EVENTS = 20000 |
Definition at line 35 of file hdevio_scan.cc.
Referenced by MapEVIOWords().
uint32_t MAX_HISTORY_BUFF_SIZE = 400 |
Definition at line 38 of file hdevio_scan.cc.
Referenced by MapEVIOWords().
bool PRINT_SUMMARY = true |
Definition at line 28 of file hdevio_scan.cc.
Referenced by main().
string ROOT_FILENAME = "hdevio_scan.root" |
Definition at line 33 of file hdevio_scan.cc.
Referenced by MapEVIOWords().
bool SAVE_FILE_MAP = false |
Definition at line 29 of file hdevio_scan.cc.
Referenced by PrintSummary().
bool SKIP_EVENT_MAPPING = false |
Definition at line 30 of file hdevio_scan.cc.
Referenced by PrintSummary().
uint64_t SKIP_EVIO_EVENTS = 0 |
Definition at line 36 of file hdevio_scan.cc.
Referenced by MapEVIOWords().