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

#include <EventBuilder.hh>

Public Member Functions

 MiniballEventBuilder (std::shared_ptr< MiniballSettings > myset)
 
 ~MiniballEventBuilder ()
 
void SetInputFile (std::string input_file_name)
 
void SetInputTree (TTree *user_tree)
 
void SetMBSInfoTree (TTree *user_tree)
 
void SetOutput (std::string output_file_name, bool cWrite=false)
 
void StartFile ()
 called for every file
 
void Initialise ()
 called for every event
 
void MakeEventHists ()
 
void ResetHists ()
 
void AddCalibration (std::shared_ptr< MiniballCalibration > mycal)
 
void AddProgressBar (std::shared_ptr< TGProgressBar > myprog)
 
unsigned long BuildEvents ()
 
void GammaRayFinder ()
 
void ParticleFinder ()
 
void BeamDumpFinder ()
 
void SpedeFinder ()
 
void IonChamberFinder ()
 
TFile * GetFile ()
 
TTree * GetTree ()
 
void CloseOutput ()
 
void PurgeOutput ()
 Closes the output files from this class.
 

Private Attributes

TFile * input_file
 Input tree.
 
TTree * input_tree
 
TTree * mbsinfo_tree
 
MiniballDataPacketsin_data
 
MBSInfoPacketsmbs_info
 
std::shared_ptr< DgfDatadgf_data
 
std::shared_ptr< AdcDataadc_data
 
std::shared_ptr< FebexDatafebex_data
 
std::shared_ptr< InfoDatainfo_data
 
TFile * output_file
 Outputs.
 
TTree * output_tree
 
std::unique_ptr< MiniballEvtswrite_evts
 
std::shared_ptr< GammaRayEvtgamma_evt
 
std::shared_ptr< GammaRayAddbackEvtgamma_ab_evt
 
std::shared_ptr< ParticleEvtparticle_evt
 
std::shared_ptr< SpedeEvtspede_evt
 
std::shared_ptr< BeamDumpEvtbd_evt
 
std::shared_ptr< IonChamberEvtic_evt
 
std::shared_ptr< MiniballCalibrationcal
 
bool overwrite_cal
 
std::shared_ptr< MiniballSettingsset
 
bool _prog_
 
std::shared_ptr< TGProgressBar > prog
 
bool hists_ready = false
 
TList * histlist
 
std::ofstream log_file
 Log file for recording the results of the MiniballEventBuilder.
 
bool flag_input_file
 
long build_window
 
bool flag_close_event
 length of build window in ns
 
std::vector< std::vector< bool > > flag_pause
 
std::vector< std::vector< bool > > flag_resume
 
bool event_open
 
long time_diff
 
unsigned long long time_prev
 
unsigned long long time_min
 
unsigned long long time_max
 
unsigned long long time_first
 
unsigned long long ebis_time
 
unsigned long long ebis_prev
 
unsigned long long t1_time
 
unsigned long long t1_prev
 
unsigned long long sc_time
 
unsigned long long sc_prev
 
unsigned long long laser_time
 
double pulser_f
 
double ebis_f
 
double t1_f
 
double sc_f
 
double pulser_T
 
double ebis_T
 
double t1_T
 
double sc_T
 
std::vector< unsigned long long > pulser_time
 
std::vector< unsigned long long > pulser_prev
 
std::vector< std::vector< unsigned long long > > pause_time
 
std::vector< std::vector< unsigned long long > > resume_time
 
std::vector< std::vector< unsigned long long > > sync_time
 
std::vector< std::vector< unsigned long long > > febex_dead_time
 
std::vector< std::vector< unsigned long long > > febex_time_start
 
std::vector< std::vector< unsigned long long > > febex_time_stop
 
std::vector< std::vector< std::vector< unsigned long long > > > febex_time_ch
 
unsigned char mysfp
 sfp number
 
unsigned char myboard
 febex board number
 
unsigned char mydgf
 DGF module number.
 
unsigned char myadc
 ADC module number.
 
unsigned char mych
 channel number
 
unsigned long long mytime
 absolute timestamp
 
long myhittime
 hit time with respect to event time
 
unsigned long long myeventid
 MBS event id.
 
unsigned long long preveventid
 previous MBS event id
 
unsigned long long myeventtime
 MBS event time.
 
float myenergy
 calibrated energy
 
bool mythres
 above threshold?
 
bool mypileup
 pileup flag?
 
bool myclipped
 clipped flag?
 
bool mylaser
 laser pattern bit
 
std::vector< float > mb_en_list
 list of Miniball energies for GammaRayFinder
 
std::vector< unsigned long long > mb_ts_list
 list of Miniball timestamps for GammaRayFinder
 
std::vector< unsigned char > mb_clu_list
 list of cluster IDs
 
std::vector< unsigned char > mb_cry_list
 list of crystal IDs
 
std::vector< unsigned char > mb_seg_list
 list of segment IDs
 
std::vector< float > cd_en_list
 list of CD energies for ParticleFinder
 
std::vector< unsigned long long > cd_ts_list
 list of CD timestamps for ParticleFinder
 
std::vector< unsigned char > cd_det_list
 list of CD detector IDs
 
std::vector< unsigned char > cd_sec_list
 list of CD sector IDs
 
std::vector< unsigned char > cd_side_list
 list of CD side IDs; 0 = p, 1 = n
 
std::vector< unsigned char > cd_strip_list
 list of CD strip IDs
 
std::vector< float > pad_en_list
 list of PAD energies for ParticleFinder
 
std::vector< unsigned long long > pad_ts_list
 list of PAD timestamps for ParticleFinder
 
std::vector< unsigned char > pad_det_list
 list of PAD detector IDs
 
std::vector< unsigned char > pad_sec_list
 list of PAD sector IDs
 
std::vector< float > bd_en_list
 list of beam dump energies for BeamDumpFinder
 
std::vector< unsigned long long > bd_ts_list
 list of beam dump timestamps for BeamDumpFinder
 
std::vector< unsigned char > bd_det_list
 list of beam dump detector IDs
 
std::vector< float > spede_en_list
 list of Spede energies for ElectronFinder
 
std::vector< unsigned long long > spede_ts_list
 list of Spede timestamps for ElectronFinder
 
std::vector< unsigned char > spede_seg_list
 list of Spede segment IDs
 
std::vector< float > ic_en_list
 list of IonChamber energies for IonChamberFinder
 
std::vector< unsigned long long > ic_ts_list
 list of IonChamber timestamps for IonChamberFinder
 
std::vector< unsigned char > ic_id_list
 list of IonChamber layer IDs
 
unsigned long hit_ctr
 
unsigned long gamma_ctr
 
unsigned long gamma_ab_ctr
 
unsigned long cd_ctr
 
unsigned long bd_ctr
 
unsigned long spede_ctr
 
unsigned long ic_ctr
 
unsigned long n_entries
 
unsigned long n_mbs_entries
 
unsigned long n_febex_data
 
unsigned long n_info_data
 
unsigned long n_dgf_data
 
unsigned long n_adc_data
 
unsigned long n_ebis
 
unsigned long n_t1
 
unsigned long n_sc
 
unsigned long n_rilis
 
std::vector< unsigned long > n_sfp
 
std::vector< unsigned long > n_dgf
 
std::vector< unsigned long > n_adc
 
std::vector< unsigned long > n_pulser
 
std::vector< std::vector< unsigned long > > n_board
 
std::vector< std::vector< unsigned long > > n_sync
 
std::vector< std::vector< unsigned long > > n_pause
 
std::vector< std::vector< unsigned long > > n_resume
 
unsigned long n_miniball
 
unsigned long n_cd
 
unsigned long n_pad
 
unsigned long n_spede
 
unsigned long n_bd
 
unsigned long n_ic
 
unsigned long repeat_ctr
 
TH1F * tdiff
 
TH1F * tdiff_clean
 
TH1F * pulser_period
 
TH1F * ebis_period
 
TH1F * t1_period
 
TH1F * sc_period
 
TProfile * pulser_freq
 
TProfile * ebis_freq
 
TProfile * t1_freq
 
TProfile * sc_freq
 
TH2F * pulser_tdiff
 
TH1F * mb_td_core_seg
 
TH1F * mb_td_core_core
 
std::vector< std::vector< TH2F * > > mb_en_core_seg
 
std::vector< std::vector< TH2F * > > mb_en_core_seg_ebis_on
 
std::vector< std::vector< TH2F * > > cd_pn_mult
 
std::vector< std::vector< TH2F * > > cd_pen_id
 
std::vector< std::vector< TH2F * > > cd_nen_id
 
std::vector< std::vector< TH1F * > > cd_pn_td
 
std::vector< std::vector< TH1F * > > cd_pp_td
 
std::vector< std::vector< TH1F * > > cd_nn_td
 
std::vector< std::vector< TH2F * > > cd_pn_1v1
 
std::vector< std::vector< TH2F * > > cd_pn_1v2
 
std::vector< std::vector< TH2F * > > cd_pn_2v1
 
std::vector< std::vector< TH2F * > > cd_pn_2v2
 
std::vector< std::vector< TH2F * > > cd_ppad_mult
 
std::vector< std::vector< TH1F * > > cd_ppad_td
 
std::vector< TH2F * > pad_en_id
 
TH2F * ic_dE_E
 
TH1F * ic_dE
 
TH1F * ic_E
 
TH1F * ic_td
 

Detailed Description

Definition at line 48 of file EventBuilder.hh.

Constructor & Destructor Documentation

◆ MiniballEventBuilder()

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

Definition at line 3 of file EventBuilder.cc.

◆ ~MiniballEventBuilder()

MiniballEventBuilder::~MiniballEventBuilder ( )
inline

Definition at line 53 of file EventBuilder.hh.

Member Function Documentation

◆ AddCalibration()

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

Definition at line 64 of file EventBuilder.hh.

Referenced by do_build(), and MiniballGUI::gui_build().

◆ AddProgressBar()

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

Definition at line 68 of file EventBuilder.hh.

Referenced by MiniballGUI::gui_build().

◆ BeamDumpFinder()

void MiniballEventBuilder::BeamDumpFinder ( )

Definition at line 1334 of file EventBuilder.cc.

Referenced by BuildEvents().

◆ BuildEvents()

unsigned long MiniballEventBuilder::BuildEvents ( )

Function to loop over the sort tree and build array and recoil events

Definition at line 1451 of file EventBuilder.cc.

Referenced by do_build(), and MiniballGUI::gui_build().

◆ CloseOutput()

void MiniballEventBuilder::CloseOutput ( )
inline

Definition at line 84 of file EventBuilder.hh.

Referenced by do_build(), and MiniballGUI::gui_build().

◆ GammaRayFinder()

void MiniballEventBuilder::GammaRayFinder ( )

Definition at line 559 of file EventBuilder.cc.

Referenced by BuildEvents().

◆ GetFile()

TFile * MiniballEventBuilder::GetFile ( )
inline

Definition at line 82 of file EventBuilder.hh.

◆ GetTree()

TTree * MiniballEventBuilder::GetTree ( )
inline

Definition at line 83 of file EventBuilder.hh.

◆ Initialise()

void MiniballEventBuilder::Initialise ( )

called for every event

This is called at the end of every execution/loop

Definition at line 231 of file EventBuilder.cc.

Referenced by BuildEvents().

◆ IonChamberFinder()

void MiniballEventBuilder::IonChamberFinder ( )

Definition at line 1370 of file EventBuilder.cc.

Referenced by BuildEvents().

◆ MakeEventHists()

void MiniballEventBuilder::MakeEventHists ( )

Definition at line 277 of file EventBuilder.cc.

Referenced by SetOutput().

◆ ParticleFinder()

void MiniballEventBuilder::ParticleFinder ( )

Definition at line 741 of file EventBuilder.cc.

Referenced by BuildEvents().

◆ PurgeOutput()

void MiniballEventBuilder::PurgeOutput ( )
inline

Closes the output files from this class.

Definition at line 99 of file EventBuilder.hh.

Referenced by CloseOutput().

◆ ResetHists()

void MiniballEventBuilder::ResetHists ( )

Definition at line 541 of file EventBuilder.cc.

◆ SetInputFile()

void MiniballEventBuilder::SetInputFile ( std::string input_file_name)

Definition at line 155 of file EventBuilder.cc.

Referenced by do_build(), and MiniballGUI::gui_build().

◆ SetInputTree()

void MiniballEventBuilder::SetInputTree ( TTree * user_tree)

Definition at line 177 of file EventBuilder.cc.

Referenced by SetInputFile().

◆ SetMBSInfoTree()

void MiniballEventBuilder::SetMBSInfoTree ( TTree * user_tree)

Definition at line 188 of file EventBuilder.cc.

Referenced by SetInputFile().

◆ SetOutput()

void MiniballEventBuilder::SetOutput ( std::string output_file_name,
bool cWrite = false )

Definition at line 199 of file EventBuilder.cc.

Referenced by do_build(), and MiniballGUI::gui_build().

◆ SpedeFinder()

void MiniballEventBuilder::SpedeFinder ( )

Definition at line 1352 of file EventBuilder.cc.

Referenced by BuildEvents().

◆ StartFile()

void MiniballEventBuilder::StartFile ( )

called for every file

Definition at line 76 of file EventBuilder.cc.

Referenced by SetInputFile().

Member Data Documentation

◆ _prog_

bool MiniballEventBuilder::_prog_
private

Definition at line 138 of file EventBuilder.hh.

Referenced by AddProgressBar(), BuildEvents(), and MiniballEventBuilder().

◆ adc_data

std::shared_ptr<AdcData> MiniballEventBuilder::adc_data
private

Definition at line 115 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ bd_ctr

unsigned long MiniballEventBuilder::bd_ctr
private

Definition at line 234 of file EventBuilder.hh.

Referenced by BeamDumpFinder(), BuildEvents(), and StartFile().

◆ bd_det_list

std::vector<unsigned char> MiniballEventBuilder::bd_det_list
private

list of beam dump detector IDs

Definition at line 220 of file EventBuilder.hh.

Referenced by BeamDumpFinder(), BuildEvents(), and Initialise().

◆ bd_en_list

std::vector<float> MiniballEventBuilder::bd_en_list
private

list of beam dump energies for BeamDumpFinder

Definition at line 218 of file EventBuilder.hh.

Referenced by BeamDumpFinder(), BuildEvents(), and Initialise().

◆ bd_evt

std::shared_ptr<BeamDumpEvt> MiniballEventBuilder::bd_evt
private

Definition at line 127 of file EventBuilder.hh.

Referenced by BeamDumpFinder(), and SetOutput().

◆ bd_ts_list

std::vector<unsigned long long> MiniballEventBuilder::bd_ts_list
private

list of beam dump timestamps for BeamDumpFinder

Definition at line 219 of file EventBuilder.hh.

Referenced by BeamDumpFinder(), BuildEvents(), and Initialise().

◆ build_window

long MiniballEventBuilder::build_window
private

Definition at line 154 of file EventBuilder.hh.

Referenced by BuildEvents(), and MiniballEventBuilder().

◆ cal

std::shared_ptr<MiniballCalibration> MiniballEventBuilder::cal
private

Definition at line 131 of file EventBuilder.hh.

Referenced by AddCalibration(), and BuildEvents().

◆ cd_ctr

unsigned long MiniballEventBuilder::cd_ctr
private

Definition at line 234 of file EventBuilder.hh.

Referenced by BuildEvents(), ParticleFinder(), and StartFile().

◆ cd_det_list

std::vector<unsigned char> MiniballEventBuilder::cd_det_list
private

list of CD detector IDs

Definition at line 205 of file EventBuilder.hh.

Referenced by BuildEvents(), Initialise(), and ParticleFinder().

◆ cd_en_list

std::vector<float> MiniballEventBuilder::cd_en_list
private

list of CD energies for ParticleFinder

Definition at line 203 of file EventBuilder.hh.

Referenced by BuildEvents(), Initialise(), and ParticleFinder().

◆ cd_nen_id

std::vector<std::vector<TH2F*> > MiniballEventBuilder::cd_nen_id
private

Definition at line 258 of file EventBuilder.hh.

Referenced by MakeEventHists(), and ParticleFinder().

◆ cd_nn_td

std::vector<std::vector<TH1F*> > MiniballEventBuilder::cd_nn_td
private

Definition at line 259 of file EventBuilder.hh.

Referenced by MakeEventHists(), and ParticleFinder().

◆ cd_pen_id

std::vector<std::vector<TH2F*> > MiniballEventBuilder::cd_pen_id
private

Definition at line 258 of file EventBuilder.hh.

Referenced by MakeEventHists(), and ParticleFinder().

◆ cd_pn_1v1

std::vector<std::vector<TH2F*> > MiniballEventBuilder::cd_pn_1v1
private

Definition at line 260 of file EventBuilder.hh.

Referenced by MakeEventHists(), and ParticleFinder().

◆ cd_pn_1v2

std::vector<std::vector<TH2F*> > MiniballEventBuilder::cd_pn_1v2
private

Definition at line 260 of file EventBuilder.hh.

Referenced by MakeEventHists(), and ParticleFinder().

◆ cd_pn_2v1

std::vector<std::vector<TH2F*> > MiniballEventBuilder::cd_pn_2v1
private

Definition at line 260 of file EventBuilder.hh.

Referenced by MakeEventHists(), and ParticleFinder().

◆ cd_pn_2v2

std::vector<std::vector<TH2F*> > MiniballEventBuilder::cd_pn_2v2
private

Definition at line 260 of file EventBuilder.hh.

Referenced by MakeEventHists(), and ParticleFinder().

◆ cd_pn_mult

std::vector<std::vector<TH2F*> > MiniballEventBuilder::cd_pn_mult
private

Definition at line 257 of file EventBuilder.hh.

Referenced by MakeEventHists(), and ParticleFinder().

◆ cd_pn_td

std::vector<std::vector<TH1F*> > MiniballEventBuilder::cd_pn_td
private

Definition at line 259 of file EventBuilder.hh.

Referenced by MakeEventHists(), and ParticleFinder().

◆ cd_pp_td

std::vector<std::vector<TH1F*> > MiniballEventBuilder::cd_pp_td
private

Definition at line 259 of file EventBuilder.hh.

Referenced by MakeEventHists(), and ParticleFinder().

◆ cd_ppad_mult

std::vector<std::vector<TH2F*> > MiniballEventBuilder::cd_ppad_mult
private

Definition at line 263 of file EventBuilder.hh.

Referenced by MakeEventHists(), and ParticleFinder().

◆ cd_ppad_td

std::vector<std::vector<TH1F*> > MiniballEventBuilder::cd_ppad_td
private

Definition at line 264 of file EventBuilder.hh.

Referenced by MakeEventHists(), and ParticleFinder().

◆ cd_sec_list

std::vector<unsigned char> MiniballEventBuilder::cd_sec_list
private

list of CD sector IDs

Definition at line 206 of file EventBuilder.hh.

Referenced by BuildEvents(), Initialise(), and ParticleFinder().

◆ cd_side_list

std::vector<unsigned char> MiniballEventBuilder::cd_side_list
private

list of CD side IDs; 0 = p, 1 = n

Definition at line 207 of file EventBuilder.hh.

Referenced by BuildEvents(), Initialise(), and ParticleFinder().

◆ cd_strip_list

std::vector<unsigned char> MiniballEventBuilder::cd_strip_list
private

list of CD strip IDs

Definition at line 208 of file EventBuilder.hh.

Referenced by BuildEvents(), Initialise(), and ParticleFinder().

◆ cd_ts_list

std::vector<unsigned long long> MiniballEventBuilder::cd_ts_list
private

list of CD timestamps for ParticleFinder

Definition at line 204 of file EventBuilder.hh.

Referenced by BuildEvents(), Initialise(), and ParticleFinder().

◆ dgf_data

std::shared_ptr<DgfData> MiniballEventBuilder::dgf_data
private

Definition at line 114 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ ebis_f

double MiniballEventBuilder::ebis_f
private

Definition at line 168 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ ebis_freq

TProfile * MiniballEventBuilder::ebis_freq
private

Definition at line 247 of file EventBuilder.hh.

Referenced by BuildEvents(), and MakeEventHists().

◆ ebis_period

TH1F * MiniballEventBuilder::ebis_period
private

Definition at line 246 of file EventBuilder.hh.

Referenced by BuildEvents(), and MakeEventHists().

◆ ebis_prev

unsigned long long MiniballEventBuilder::ebis_prev
private

Definition at line 164 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ ebis_T

double MiniballEventBuilder::ebis_T
private

Definition at line 169 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ ebis_time

unsigned long long MiniballEventBuilder::ebis_time
private

Definition at line 164 of file EventBuilder.hh.

Referenced by BuildEvents(), and GammaRayFinder().

◆ event_open

bool MiniballEventBuilder::event_open
private

Definition at line 159 of file EventBuilder.hh.

Referenced by BuildEvents(), and Initialise().

◆ febex_data

std::shared_ptr<FebexData> MiniballEventBuilder::febex_data
private

Definition at line 116 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ febex_dead_time

std::vector<std::vector<unsigned long long> > MiniballEventBuilder::febex_dead_time
private

Definition at line 173 of file EventBuilder.hh.

Referenced by BuildEvents(), MiniballEventBuilder(), and StartFile().

◆ febex_time_ch

std::vector<std::vector<std::vector<unsigned long long> > > MiniballEventBuilder::febex_time_ch
private

Definition at line 175 of file EventBuilder.hh.

Referenced by BuildEvents(), and MiniballEventBuilder().

◆ febex_time_start

std::vector<std::vector<unsigned long long> > MiniballEventBuilder::febex_time_start
private

Definition at line 174 of file EventBuilder.hh.

Referenced by BuildEvents(), MiniballEventBuilder(), and StartFile().

◆ febex_time_stop

std::vector<std::vector<unsigned long long> > MiniballEventBuilder::febex_time_stop
private

Definition at line 174 of file EventBuilder.hh.

Referenced by BuildEvents(), MiniballEventBuilder(), and StartFile().

◆ flag_close_event

bool MiniballEventBuilder::flag_close_event
private

length of build window in ns

Definition at line 157 of file EventBuilder.hh.

Referenced by BuildEvents(), and Initialise().

◆ flag_input_file

bool MiniballEventBuilder::flag_input_file
private

Definition at line 151 of file EventBuilder.hh.

Referenced by BuildEvents(), MiniballEventBuilder(), and SetInputFile().

◆ flag_pause

std::vector<std::vector<bool> > MiniballEventBuilder::flag_pause
private

Definition at line 158 of file EventBuilder.hh.

Referenced by BuildEvents(), MiniballEventBuilder(), and StartFile().

◆ flag_resume

std::vector<std::vector<bool> > MiniballEventBuilder::flag_resume
private

Definition at line 158 of file EventBuilder.hh.

Referenced by BuildEvents(), MiniballEventBuilder(), and StartFile().

◆ gamma_ab_ctr

unsigned long MiniballEventBuilder::gamma_ab_ctr
private

Definition at line 234 of file EventBuilder.hh.

Referenced by BuildEvents(), GammaRayFinder(), and StartFile().

◆ gamma_ab_evt

std::shared_ptr<GammaRayAddbackEvt> MiniballEventBuilder::gamma_ab_evt
private

Definition at line 124 of file EventBuilder.hh.

Referenced by GammaRayFinder(), and SetOutput().

◆ gamma_ctr

unsigned long MiniballEventBuilder::gamma_ctr
private

Definition at line 234 of file EventBuilder.hh.

Referenced by BuildEvents(), GammaRayFinder(), and StartFile().

◆ gamma_evt

std::shared_ptr<GammaRayEvt> MiniballEventBuilder::gamma_evt
private

Definition at line 123 of file EventBuilder.hh.

Referenced by GammaRayFinder(), and SetOutput().

◆ histlist

TList* MiniballEventBuilder::histlist
private

Definition at line 145 of file EventBuilder.hh.

Referenced by MakeEventHists(), MiniballEventBuilder(), and ResetHists().

◆ hists_ready

bool MiniballEventBuilder::hists_ready = false
private

Definition at line 142 of file EventBuilder.hh.

Referenced by MakeEventHists().

◆ hit_ctr

unsigned long MiniballEventBuilder::hit_ctr
private

Definition at line 234 of file EventBuilder.hh.

Referenced by BuildEvents(), and Initialise().

◆ ic_ctr

unsigned long MiniballEventBuilder::ic_ctr
private

Definition at line 234 of file EventBuilder.hh.

Referenced by BuildEvents(), IonChamberFinder(), and StartFile().

◆ ic_dE

TH1F* MiniballEventBuilder::ic_dE
private

Definition at line 269 of file EventBuilder.hh.

Referenced by IonChamberFinder(), and MakeEventHists().

◆ ic_dE_E

TH2F* MiniballEventBuilder::ic_dE_E
private

Definition at line 268 of file EventBuilder.hh.

Referenced by IonChamberFinder(), and MakeEventHists().

◆ ic_E

TH1F * MiniballEventBuilder::ic_E
private

Definition at line 269 of file EventBuilder.hh.

Referenced by IonChamberFinder(), and MakeEventHists().

◆ ic_en_list

std::vector<float> MiniballEventBuilder::ic_en_list
private

list of IonChamber energies for IonChamberFinder

Definition at line 228 of file EventBuilder.hh.

Referenced by BuildEvents(), Initialise(), and IonChamberFinder().

◆ ic_evt

std::shared_ptr<IonChamberEvt> MiniballEventBuilder::ic_evt
private

Definition at line 128 of file EventBuilder.hh.

Referenced by IonChamberFinder(), and SetOutput().

◆ ic_id_list

std::vector<unsigned char> MiniballEventBuilder::ic_id_list
private

list of IonChamber layer IDs

Definition at line 230 of file EventBuilder.hh.

Referenced by BuildEvents(), Initialise(), and IonChamberFinder().

◆ ic_td

TH1F* MiniballEventBuilder::ic_td
private

Definition at line 270 of file EventBuilder.hh.

Referenced by IonChamberFinder(), and MakeEventHists().

◆ ic_ts_list

std::vector<unsigned long long> MiniballEventBuilder::ic_ts_list
private

list of IonChamber timestamps for IonChamberFinder

Definition at line 229 of file EventBuilder.hh.

Referenced by BuildEvents(), Initialise(), and IonChamberFinder().

◆ in_data

MiniballDataPackets* MiniballEventBuilder::in_data
private

Definition at line 112 of file EventBuilder.hh.

Referenced by BuildEvents(), CloseOutput(), and SetInputTree().

◆ info_data

std::shared_ptr<InfoData> MiniballEventBuilder::info_data
private

Definition at line 117 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ input_file

TFile* MiniballEventBuilder::input_file
private

Input tree.

Definition at line 109 of file EventBuilder.hh.

Referenced by CloseOutput(), and SetInputFile().

◆ input_tree

TTree* MiniballEventBuilder::input_tree
private

Definition at line 110 of file EventBuilder.hh.

Referenced by BuildEvents(), CloseOutput(), PurgeOutput(), and SetInputTree().

◆ laser_time

unsigned long long MiniballEventBuilder::laser_time
private

Definition at line 167 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ log_file

std::ofstream MiniballEventBuilder::log_file
private

Log file for recording the results of the MiniballEventBuilder.

Definition at line 148 of file EventBuilder.hh.

Referenced by BuildEvents(), CloseOutput(), and SetOutput().

◆ mb_clu_list

std::vector<unsigned char> MiniballEventBuilder::mb_clu_list
private

list of cluster IDs

Definition at line 198 of file EventBuilder.hh.

Referenced by BuildEvents(), GammaRayFinder(), and Initialise().

◆ mb_cry_list

std::vector<unsigned char> MiniballEventBuilder::mb_cry_list
private

list of crystal IDs

Definition at line 199 of file EventBuilder.hh.

Referenced by BuildEvents(), GammaRayFinder(), and Initialise().

◆ mb_en_core_seg

std::vector<std::vector<TH2F*> > MiniballEventBuilder::mb_en_core_seg
private

Definition at line 253 of file EventBuilder.hh.

Referenced by GammaRayFinder(), and MakeEventHists().

◆ mb_en_core_seg_ebis_on

std::vector<std::vector<TH2F*> > MiniballEventBuilder::mb_en_core_seg_ebis_on
private

Definition at line 254 of file EventBuilder.hh.

Referenced by GammaRayFinder(), and MakeEventHists().

◆ mb_en_list

std::vector<float> MiniballEventBuilder::mb_en_list
private

list of Miniball energies for GammaRayFinder

Definition at line 196 of file EventBuilder.hh.

Referenced by BuildEvents(), GammaRayFinder(), and Initialise().

◆ mb_seg_list

std::vector<unsigned char> MiniballEventBuilder::mb_seg_list
private

list of segment IDs

Definition at line 200 of file EventBuilder.hh.

Referenced by BuildEvents(), GammaRayFinder(), and Initialise().

◆ mb_td_core_core

TH1F* MiniballEventBuilder::mb_td_core_core
private

Definition at line 252 of file EventBuilder.hh.

Referenced by GammaRayFinder(), and MakeEventHists().

◆ mb_td_core_seg

TH1F* MiniballEventBuilder::mb_td_core_seg
private

Definition at line 251 of file EventBuilder.hh.

Referenced by GammaRayFinder(), and MakeEventHists().

◆ mb_ts_list

std::vector<unsigned long long> MiniballEventBuilder::mb_ts_list
private

list of Miniball timestamps for GammaRayFinder

Definition at line 197 of file EventBuilder.hh.

Referenced by BuildEvents(), GammaRayFinder(), and Initialise().

◆ mbs_info

MBSInfoPackets* MiniballEventBuilder::mbs_info
private

Definition at line 113 of file EventBuilder.hh.

Referenced by BuildEvents(), CloseOutput(), and SetMBSInfoTree().

◆ mbsinfo_tree

TTree* MiniballEventBuilder::mbsinfo_tree
private

Definition at line 111 of file EventBuilder.hh.

Referenced by BuildEvents(), CloseOutput(), PurgeOutput(), and SetMBSInfoTree().

◆ myadc

unsigned char MiniballEventBuilder::myadc
private

ADC module number.

Definition at line 181 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ myboard

unsigned char MiniballEventBuilder::myboard
private

febex board number

Definition at line 179 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ mych

unsigned char MiniballEventBuilder::mych
private

channel number

Definition at line 182 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ myclipped

bool MiniballEventBuilder::myclipped
private

clipped flag?

Definition at line 191 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ mydgf

unsigned char MiniballEventBuilder::mydgf
private

DGF module number.

Definition at line 180 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ myenergy

float MiniballEventBuilder::myenergy
private

calibrated energy

Definition at line 188 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ myeventid

unsigned long long MiniballEventBuilder::myeventid
private

MBS event id.

Definition at line 185 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ myeventtime

unsigned long long MiniballEventBuilder::myeventtime
private

MBS event time.

Definition at line 187 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ myhittime

long MiniballEventBuilder::myhittime
private

hit time with respect to event time

Definition at line 184 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ mylaser

bool MiniballEventBuilder::mylaser
private

laser pattern bit

Definition at line 192 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ mypileup

bool MiniballEventBuilder::mypileup
private

pileup flag?

Definition at line 190 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ mysfp

unsigned char MiniballEventBuilder::mysfp
private

sfp number

Definition at line 178 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ mythres

bool MiniballEventBuilder::mythres
private

above threshold?

Definition at line 189 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ mytime

unsigned long long MiniballEventBuilder::mytime
private

absolute timestamp

Definition at line 183 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ n_adc

std::vector<unsigned long> MiniballEventBuilder::n_adc
private

Definition at line 237 of file EventBuilder.hh.

Referenced by BuildEvents(), MiniballEventBuilder(), and StartFile().

◆ n_adc_data

unsigned long MiniballEventBuilder::n_adc_data
private

Definition at line 235 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ n_bd

unsigned long MiniballEventBuilder::n_bd
private

Definition at line 240 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ n_board

std::vector<std::vector<unsigned long> > MiniballEventBuilder::n_board
private

Definition at line 238 of file EventBuilder.hh.

Referenced by BuildEvents(), MiniballEventBuilder(), and StartFile().

◆ n_cd

unsigned long MiniballEventBuilder::n_cd
private

Definition at line 240 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ n_dgf

std::vector<unsigned long> MiniballEventBuilder::n_dgf
private

Definition at line 237 of file EventBuilder.hh.

Referenced by BuildEvents(), MiniballEventBuilder(), and StartFile().

◆ n_dgf_data

unsigned long MiniballEventBuilder::n_dgf_data
private

Definition at line 235 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ n_ebis

unsigned long MiniballEventBuilder::n_ebis
private

Definition at line 236 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ n_entries

unsigned long MiniballEventBuilder::n_entries
private

Definition at line 235 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ n_febex_data

unsigned long MiniballEventBuilder::n_febex_data
private

Definition at line 235 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ n_ic

unsigned long MiniballEventBuilder::n_ic
private

Definition at line 240 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ n_info_data

unsigned long MiniballEventBuilder::n_info_data
private

Definition at line 235 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ n_mbs_entries

unsigned long MiniballEventBuilder::n_mbs_entries
private

Definition at line 235 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ n_miniball

unsigned long MiniballEventBuilder::n_miniball
private

Definition at line 240 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ n_pad

unsigned long MiniballEventBuilder::n_pad
private

Definition at line 240 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ n_pause

std::vector<std::vector<unsigned long> > MiniballEventBuilder::n_pause
private

Definition at line 239 of file EventBuilder.hh.

Referenced by BuildEvents(), MiniballEventBuilder(), and StartFile().

◆ n_pulser

std::vector<unsigned long> MiniballEventBuilder::n_pulser
private

Definition at line 237 of file EventBuilder.hh.

Referenced by BuildEvents(), MiniballEventBuilder(), and StartFile().

◆ n_resume

std::vector<std::vector<unsigned long> > MiniballEventBuilder::n_resume
private

Definition at line 239 of file EventBuilder.hh.

Referenced by BuildEvents(), MiniballEventBuilder(), and StartFile().

◆ n_rilis

unsigned long MiniballEventBuilder::n_rilis
private

Definition at line 236 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ n_sc

unsigned long MiniballEventBuilder::n_sc
private

Definition at line 236 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ n_sfp

std::vector<unsigned long> MiniballEventBuilder::n_sfp
private

Definition at line 237 of file EventBuilder.hh.

Referenced by BuildEvents(), MiniballEventBuilder(), and StartFile().

◆ n_spede

unsigned long MiniballEventBuilder::n_spede
private

Definition at line 240 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ n_sync

std::vector<std::vector<unsigned long> > MiniballEventBuilder::n_sync
private

Definition at line 238 of file EventBuilder.hh.

Referenced by BuildEvents(), MiniballEventBuilder(), and StartFile().

◆ n_t1

unsigned long MiniballEventBuilder::n_t1
private

Definition at line 236 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ output_file

TFile* MiniballEventBuilder::output_file
private

Outputs.

Definition at line 120 of file EventBuilder.hh.

Referenced by CloseOutput(), GetFile(), MakeEventHists(), PurgeOutput(), and SetOutput().

◆ output_tree

TTree* MiniballEventBuilder::output_tree
private

Definition at line 121 of file EventBuilder.hh.

Referenced by BuildEvents(), CloseOutput(), GetTree(), and SetOutput().

◆ overwrite_cal

bool MiniballEventBuilder::overwrite_cal
private

Definition at line 132 of file EventBuilder.hh.

Referenced by AddCalibration(), BuildEvents(), and MiniballEventBuilder().

◆ pad_det_list

std::vector<unsigned char> MiniballEventBuilder::pad_det_list
private

list of PAD detector IDs

Definition at line 213 of file EventBuilder.hh.

Referenced by BuildEvents(), and Initialise().

◆ pad_en_id

std::vector<TH2F*> MiniballEventBuilder::pad_en_id
private

Definition at line 265 of file EventBuilder.hh.

Referenced by MakeEventHists(), and ParticleFinder().

◆ pad_en_list

std::vector<float> MiniballEventBuilder::pad_en_list
private

list of PAD energies for ParticleFinder

Definition at line 211 of file EventBuilder.hh.

Referenced by BuildEvents(), Initialise(), and ParticleFinder().

◆ pad_sec_list

std::vector<unsigned char> MiniballEventBuilder::pad_sec_list
private

list of PAD sector IDs

Definition at line 214 of file EventBuilder.hh.

Referenced by BuildEvents(), and Initialise().

◆ pad_ts_list

std::vector<unsigned long long> MiniballEventBuilder::pad_ts_list
private

list of PAD timestamps for ParticleFinder

Definition at line 212 of file EventBuilder.hh.

Referenced by BuildEvents(), Initialise(), and ParticleFinder().

◆ particle_evt

std::shared_ptr<ParticleEvt> MiniballEventBuilder::particle_evt
private

Definition at line 125 of file EventBuilder.hh.

Referenced by ParticleFinder(), and SetOutput().

◆ pause_time

std::vector<std::vector<unsigned long long> > MiniballEventBuilder::pause_time
private

Definition at line 171 of file EventBuilder.hh.

Referenced by BuildEvents(), MiniballEventBuilder(), and StartFile().

◆ preveventid

unsigned long long MiniballEventBuilder::preveventid
private

previous MBS event id

Definition at line 186 of file EventBuilder.hh.

Referenced by BuildEvents(), and MiniballEventBuilder().

◆ prog

std::shared_ptr<TGProgressBar> MiniballEventBuilder::prog
private

Definition at line 139 of file EventBuilder.hh.

Referenced by AddProgressBar(), and BuildEvents().

◆ pulser_f

double MiniballEventBuilder::pulser_f
private

Definition at line 168 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ pulser_freq

TProfile* MiniballEventBuilder::pulser_freq
private

Definition at line 247 of file EventBuilder.hh.

Referenced by BuildEvents(), and MakeEventHists().

◆ pulser_period

TH1F* MiniballEventBuilder::pulser_period
private

Definition at line 246 of file EventBuilder.hh.

Referenced by BuildEvents(), and MakeEventHists().

◆ pulser_prev

std::vector<unsigned long long> MiniballEventBuilder::pulser_prev
private

Definition at line 170 of file EventBuilder.hh.

Referenced by BuildEvents(), MiniballEventBuilder(), and StartFile().

◆ pulser_T

double MiniballEventBuilder::pulser_T
private

Definition at line 169 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ pulser_tdiff

TH2F* MiniballEventBuilder::pulser_tdiff
private

Definition at line 248 of file EventBuilder.hh.

Referenced by BuildEvents(), and MakeEventHists().

◆ pulser_time

std::vector<unsigned long long> MiniballEventBuilder::pulser_time
private

Definition at line 170 of file EventBuilder.hh.

Referenced by BuildEvents(), MiniballEventBuilder(), and StartFile().

◆ repeat_ctr

unsigned long MiniballEventBuilder::repeat_ctr
private

Definition at line 241 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ resume_time

std::vector<std::vector<unsigned long long> > MiniballEventBuilder::resume_time
private

Definition at line 171 of file EventBuilder.hh.

Referenced by BuildEvents(), MiniballEventBuilder(), and StartFile().

◆ sc_f

double MiniballEventBuilder::sc_f
private

Definition at line 168 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ sc_freq

TProfile * MiniballEventBuilder::sc_freq
private

Definition at line 247 of file EventBuilder.hh.

Referenced by BuildEvents(), and MakeEventHists().

◆ sc_period

TH1F * MiniballEventBuilder::sc_period
private

Definition at line 246 of file EventBuilder.hh.

Referenced by BuildEvents(), and MakeEventHists().

◆ sc_prev

unsigned long long MiniballEventBuilder::sc_prev
private

Definition at line 166 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ sc_T

double MiniballEventBuilder::sc_T
private

Definition at line 169 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ sc_time

unsigned long long MiniballEventBuilder::sc_time
private

Definition at line 166 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ set

std::shared_ptr<MiniballSettings> MiniballEventBuilder::set
private

◆ spede_ctr

unsigned long MiniballEventBuilder::spede_ctr
private

Definition at line 234 of file EventBuilder.hh.

Referenced by BuildEvents(), SpedeFinder(), and StartFile().

◆ spede_en_list

std::vector<float> MiniballEventBuilder::spede_en_list
private

list of Spede energies for ElectronFinder

Definition at line 223 of file EventBuilder.hh.

Referenced by BuildEvents(), Initialise(), and SpedeFinder().

◆ spede_evt

std::shared_ptr<SpedeEvt> MiniballEventBuilder::spede_evt
private

Definition at line 126 of file EventBuilder.hh.

Referenced by SetOutput(), and SpedeFinder().

◆ spede_seg_list

std::vector<unsigned char> MiniballEventBuilder::spede_seg_list
private

list of Spede segment IDs

Definition at line 225 of file EventBuilder.hh.

Referenced by BuildEvents(), Initialise(), and SpedeFinder().

◆ spede_ts_list

std::vector<unsigned long long> MiniballEventBuilder::spede_ts_list
private

list of Spede timestamps for ElectronFinder

Definition at line 224 of file EventBuilder.hh.

Referenced by BuildEvents(), Initialise(), and SpedeFinder().

◆ sync_time

std::vector<std::vector<unsigned long long> > MiniballEventBuilder::sync_time
private

Definition at line 172 of file EventBuilder.hh.

Referenced by BuildEvents(), MiniballEventBuilder(), and StartFile().

◆ t1_f

double MiniballEventBuilder::t1_f
private

Definition at line 168 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ t1_freq

TProfile * MiniballEventBuilder::t1_freq
private

Definition at line 247 of file EventBuilder.hh.

Referenced by BuildEvents(), and MakeEventHists().

◆ t1_period

TH1F * MiniballEventBuilder::t1_period
private

Definition at line 246 of file EventBuilder.hh.

Referenced by BuildEvents(), and MakeEventHists().

◆ t1_prev

unsigned long long MiniballEventBuilder::t1_prev
private

Definition at line 165 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ t1_T

double MiniballEventBuilder::t1_T
private

Definition at line 169 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ t1_time

unsigned long long MiniballEventBuilder::t1_time
private

Definition at line 165 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ tdiff

TH1F* MiniballEventBuilder::tdiff
private

Definition at line 245 of file EventBuilder.hh.

Referenced by BuildEvents(), and MakeEventHists().

◆ tdiff_clean

TH1F * MiniballEventBuilder::tdiff_clean
private

Definition at line 245 of file EventBuilder.hh.

Referenced by BuildEvents(), and MakeEventHists().

◆ time_diff

long MiniballEventBuilder::time_diff
private

Definition at line 162 of file EventBuilder.hh.

Referenced by BuildEvents().

◆ time_first

unsigned long long MiniballEventBuilder::time_first
private

Definition at line 163 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ time_max

unsigned long long MiniballEventBuilder::time_max
private

Definition at line 163 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ time_min

unsigned long long MiniballEventBuilder::time_min
private

Definition at line 163 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ time_prev

unsigned long long MiniballEventBuilder::time_prev
private

Definition at line 163 of file EventBuilder.hh.

Referenced by BuildEvents(), and StartFile().

◆ write_evts

std::unique_ptr<MiniballEvts> MiniballEventBuilder::write_evts
private

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