MiniballSort
Loading...
Searching...
No Matches
mb_sort.cc File Reference
#include "mb_sort.hh"
#include "MiniballGUI.hh"
#include "Settings.hh"
#include "Calibration.hh"
#include "Reaction.hh"
#include "MidasConverter.hh"
#include "MbsConverter.hh"
#include "MedConverter.hh"
#include "EventBuilder.hh"
#include "Histogrammer.hh"
#include "DataSpy.hh"
#include "MiniballAngleFitter.hh"
#include "CDCalibrator.hh"
#include "CommandLineInterface.hh"

Go to the source code of this file.

Classes

struct  thptr
 

Typedefs

typedef struct thptr thread_data
 

Functions

void reset_conv_hists ()
 
void reset_evnt_hists ()
 
void reset_phys_hists ()
 
void stop_monitor ()
 
void start_monitor ()
 
void signal_callback_handler (int signum)
 
void * monitor_run (void *ptr)
 
void start_http ()
 
void ReadSpyHistogramList ()
 
void do_convert ()
 
bool do_build ()
 
void do_hist ()
 
void do_angle_fit ()
 
void do_cdcal ()
 
int main (int argc, char *argv[])
 

Variables

std::string output_name
 
std::string datadir_name
 
std::string name_set_file
 
std::string name_cal_file
 
std::string name_react_file
 
std::string name_angle_file = ""
 
std::vector< std::string > input_names
 
bool flag_convert = false
 
bool flag_events = false
 
bool flag_source = false
 
bool flag_ebis = false
 
std::vector< bool > force_convert
 
bool force_sort = false
 
bool force_events = false
 
bool help_flag = false
 
bool gui_flag = false
 
bool flag_midas = false
 
bool flag_mbs = false
 
bool flag_med = false
 
bool flag_angle_fit = false
 
bool flag_cdcal = false
 
std::string cdcal_strips
 
unsigned char cdcal_pid = 12
 
unsigned char cdcal_nid = 2
 
bool flag_spy = false
 
bool flag_alive = true
 
int open_spy_data = -1
 
bool flag_monitor = false
 
int mon_time = -1
 
std::shared_ptr< MiniballSettingsmyset
 
std::shared_ptr< MiniballCalibrationmycal
 
bool overwrite_cal = false
 
std::shared_ptr< MiniballReactionmyreact
 
std::unique_ptr< THttpServer > serv
 
int port_num = 8030
 
std::string spy_hists_file
 
std::vector< std::vector< std::string > > physhists
 
short spylayout [2] = {2,2}
 
std::shared_ptr< MiniballConverterconv_mon
 
std::shared_ptr< MiniballMbsConverterconv_mbs_mon
 
std::shared_ptr< MiniballMidasConverterconv_midas_mon
 
std::shared_ptr< MiniballEventBuildereb_mon
 
std::shared_ptr< MiniballHistogrammerhist_mon
 

Typedef Documentation

◆ thread_data

typedef struct thptr thread_data

Function Documentation

◆ do_angle_fit()

void do_angle_fit ( )

Definition at line 795 of file mb_sort.cc.

Referenced by main().

◆ do_build()

bool do_build ( )

Definition at line 656 of file mb_sort.cc.

Referenced by main().

◆ do_cdcal()

void do_cdcal ( )

Definition at line 878 of file mb_sort.cc.

Referenced by main().

◆ do_convert()

void do_convert ( )

Definition at line 525 of file mb_sort.cc.

Referenced by main().

◆ do_hist()

void do_hist ( )

Definition at line 746 of file mb_sort.cc.

Referenced by main().

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 939 of file mb_sort.cc.

Referenced by MyDialog::MyDialog().

◆ monitor_run()

void * monitor_run ( void * ptr)

‍TapeServer volume = /dev/file/<id> ... <id> = 0 on issdaqpc2

open the data spy

Definition at line 185 of file mb_sort.cc.

Referenced by main().

◆ ReadSpyHistogramList()

void ReadSpyHistogramList ( )

Definition at line 457 of file mb_sort.cc.

Referenced by main().

◆ reset_conv_hists()

void reset_conv_hists ( )

Definition at line 159 of file mb_sort.cc.

Referenced by ResetAll(), and ResetConv().

◆ reset_evnt_hists()

void reset_evnt_hists ( )

Definition at line 163 of file mb_sort.cc.

Referenced by ResetAll(), and ResetEvnt().

◆ reset_phys_hists()

void reset_phys_hists ( )

Definition at line 167 of file mb_sort.cc.

Referenced by ResetAll(), and ResetHist().

◆ signal_callback_handler()

void signal_callback_handler ( int signum)

Definition at line 179 of file mb_sort.cc.

◆ start_http()

void start_http ( )

Definition at line 425 of file mb_sort.cc.

Referenced by main().

◆ start_monitor()

void start_monitor ( )

Definition at line 175 of file mb_sort.cc.

Referenced by StartMonitor().

◆ stop_monitor()

void stop_monitor ( )

Definition at line 171 of file mb_sort.cc.

Referenced by StopMonitor().

Variable Documentation

◆ cdcal_nid

unsigned char cdcal_nid = 2

Definition at line 111 of file mb_sort.cc.

Referenced by do_cdcal(), and main().

◆ cdcal_pid

unsigned char cdcal_pid = 12

Definition at line 110 of file mb_sort.cc.

Referenced by do_cdcal(), and main().

◆ cdcal_strips

std::string cdcal_strips

Definition at line 109 of file mb_sort.cc.

Referenced by main().

◆ conv_mbs_mon

std::shared_ptr<MiniballMbsConverter> conv_mbs_mon

Definition at line 154 of file mb_sort.cc.

Referenced by monitor_run().

◆ conv_midas_mon

std::shared_ptr<MiniballMidasConverter> conv_midas_mon

Definition at line 155 of file mb_sort.cc.

Referenced by monitor_run().

◆ conv_mon

std::shared_ptr<MiniballConverter> conv_mon

Definition at line 153 of file mb_sort.cc.

Referenced by monitor_run(), and reset_conv_hists().

◆ datadir_name

std::string datadir_name

Definition at line 75 of file mb_sort.cc.

Referenced by do_angle_fit(), do_build(), do_cdcal(), do_convert(), do_hist(), main(), and monitor_run().

◆ eb_mon

std::shared_ptr<MiniballEventBuilder> eb_mon

Definition at line 156 of file mb_sort.cc.

Referenced by monitor_run(), and reset_evnt_hists().

◆ flag_alive

bool flag_alive = true

Definition at line 115 of file mb_sort.cc.

Referenced by main(), and signal_callback_handler().

◆ flag_angle_fit

bool flag_angle_fit = false

Definition at line 105 of file mb_sort.cc.

Referenced by main().

◆ flag_cdcal

bool flag_cdcal = false

Definition at line 108 of file mb_sort.cc.

Referenced by main().

◆ flag_convert

bool flag_convert = false

Definition at line 83 of file mb_sort.cc.

Referenced by do_build(), do_convert(), and main().

◆ flag_ebis

bool flag_ebis = false

Definition at line 86 of file mb_sort.cc.

Referenced by do_convert(), main(), and monitor_run().

◆ flag_events

bool flag_events = false

Definition at line 84 of file mb_sort.cc.

Referenced by do_build(), and main().

◆ flag_mbs

bool flag_mbs = false

Definition at line 101 of file mb_sort.cc.

Referenced by do_convert(), main(), and monitor_run().

◆ flag_med

bool flag_med = false

Definition at line 102 of file mb_sort.cc.

Referenced by do_convert(), main(), and monitor_run().

◆ flag_midas

bool flag_midas = false

Definition at line 100 of file mb_sort.cc.

Referenced by do_convert(), main(), and monitor_run().

◆ flag_monitor

bool flag_monitor = false

Definition at line 119 of file mb_sort.cc.

Referenced by main().

◆ flag_source

bool flag_source = false

Definition at line 85 of file mb_sort.cc.

Referenced by do_convert(), main(), and monitor_run().

◆ flag_spy

bool flag_spy = false

Definition at line 114 of file mb_sort.cc.

Referenced by main(), and monitor_run().

◆ force_convert

std::vector<bool> force_convert

Definition at line 89 of file mb_sort.cc.

Referenced by do_build(), and do_convert().

◆ force_events

bool force_events = false

Definition at line 91 of file mb_sort.cc.

Referenced by do_build().

◆ force_sort

bool force_sort = false

Definition at line 90 of file mb_sort.cc.

◆ gui_flag

bool gui_flag = false

Definition at line 97 of file mb_sort.cc.

Referenced by main().

◆ help_flag

bool help_flag = false

Definition at line 94 of file mb_sort.cc.

Referenced by main().

◆ hist_mon

std::shared_ptr<MiniballHistogrammer> hist_mon

Definition at line 157 of file mb_sort.cc.

Referenced by monitor_run(), and reset_phys_hists().

◆ input_names

std::vector<std::string> input_names

Definition at line 80 of file mb_sort.cc.

Referenced by do_angle_fit(), do_build(), do_cdcal(), do_convert(), do_hist(), main(), and monitor_run().

◆ mon_time

int mon_time = -1

Definition at line 120 of file mb_sort.cc.

Referenced by main(), and monitor_run().

◆ mycal

◆ myreact

std::shared_ptr<MiniballReaction> myreact

◆ myset

◆ name_angle_file

std::string name_angle_file = ""

Definition at line 79 of file mb_sort.cc.

Referenced by do_angle_fit(), and main().

◆ name_cal_file

std::string name_cal_file

Definition at line 77 of file mb_sort.cc.

Referenced by main(), and MiniballGUI::on_sort_clicked().

◆ name_react_file

std::string name_react_file

Definition at line 78 of file mb_sort.cc.

Referenced by main().

◆ name_set_file

std::string name_set_file

Definition at line 76 of file mb_sort.cc.

Referenced by main(), and MiniballGUI::on_sort_clicked().

◆ open_spy_data

int open_spy_data = -1

Definition at line 116 of file mb_sort.cc.

◆ output_name

std::string output_name

Definition at line 74 of file mb_sort.cc.

Referenced by do_cdcal(), do_hist(), and main().

◆ overwrite_cal

bool overwrite_cal = false

Definition at line 127 of file mb_sort.cc.

Referenced by do_build(), do_cdcal(), and main().

◆ physhists

std::vector<std::vector<std::string> > physhists

Definition at line 136 of file mb_sort.cc.

Referenced by main(), and ReadSpyHistogramList().

◆ port_num

int port_num = 8030

Definition at line 134 of file mb_sort.cc.

Referenced by main(), and start_http().

◆ serv

std::unique_ptr<THttpServer> serv

Definition at line 133 of file mb_sort.cc.

Referenced by monitor_run(), and start_http().

◆ spy_hists_file

std::string spy_hists_file

Definition at line 135 of file mb_sort.cc.

Referenced by main(), and ReadSpyHistogramList().

◆ spylayout

short spylayout[2] = {2,2}

Definition at line 137 of file mb_sort.cc.

Referenced by main(), and ReadSpyHistogramList().