MiniballSort
Loading...
Searching...
No Matches
MiniballConverter Class Reference

#include <Converter.hh>

Inheritance diagram for MiniballConverter:
MiniballMbsConverter MiniballMedConverter MiniballMidasConverter

Public Member Functions

 MiniballConverter (std::shared_ptr< MiniballSettings > myset)
 
 ~MiniballConverter ()
 
void MakeHists ()
 
void NewBuffer ()
 
void ResetHists ()
 
void MakeTree ()
 
void StartFile ()
 
void BuildMbsIndex ()
 
void SortDataVector ()
 
void SortDataMap ()
 
unsigned long long int SortTree (bool do_sort=true)
 
void SetOutput (std::string output_file_name)
 
void SetOutputDirectory (std::string output_dir)
 
void CloseOutput ()
 
void PurgeOutput ()
 
TFile * GetFile ()
 
TTree * GetTree ()
 
TTree * GetMbsInfo ()
 
TTree * GetSortedTree ()
 
void AddCalibration (std::shared_ptr< MiniballCalibration > mycal)
 
void SourceOnly ()
 
void EBISOnly ()
 
bool EBISWindow (long long int t)
 
void AddProgressBar (std::shared_ptr< TGProgressBar > myprog)
 

Static Public Member Functions

static bool TimeComparator (const std::shared_ptr< MiniballDataPackets > &lhs, const std::shared_ptr< MiniballDataPackets > &rhs)
 
static bool MapComparator (const std::pair< unsigned long, double > &lhs, const std::pair< unsigned long, double > &rhs)
 

Protected Attributes

bool flag_source
 
bool flag_ebis
 
std::stringstream sslogs
 
bool flag_febex_data0
 
bool flag_febex_data1
 
bool flag_febex_data2
 
bool flag_febex_data3
 
bool flag_febex_trace
 
bool flag_febex_info
 
unsigned long long my_good_tm_stp = 0
 
unsigned long long my_tm_stp = 0
 
unsigned long long sync_tm_stp = 0
 
long long ebis_tm_stp = 0
 
unsigned long long my_event_id
 
unsigned long my_tm_stp_lsb = 0
 
unsigned long my_tm_stp_msb = 0
 
unsigned long my_tm_stp_hsb = 0
 
unsigned long sync_tm_stp_msb = 0
 
unsigned long sync_tm_stp_hsb = 0
 
unsigned int my_info_field
 
unsigned int ebis_period = 0
 
unsigned int ebis_first = 0
 
unsigned char my_info_code
 
unsigned char my_type
 
unsigned short my_tdiff_data
 
unsigned short my_adc_data
 
unsigned short my_adc_data_lsb
 
unsigned short my_adc_data_hsb
 
unsigned int my_adc_data_int
 
unsigned char my_tag_id
 
unsigned char my_sfp_id
 
unsigned char my_board_id
 
unsigned char my_ch_id
 
unsigned char my_data_id
 
unsigned char my_trig_id
 
long my_hit_time
 
bool my_pileup
 
bool my_clip
 
bool my_flagbit
 
float my_energy
 
unsigned int nsamples
 
bool mbs_data
 
bool midas_data
 
bool med_data
 
bool buffer_full = false
 
bool buffer_part = false
 
unsigned long long qmax_default
 
std::shared_ptr< MBSInfoPacketsmbsinfo_packet = nullptr
 
std::shared_ptr< MiniballDataPacketswrite_packet = nullptr
 
std::shared_ptr< DgfDatadgf_data
 
std::shared_ptr< AdcDataadc_data
 
std::shared_ptr< FebexDatafebex_data
 
std::shared_ptr< InfoDatainfo_data
 
std::vector< std::shared_ptr< MiniballDataPackets > > data_vector
 
std::vector< std::pair< unsigned long, double > > data_map
 
std::string output_dir_name
 
TFile * output_file
 
TTree * sorted_tree
 
TTree * mbsinfo_tree
 
std::vector< unsigned long int > ctr_dgf_hit
 
std::vector< unsigned long int > ctr_madc_hit
 
std::vector< unsigned long int > ctr_caen_hit
 
std::vector< std::vector< unsigned long int > > ctr_febex_hit
 
std::vector< std::vector< unsigned long int > > ctr_febex_pause
 
std::vector< std::vector< unsigned long int > > ctr_febex_resume
 
std::vector< std::vector< unsigned long int > > ctr_febex_sync
 
unsigned long int jump_ctr
 
unsigned long int warp_ctr
 
unsigned long int mash_ctr
 
unsigned long int data_ctr
 
unsigned long int reject_ctr
 
std::vector< std::vector< TProfile * > > hfebex_hit
 
std::vector< std::vector< TProfile * > > hfebex_pause
 
std::vector< std::vector< TProfile * > > hfebex_resume
 
std::vector< std::vector< TProfile * > > hfebex_sync
 
std::vector< std::vector< TH1F * > > hdgf_qshort
 
std::vector< std::vector< TH1F * > > hdgf_cal
 
std::vector< std::vector< TH1F * > > hadc_qshort
 
std::vector< std::vector< TH1F * > > hadc_cal
 
std::vector< std::vector< std::vector< TH1F * > > > hfebex_qint
 
std::vector< std::vector< std::vector< TH1F * > > > hfebex_qshort
 
std::vector< std::vector< std::vector< TH1F * > > > hfebex_cal
 
std::vector< std::vector< std::vector< TH1F * > > > hfebex_mwd
 
TH1F * hhit_time
 
std::vector< bool > first_data
 
std::vector< long long int > tm_stp_read
 
std::vector< std::vector< long long int > > tm_stp_febex
 
std::vector< std::vector< std::vector< long long int > > > tm_stp_febex_ch
 
std::shared_ptr< MiniballSettingsset
 
std::shared_ptr< MiniballCalibrationcal
 
bool _prog_
 
std::shared_ptr< TGProgressBar > prog
 
TList * histlist
 

Detailed Description

Definition at line 41 of file Converter.hh.

Constructor & Destructor Documentation

◆ MiniballConverter()

MiniballConverter::MiniballConverter ( std::shared_ptr< MiniballSettings > myset)

Definition at line 4 of file Converter.cc.

◆ ~MiniballConverter()

MiniballConverter::~MiniballConverter ( )
inline

Definition at line 46 of file Converter.hh.

Member Function Documentation

◆ AddCalibration()

void MiniballConverter::AddCalibration ( std::shared_ptr< MiniballCalibration > mycal)
inline

Definition at line 79 of file Converter.hh.

Referenced by do_convert(), and MiniballGUI::gui_convert().

◆ AddProgressBar()

void MiniballConverter::AddProgressBar ( std::shared_ptr< TGProgressBar > myprog)
inline

Definition at line 92 of file Converter.hh.

Referenced by MiniballGUI::gui_convert().

◆ BuildMbsIndex()

void MiniballConverter::BuildMbsIndex ( )

Definition at line 452 of file Converter.cc.

Referenced by do_convert(), and MiniballGUI::gui_convert().

◆ CloseOutput()

void MiniballConverter::CloseOutput ( )
inline

Definition at line 65 of file Converter.hh.

Referenced by do_convert(), and MiniballGUI::gui_convert().

◆ EBISOnly()

void MiniballConverter::EBISOnly ( )
inline

Definition at line 81 of file Converter.hh.

Referenced by do_convert(), and MiniballGUI::gui_convert().

◆ EBISWindow()

bool MiniballConverter::EBISWindow ( long long int t)
inline

Definition at line 82 of file Converter.hh.

Referenced by MiniballMidasConverter::FinishFebexData().

◆ GetFile()

TFile * MiniballConverter::GetFile ( )
inline

Definition at line 74 of file Converter.hh.

◆ GetMbsInfo()

TTree * MiniballConverter::GetMbsInfo ( )
inline

Definition at line 76 of file Converter.hh.

◆ GetSortedTree()

TTree * MiniballConverter::GetSortedTree ( )
inline

Definition at line 77 of file Converter.hh.

Referenced by GetTree().

◆ GetTree()

TTree * MiniballConverter::GetTree ( )
inline

Definition at line 75 of file Converter.hh.

◆ MakeHists()

void MiniballConverter::MakeHists ( )

Definition at line 150 of file Converter.cc.

Referenced by do_convert(), and MiniballGUI::gui_convert().

◆ MakeTree()

void MiniballConverter::MakeTree ( )

Definition at line 121 of file Converter.cc.

Referenced by do_convert(), and MiniballGUI::gui_convert().

◆ MapComparator()

bool MiniballConverter::MapComparator ( const std::pair< unsigned long, double > & lhs,
const std::pair< unsigned long, double > & rhs )
static

Definition at line 468 of file Converter.cc.

Referenced by SortDataMap().

◆ NewBuffer()

void MiniballConverter::NewBuffer ( )

Definition at line 54 of file Converter.cc.

Referenced by MiniballMidasConverter::ProcessBlockData().

◆ PurgeOutput()

void MiniballConverter::PurgeOutput ( )
inline

Definition at line 71 of file Converter.hh.

Referenced by CloseOutput().

◆ ResetHists()

void MiniballConverter::ResetHists ( )

Definition at line 437 of file Converter.cc.

◆ SetOutput()

void MiniballConverter::SetOutput ( std::string output_file_name)

Definition at line 111 of file Converter.cc.

Referenced by do_convert(), and MiniballGUI::gui_convert().

◆ SetOutputDirectory()

void MiniballConverter::SetOutputDirectory ( std::string output_dir)
inline

Definition at line 63 of file Converter.hh.

◆ SortDataMap()

void MiniballConverter::SortDataMap ( )

Definition at line 482 of file Converter.cc.

Referenced by SortTree().

◆ SortDataVector()

void MiniballConverter::SortDataVector ( )

Definition at line 475 of file Converter.cc.

◆ SortTree()

unsigned long long int MiniballConverter::SortTree ( bool do_sort = true)

Definition at line 489 of file Converter.cc.

Referenced by do_convert(), and MiniballGUI::gui_convert().

◆ SourceOnly()

void MiniballConverter::SourceOnly ( )
inline

Definition at line 80 of file Converter.hh.

Referenced by do_convert(), and MiniballGUI::gui_convert().

◆ StartFile()

void MiniballConverter::StartFile ( )

◆ TimeComparator()

bool MiniballConverter::TimeComparator ( const std::shared_ptr< MiniballDataPackets > & lhs,
const std::shared_ptr< MiniballDataPackets > & rhs )
static

Definition at line 461 of file Converter.cc.

Referenced by SortDataVector().

Member Data Documentation

◆ _prog_

◆ adc_data

std::shared_ptr<AdcData> MiniballConverter::adc_data
protected

Definition at line 165 of file Converter.hh.

Referenced by MakeTree(), and MiniballMedConverter::ProcessMesytecAdcData().

◆ buffer_full

bool MiniballConverter::buffer_full = false
protected

Definition at line 155 of file Converter.hh.

Referenced by MiniballMidasConverter::ProcessBlockData(), and StartFile().

◆ buffer_part

bool MiniballConverter::buffer_part = false
protected

Definition at line 156 of file Converter.hh.

Referenced by MiniballMidasConverter::ProcessBlockData().

◆ cal

◆ ctr_caen_hit

std::vector<unsigned long int> MiniballConverter::ctr_caen_hit
protected

Definition at line 182 of file Converter.hh.

◆ ctr_dgf_hit

std::vector<unsigned long int> MiniballConverter::ctr_dgf_hit
protected

Definition at line 180 of file Converter.hh.

◆ ctr_febex_hit

std::vector<std::vector<unsigned long int> > MiniballConverter::ctr_febex_hit
protected

◆ ctr_febex_pause

std::vector<std::vector<unsigned long int> > MiniballConverter::ctr_febex_pause
protected

◆ ctr_febex_resume

std::vector<std::vector<unsigned long int> > MiniballConverter::ctr_febex_resume
protected

◆ ctr_febex_sync

std::vector<std::vector<unsigned long int> > MiniballConverter::ctr_febex_sync
protected

◆ ctr_madc_hit

std::vector<unsigned long int> MiniballConverter::ctr_madc_hit
protected

Definition at line 181 of file Converter.hh.

◆ data_ctr

unsigned long int MiniballConverter::data_ctr
protected

◆ data_map

◆ data_vector

◆ dgf_data

std::shared_ptr<DgfData> MiniballConverter::dgf_data
protected

Definition at line 164 of file Converter.hh.

Referenced by MakeTree(), and MiniballMedConverter::ProcessDgfData().

◆ ebis_first

unsigned int MiniballConverter::ebis_first = 0
protected

Definition at line 128 of file Converter.hh.

Referenced by MiniballMidasConverter::FinishFebexData().

◆ ebis_period

unsigned int MiniballConverter::ebis_period = 0
protected

Definition at line 127 of file Converter.hh.

Referenced by EBISWindow(), and MiniballMidasConverter::FinishFebexData().

◆ ebis_tm_stp

long long MiniballConverter::ebis_tm_stp = 0
protected

Definition at line 119 of file Converter.hh.

Referenced by EBISWindow(), and MiniballMidasConverter::FinishFebexData().

◆ febex_data

◆ first_data

std::vector<bool> MiniballConverter::first_data
protected

◆ flag_ebis

bool MiniballConverter::flag_ebis
protected

◆ flag_febex_data0

◆ flag_febex_data1

bool MiniballConverter::flag_febex_data1
protected

◆ flag_febex_data2

bool MiniballConverter::flag_febex_data2
protected

◆ flag_febex_data3

bool MiniballConverter::flag_febex_data3
protected

◆ flag_febex_info

bool MiniballConverter::flag_febex_info
protected

◆ flag_febex_trace

◆ flag_source

◆ hadc_cal

std::vector<std::vector<TH1F*> > MiniballConverter::hadc_cal
protected

Definition at line 201 of file Converter.hh.

Referenced by MakeHists(), and MiniballMedConverter::ProcessMesytecAdcData().

◆ hadc_qshort

std::vector<std::vector<TH1F*> > MiniballConverter::hadc_qshort
protected

Definition at line 200 of file Converter.hh.

Referenced by MakeHists(), and MiniballMedConverter::ProcessMesytecAdcData().

◆ hdgf_cal

std::vector<std::vector<TH1F*> > MiniballConverter::hdgf_cal
protected

Definition at line 199 of file Converter.hh.

Referenced by MakeHists(), and MiniballMedConverter::ProcessDgfData().

◆ hdgf_qshort

std::vector<std::vector<TH1F*> > MiniballConverter::hdgf_qshort
protected

Definition at line 198 of file Converter.hh.

Referenced by MakeHists(), and MiniballMedConverter::ProcessDgfData().

◆ hfebex_cal

std::vector<std::vector<std::vector<TH1F*> > > MiniballConverter::hfebex_cal
protected

◆ hfebex_hit

std::vector<std::vector<TProfile*> > MiniballConverter::hfebex_hit
protected

◆ hfebex_mwd

std::vector<std::vector<std::vector<TH1F*> > > MiniballConverter::hfebex_mwd
protected

◆ hfebex_pause

std::vector<std::vector<TProfile*> > MiniballConverter::hfebex_pause
protected

Definition at line 194 of file Converter.hh.

Referenced by MakeHists(), and MiniballMidasConverter::ProcessInfoData().

◆ hfebex_qint

std::vector<std::vector<std::vector<TH1F*> > > MiniballConverter::hfebex_qint
protected

◆ hfebex_qshort

std::vector<std::vector<std::vector<TH1F*> > > MiniballConverter::hfebex_qshort
protected

Definition at line 203 of file Converter.hh.

Referenced by MiniballMidasConverter::FinishFebexData(), and MakeHists().

◆ hfebex_resume

std::vector<std::vector<TProfile*> > MiniballConverter::hfebex_resume
protected

Definition at line 195 of file Converter.hh.

Referenced by MakeHists(), and MiniballMidasConverter::ProcessInfoData().

◆ hfebex_sync

std::vector<std::vector<TProfile*> > MiniballConverter::hfebex_sync
protected

Definition at line 196 of file Converter.hh.

Referenced by MakeHists(), and MiniballMidasConverter::ProcessInfoData().

◆ hhit_time

TH1F* MiniballConverter::hhit_time
protected

Definition at line 207 of file Converter.hh.

Referenced by MakeHists(), and MiniballMbsConverter::ProcessFebexData().

◆ histlist

TList* MiniballConverter::histlist
protected

Definition at line 227 of file Converter.hh.

Referenced by MakeHists(), MiniballConverter(), and ResetHists().

◆ info_data

◆ jump_ctr

unsigned long int MiniballConverter::jump_ctr
protected

◆ mash_ctr

unsigned long int MiniballConverter::mash_ctr
protected

◆ mbs_data

◆ mbsinfo_packet

std::shared_ptr<MBSInfoPackets> MiniballConverter::mbsinfo_packet = nullptr
protected

◆ mbsinfo_tree

TTree* MiniballConverter::mbsinfo_tree
protected

◆ med_data

◆ midas_data

◆ my_adc_data

unsigned short MiniballConverter::my_adc_data
protected

Definition at line 132 of file Converter.hh.

Referenced by MiniballMidasConverter::ProcessFebexData().

◆ my_adc_data_hsb

unsigned short MiniballConverter::my_adc_data_hsb
protected

◆ my_adc_data_int

unsigned int MiniballConverter::my_adc_data_int
protected

◆ my_adc_data_lsb

unsigned short MiniballConverter::my_adc_data_lsb
protected

◆ my_board_id

◆ my_ch_id

◆ my_clip

bool MiniballConverter::my_clip
protected

Definition at line 144 of file Converter.hh.

Referenced by MiniballMidasConverter::ProcessFebexData().

◆ my_data_id

unsigned char MiniballConverter::my_data_id
protected

◆ my_energy

float MiniballConverter::my_energy
protected

◆ my_event_id

◆ my_flagbit

bool MiniballConverter::my_flagbit
protected

◆ my_good_tm_stp

unsigned long long MiniballConverter::my_good_tm_stp = 0
protected

◆ my_hit_time

long MiniballConverter::my_hit_time
protected

Definition at line 142 of file Converter.hh.

Referenced by MiniballMbsConverter::ProcessFebexData().

◆ my_info_code

unsigned char MiniballConverter::my_info_code
protected

◆ my_info_field

unsigned int MiniballConverter::my_info_field
protected

Definition at line 126 of file Converter.hh.

Referenced by MiniballMidasConverter::ProcessInfoData().

◆ my_pileup

bool MiniballConverter::my_pileup
protected

Definition at line 143 of file Converter.hh.

Referenced by MiniballMidasConverter::ProcessFebexData().

◆ my_sfp_id

◆ my_tag_id

unsigned char MiniballConverter::my_tag_id
protected

Definition at line 136 of file Converter.hh.

Referenced by MiniballMbsConverter::GetFebexChanID().

◆ my_tdiff_data

unsigned short MiniballConverter::my_tdiff_data
protected

Definition at line 131 of file Converter.hh.

Referenced by MiniballMidasConverter::ProcessFebexData().

◆ my_tm_stp

◆ my_tm_stp_hsb

unsigned long MiniballConverter::my_tm_stp_hsb = 0
protected

◆ my_tm_stp_lsb

unsigned long MiniballConverter::my_tm_stp_lsb = 0
protected

◆ my_tm_stp_msb

unsigned long MiniballConverter::my_tm_stp_msb = 0
protected

◆ my_trig_id

unsigned char MiniballConverter::my_trig_id
protected

Definition at line 141 of file Converter.hh.

Referenced by MiniballMbsConverter::GetFebexChanID().

◆ my_type

unsigned char MiniballConverter::my_type
protected

Definition at line 130 of file Converter.hh.

Referenced by MiniballMidasConverter::ProcessBlockData().

◆ nsamples

unsigned int MiniballConverter::nsamples
protected

◆ output_dir_name

std::string MiniballConverter::output_dir_name
protected

Definition at line 174 of file Converter.hh.

Referenced by SetOutputDirectory().

◆ output_file

TFile* MiniballConverter::output_file
protected

Definition at line 175 of file Converter.hh.

Referenced by CloseOutput(), GetFile(), MakeHists(), MakeTree(), PurgeOutput(), and SetOutput().

◆ prog

std::shared_ptr<TGProgressBar> MiniballConverter::prog
protected

◆ qmax_default

unsigned long long MiniballConverter::qmax_default
protected

Definition at line 159 of file Converter.hh.

Referenced by MakeHists().

◆ reject_ctr

unsigned long int MiniballConverter::reject_ctr
protected

◆ set

◆ sorted_tree

TTree* MiniballConverter::sorted_tree
protected

Definition at line 176 of file Converter.hh.

Referenced by GetSortedTree(), MakeTree(), and SortTree().

◆ sslogs

std::stringstream MiniballConverter::sslogs
protected

◆ sync_tm_stp

unsigned long long MiniballConverter::sync_tm_stp = 0
protected

Definition at line 118 of file Converter.hh.

Referenced by MiniballMidasConverter::ProcessInfoData().

◆ sync_tm_stp_hsb

unsigned long MiniballConverter::sync_tm_stp_hsb = 0
protected

Definition at line 125 of file Converter.hh.

Referenced by MiniballMidasConverter::ProcessInfoData().

◆ sync_tm_stp_msb

unsigned long MiniballConverter::sync_tm_stp_msb = 0
protected

Definition at line 124 of file Converter.hh.

Referenced by MiniballMidasConverter::ProcessInfoData().

◆ tm_stp_febex

std::vector<std::vector<long long int> > MiniballConverter::tm_stp_febex
protected

◆ tm_stp_febex_ch

std::vector<std::vector<std::vector<long long int> > > MiniballConverter::tm_stp_febex_ch
protected

◆ tm_stp_read

std::vector<long long int> MiniballConverter::tm_stp_read
protected

◆ warp_ctr

unsigned long int MiniballConverter::warp_ctr
protected

◆ write_packet

std::shared_ptr<MiniballDataPackets> MiniballConverter::write_packet = nullptr
protected

Definition at line 163 of file Converter.hh.

Referenced by MiniballMbsConverter::FinishFebexData(), MakeTree(), and SortTree().


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