Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OnlBbcEvent Class Reference

#include <OnlMon/blob/main/subsystems/bbc/OnlBbcEvent.h>

+ Collaboration diagram for OnlBbcEvent:

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
 
OnlBbcSigGetSig (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
 
Packetp [2] {nullptr,nullptr}
 
Float_t f_adc [NCH][NSAMPLES]
 
Float_t f_samp [NCH][NSAMPLES]
 
Float_t f_ampl [NCH]
 
std::vector< OnlBbcSigbbcsig
 
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
 

Detailed Description

Definition at line 12 of file OnlBbcEvent.h.

View newest version in sPHENIX GitHub at line 12 of file OnlBbcEvent.h

Constructor & Destructor Documentation

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

References ac, gaussian, h2_tmax, and hevt_bbct.

Member Function Documentation

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.

+ Here is the call graph for this function:

int OnlBbcEvent::calib_is_done ( )
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().

+ Here is the caller graph for this function:

float OnlBbcEvent::get_bbcz ( )
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.

float OnlBbcEvent::get_t0 ( )
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.

int OnlBbcEvent::getAdc ( int  PmtIndx) const
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.

float OnlBbcEvent::getChargeSum ( int  arm) const
inline

Definition at line 111 of file OnlBbcEvent.h.

View newest version in sPHENIX GitHub at line 111 of file OnlBbcEvent.h

References ChargeSum.

int OnlBbcEvent::getEventNumber ( void  ) const
inline

Definition at line 28 of file OnlBbcEvent.h.

View newest version in sPHENIX GitHub at line 28 of file OnlBbcEvent.h

References EventNumber.

float OnlBbcEvent::getQ ( int  PmtIndx) const
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.

OnlBbcSig* OnlBbcEvent::GetSig ( const int  ipmt)
inline

Definition at line 168 of file OnlBbcEvent.h.

View newest version in sPHENIX GitHub at line 168 of file OnlBbcEvent.h

References bbcsig.

int OnlBbcEvent::getTdc0 ( int  PmtIndx) const
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.

int OnlBbcEvent::getTdc1 ( int  PmtIndx) const
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.

float OnlBbcEvent::getTimeZero ( void  ) const
inline

Definition at line 134 of file OnlBbcEvent.h.

View newest version in sPHENIX GitHub at line 134 of file OnlBbcEvent.h

References TimeZero.

float OnlBbcEvent::getTQ ( int  PmtIndx) const
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.

float OnlBbcEvent::getTT ( int  PmtIndx) const
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.

float OnlBbcEvent::getZVertex ( void  ) const
inline

Definition at line 126 of file OnlBbcEvent.h.

View newest version in sPHENIX GitHub at line 126 of file OnlBbcEvent.h

References ZVertex.

float OnlBbcEvent::getZVertexError ( void  ) const
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.

+ Here is the call graph for this function:

int OnlBbcEvent::Read_Charge_Calib ( const char *  calfname)
private

Definition at line 426 of file OnlBbcEvent.cc.

View newest version in sPHENIX GitHub at line 426 of file OnlBbcEvent.cc

References gaincorr, and width.

int OnlBbcEvent::Read_TQ_T0_Offsets ( const char *  calfname)
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.

+ Here is the call graph for this function:

Member Data Documentation

Float_t OnlBbcEvent::_tres = NAN
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().

TCanvas* OnlBbcEvent::ac
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().

int OnlBbcEvent::armHitPmt[BBC_N_PMT]
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().

float OnlBbcEvent::ArmHitTime[2]
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().

float OnlBbcEvent::ArmHitTimeError[2]
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().

const int OnlBbcEvent::BBC_N_PMT = 128
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().

float OnlBbcEvent::bbc_tq_t0_offsets[BBC_N_PMT] = {}
private

Definition at line 234 of file OnlBbcEvent.h.

View newest version in sPHENIX GitHub at line 234 of file OnlBbcEvent.h

std::vector<OnlBbcSig> OnlBbcEvent::bbcsig
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().

float OnlBbcEvent::bz_offset {0.}
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().

int OnlBbcEvent::calib_done
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().

float OnlBbcEvent::Charge[BBC_N_PMT]
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().

float OnlBbcEvent::ChargeSum[2]
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().

int OnlBbcEvent::EventNumber
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().

Float_t OnlBbcEvent::f_adc[NCH][NSAMPLES]
private

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().

Float_t OnlBbcEvent::f_ampl[NCH]
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().

Short_t OnlBbcEvent::f_bbcn[2] {}
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().

Float_t OnlBbcEvent::f_bbcq[2] {}
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().

Float_t OnlBbcEvent::f_bbct[2] {}
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().

Float_t OnlBbcEvent::f_bbct0 = NAN
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().

Float_t OnlBbcEvent::f_bbcte[2] {}
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().

Float_t OnlBbcEvent::f_bbcz = NAN
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().

Float_t OnlBbcEvent::f_pmtq[BBC_N_PMT] {}
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().

Float_t OnlBbcEvent::f_pmtt0[BBC_N_PMT] {}
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().

Float_t OnlBbcEvent::f_pmtt1[BBC_N_PMT] {}
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().

Float_t OnlBbcEvent::f_samp[NCH][NSAMPLES]
private

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().

float OnlBbcEvent::gaincorr[128] {}
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().

TF1* OnlBbcEvent::gaussian = nullptr
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().

TH2* OnlBbcEvent::h2_tmax[2] = {}
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().

TH1* OnlBbcEvent::hevt_bbct[2] {}
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().

float OnlBbcEvent::HitTime0[BBC_N_PMT]
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().

float OnlBbcEvent::HitTime1[BBC_N_PMT]
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().

int OnlBbcEvent::iHit[BBC_N_PMT]
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().

const int OnlBbcEvent::NCH = 256
staticprivate

Definition at line 178 of file OnlBbcEvent.h.

View newest version in sPHENIX GitHub at line 178 of file OnlBbcEvent.h

const int OnlBbcEvent::NCHPERPKT = 128
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().

int OnlBbcEvent::nHitPmt[2]
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().

const int OnlBbcEvent::NSAMPLES = 31
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().

Packet* OnlBbcEvent::p[2] {nullptr,nullptr}
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().

float OnlBbcEvent::TimeZero
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().

float OnlBbcEvent::TimeZeroError
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().

float OnlBbcEvent::tq_t0_offsets[128] {}
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().

float OnlBbcEvent::TRIG_SAMP[16]
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().

int OnlBbcEvent::verbose
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().

float OnlBbcEvent::ZVertex
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().

float OnlBbcEvent::ZVertexError
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().


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