Analysis Software
Documentation for sPHENIX simulation software
|
#include <OnlMon/blob/main/subsystems/bbc/OnlBbcEvent.h>
Public Member Functions | |
OnlBbcEvent () | |
~OnlBbcEvent () | |
bool | setRawData (Event *) |
int | calculate () |
int | InitRun () |
void | Clear () |
int | calib_is_done () |
float | get_bbcz () |
float | get_t0 () |
int | getEventNumber (void) const |
int | getAdc (int PmtIndx) const |
int | getTdc0 (int PmtIndx) const |
int | getTdc1 (int PmtIndx) const |
float | getQ (int PmtIndx) const |
float | getTT (int PmtIndx) const |
float | getTQ (int PmtIndx) const |
float | getChargeSum (int arm) const |
float | getZVertex (void) const |
float | getZVertexError (void) const |
float | getTimeZero (void) const |
OnlBbcSig * | GetSig (const int ipmt) |
Private Member Functions | |
int | Read_Charge_Calib (const char *calfname) |
int | Read_TQ_T0_Offsets (const char *calfname) |
Private Attributes | |
float | gaincorr [128] {} |
float | tq_t0_offsets [128] {} |
float | bz_offset {0.} |
int | verbose |
int | EventNumber |
int | calib_done |
Packet * | p [2] {nullptr,nullptr} |
Float_t | f_adc [NCH][NSAMPLES] |
Float_t | f_samp [NCH][NSAMPLES] |
Float_t | f_ampl [NCH] |
std::vector< OnlBbcSig > | bbcsig |
int | iHit [BBC_N_PMT] |
int | armHitPmt [BBC_N_PMT] |
float | Charge [BBC_N_PMT] |
float | HitTime0 [BBC_N_PMT] |
float | HitTime1 [BBC_N_PMT] |
int | nHitPmt [2] |
float | ChargeSum [2] |
float | ArmHitTime [2] |
float | ArmHitTimeError [2] |
float | ZVertex |
float | ZVertexError |
float | TimeZero |
float | TimeZeroError |
Float_t | f_pmtq [BBC_N_PMT] {} |
Float_t | f_pmtt0 [BBC_N_PMT] {} |
Float_t | f_pmtt1 [BBC_N_PMT] {} |
Short_t | f_bbcn [2] {} |
Float_t | f_bbcq [2] {} |
Float_t | f_bbct [2] {} |
Float_t | f_bbcte [2] {} |
Float_t | f_bbcz = NAN |
Float_t | f_bbct0 = NAN |
TH1 * | hevt_bbct [2] {} |
TF1 * | gaussian = nullptr |
Float_t | _tres = NAN |
TH2 * | h2_tmax [2] = {} |
float | TRIG_SAMP [16] |
float | bbc_tq_t0_offsets [BBC_N_PMT] = {} |
TCanvas * | ac |
Static Private Attributes | |
static const int | NCH = 256 |
static const int | NSAMPLES = 31 |
static const int | NCHPERPKT = 128 |
static const int | BBC_N_PMT = 128 |
Definition at line 12 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 12 of file OnlBbcEvent.h
OnlBbcEvent::OnlBbcEvent | ( | void | ) |
Definition at line 25 of file OnlBbcEvent.cc.
View newest version in sPHENIX GitHub at line 25 of file OnlBbcEvent.cc
OnlBbcEvent::~OnlBbcEvent | ( | ) |
Definition at line 96 of file OnlBbcEvent.cc.
View newest version in sPHENIX GitHub at line 96 of file OnlBbcEvent.cc
int OnlBbcEvent::calculate | ( | ) |
Definition at line 220 of file OnlBbcEvent.cc.
View newest version in sPHENIX GitHub at line 220 of file OnlBbcEvent.cc
References _tres, ac, BBC_N_PMT, bbcsig, parse_cmake_options::begin, bz_offset, C, calib_done, ChargeSum, Clear(), Acts::UnitConstants::e, end, EventNumber, f_adc, f_ampl, f_bbcn, f_bbct, f_bbct0, f_bbcte, f_bbcz, f_pmtq, f_pmtt0, f_pmtt1, f_samp, gaincorr, gaussian, h2_tmax, hevt_bbct, perf_headwind::name, Acts::Experimental::detail::BlueprintHelper::sort(), tq_t0_offsets, TRIG_SAMP, verbose, ambiguity_solver_full_chain::x, and y.
|
inline |
Definition at line 23 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 23 of file OnlBbcEvent.h
References calib_done.
void OnlBbcEvent::Clear | ( | void | ) |
reset BBC raw data
Reset BBC hits information
Reset end product to prepare next event
Definition at line 121 of file OnlBbcEvent.cc.
View newest version in sPHENIX GitHub at line 121 of file OnlBbcEvent.cc
References armHitPmt, ArmHitTime, ArmHitTimeError, BBC_N_PMT, Charge, ChargeSum, f_bbcn, f_bbcq, f_bbct, f_bbct0, f_bbcte, f_bbcz, f_pmtq, f_pmtt0, f_pmtt1, hevt_bbct, HitTime0, HitTime1, iHit, nHitPmt, TimeZero, TimeZeroError, ZVertex, and ZVertexError.
Referenced by calculate(), and InitRun().
|
inline |
Definition at line 25 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 25 of file OnlBbcEvent.h
References f_bbcz.
|
inline |
Definition at line 26 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 26 of file OnlBbcEvent.h
References f_bbct0.
|
inline |
Definition at line 33 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 33 of file OnlBbcEvent.h
References f_pmtq.
|
inline |
Definition at line 111 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 111 of file OnlBbcEvent.h
References ChargeSum.
|
inline |
Definition at line 28 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 28 of file OnlBbcEvent.h
References EventNumber.
|
inline |
Definition at line 49 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 49 of file OnlBbcEvent.h
References f_pmtq.
|
inline |
Definition at line 168 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 168 of file OnlBbcEvent.h
References bbcsig.
|
inline |
Definition at line 39 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 39 of file OnlBbcEvent.h
References f_pmtt0.
|
inline |
Definition at line 44 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 44 of file OnlBbcEvent.h
References f_pmtt1.
|
inline |
Definition at line 134 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 134 of file OnlBbcEvent.h
References TimeZero.
|
inline |
Definition at line 62 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 62 of file OnlBbcEvent.h
References f_pmtt1.
|
inline |
Definition at line 56 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 56 of file OnlBbcEvent.h
References f_pmtt0.
|
inline |
Definition at line 126 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 126 of file OnlBbcEvent.h
References ZVertex.
|
inline |
Definition at line 130 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 130 of file OnlBbcEvent.h
References ZVertexError.
int OnlBbcEvent::InitRun | ( | ) |
Definition at line 110 of file OnlBbcEvent.cc.
View newest version in sPHENIX GitHub at line 110 of file OnlBbcEvent.cc
References calib_done, Clear(), and h2_tmax.
|
private |
Definition at line 426 of file OnlBbcEvent.cc.
View newest version in sPHENIX GitHub at line 426 of file OnlBbcEvent.cc
|
private |
Definition at line 449 of file OnlBbcEvent.cc.
View newest version in sPHENIX GitHub at line 449 of file OnlBbcEvent.cc
References BBC_N_PMT, sigma, and tq_t0_offsets.
bool OnlBbcEvent::setRawData | ( | Event * | event | ) |
Definition at line 169 of file OnlBbcEvent.cc.
View newest version in sPHENIX GitHub at line 169 of file OnlBbcEvent.cc
References EventNumber, f_adc, f_samp, feech, Packet::iValue(), NCHPERPKT, NSAMPLES, and p.
|
private |
Definition at line 229 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 229 of file OnlBbcEvent.h
Referenced by calculate().
|
private |
Definition at line 236 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 236 of file OnlBbcEvent.h
Referenced by calculate(), and ~OnlBbcEvent().
|
private |
Definition at line 199 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 199 of file OnlBbcEvent.h
Referenced by Clear().
|
private |
Definition at line 211 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 211 of file OnlBbcEvent.h
Referenced by Clear().
|
private |
Definition at line 212 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 212 of file OnlBbcEvent.h
Referenced by Clear().
|
staticprivate |
Definition at line 195 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 195 of file OnlBbcEvent.h
Referenced by calculate(), Clear(), and Read_TQ_T0_Offsets().
|
private |
Definition at line 234 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 234 of file OnlBbcEvent.h
|
private |
Definition at line 193 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 193 of file OnlBbcEvent.h
Referenced by calculate(), and GetSig().
|
private |
Definition at line 176 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 176 of file OnlBbcEvent.h
Referenced by calculate().
|
private |
Definition at line 184 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 184 of file OnlBbcEvent.h
Referenced by calculate(), calib_is_done(), and InitRun().
|
private |
Definition at line 204 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 204 of file OnlBbcEvent.h
Referenced by Clear().
|
private |
Definition at line 210 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 210 of file OnlBbcEvent.h
Referenced by calculate(), Clear(), and getChargeSum().
|
private |
Definition at line 183 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 183 of file OnlBbcEvent.h
Referenced by calculate(), getEventNumber(), and setRawData().
Definition at line 188 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 188 of file OnlBbcEvent.h
Referenced by calculate(), and setRawData().
|
private |
Definition at line 190 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 190 of file OnlBbcEvent.h
Referenced by calculate().
|
private |
Definition at line 221 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 221 of file OnlBbcEvent.h
Referenced by calculate(), and Clear().
|
private |
Definition at line 222 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 222 of file OnlBbcEvent.h
Referenced by Clear().
|
private |
Definition at line 223 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 223 of file OnlBbcEvent.h
Referenced by calculate(), and Clear().
|
private |
Definition at line 226 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 226 of file OnlBbcEvent.h
Referenced by calculate(), Clear(), and get_t0().
|
private |
Definition at line 224 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 224 of file OnlBbcEvent.h
Referenced by calculate(), and Clear().
|
private |
Definition at line 225 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 225 of file OnlBbcEvent.h
Referenced by calculate(), Clear(), and get_bbcz().
|
private |
Definition at line 218 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 218 of file OnlBbcEvent.h
Referenced by calculate(), Clear(), getAdc(), and getQ().
|
private |
Definition at line 219 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 219 of file OnlBbcEvent.h
Referenced by calculate(), Clear(), getTdc0(), and getTT().
|
private |
Definition at line 220 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 220 of file OnlBbcEvent.h
Referenced by calculate(), Clear(), getTdc1(), and getTQ().
Definition at line 189 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 189 of file OnlBbcEvent.h
Referenced by calculate(), and setRawData().
|
private |
Definition at line 174 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 174 of file OnlBbcEvent.h
Referenced by calculate(), and Read_Charge_Calib().
|
private |
Definition at line 228 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 228 of file OnlBbcEvent.h
Referenced by calculate(), and ~OnlBbcEvent().
|
private |
Definition at line 231 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 231 of file OnlBbcEvent.h
Referenced by calculate(), InitRun(), and ~OnlBbcEvent().
|
private |
Definition at line 227 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 227 of file OnlBbcEvent.h
Referenced by calculate(), Clear(), and ~OnlBbcEvent().
|
private |
Definition at line 205 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 205 of file OnlBbcEvent.h
Referenced by Clear().
|
private |
Definition at line 206 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 206 of file OnlBbcEvent.h
Referenced by Clear().
|
private |
Definition at line 198 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 198 of file OnlBbcEvent.h
Referenced by Clear().
|
staticprivate |
Definition at line 178 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 178 of file OnlBbcEvent.h
|
staticprivate |
Definition at line 180 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 180 of file OnlBbcEvent.h
Referenced by setRawData().
|
private |
Definition at line 209 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 209 of file OnlBbcEvent.h
Referenced by Clear().
|
staticprivate |
Definition at line 179 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 179 of file OnlBbcEvent.h
Referenced by setRawData().
|
private |
Definition at line 185 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 185 of file OnlBbcEvent.h
Referenced by setRawData().
|
private |
Definition at line 215 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 215 of file OnlBbcEvent.h
Referenced by Clear(), and getTimeZero().
|
private |
Definition at line 216 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 216 of file OnlBbcEvent.h
Referenced by Clear().
|
private |
Definition at line 175 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 175 of file OnlBbcEvent.h
Referenced by calculate(), and Read_TQ_T0_Offsets().
|
private |
Definition at line 233 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 233 of file OnlBbcEvent.h
Referenced by calculate().
|
private |
Definition at line 182 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 182 of file OnlBbcEvent.h
Referenced by calculate().
|
private |
Definition at line 213 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 213 of file OnlBbcEvent.h
Referenced by Clear(), and getZVertex().
|
private |
Definition at line 214 of file OnlBbcEvent.h.
View newest version in sPHENIX GitHub at line 214 of file OnlBbcEvent.h
Referenced by Clear(), and getZVertexError().