Class Reference for E1039 Core & Analysis Software
UtilBeam Namespace Reference

A set of utility functions about the beam info. More...

Functions

void ListOfRfValues (int &n_value, int *&list_values)
 Make a list of QIE RF+nn values. More...
 
void ListOfRfValues (int &n_value, double *&list_values)
 Make a list of QIE RF+nn values. More...
 
double PoTRaw (const unsigned int spill_id)
 Return the raw number of PoT. More...
 
double PoTLive (const unsigned int spill_id)
 Return the live number of PoT. More...
 
double PoTPerQIE (const unsigned int spill_id)
 Return PoT/QIEsum. More...
 
double QIE2Proton (const int qie_count, const unsigned int spill_id)
 Convert the QIE count to the number of protons. More...
 

Detailed Description

A set of utility functions about the beam info.

Function Documentation

◆ ListOfRfValues() [1/2]

void UtilBeam::ListOfRfValues ( int &  n_value,
double *&  list_values 
)

Make a list of QIE RF+nn values.

This function uses an array of "double", instead of "int". It is suitable for the constructors of the TH1 classes.

int num_inte;
double* list_inte;
UtilBeam::ListOfRfValues(num_inte, list_inte);
TH1* h1_rf_inte = new TH1D("h1_rf_inte", "", num_inte - 1, list_inte);
void ListOfRfValues(int &n_value, int *&list_values)
Make a list of QIE RF+nn values.
Definition: UtilBeam.cc:10

Definition at line 48 of file UtilBeam.cc.

References ListOfRfValues().

+ Here is the call graph for this function:

◆ ListOfRfValues() [2/2]

void UtilBeam::ListOfRfValues ( int &  n_value,
int *&  list_values 
)

Make a list of QIE RF+nn values.

The possible values for QIE RF+nn are not evenly distributed. This function just fills list_values with a list of all values. The values are taken from "float_2_linrom-2.xls" in DocDB 537.

Definition at line 10 of file UtilBeam.cc.

Referenced by AnaBG::Init(), and ListOfRfValues().

+ Here is the caller graph for this function:

◆ PoTLive()

double UtilBeam::PoTLive ( const unsigned int  spill_id)

Return the live number of PoT.

The QIE pedestal is not subtracted at present.

Definition at line 19 of file UtilBeam.cc.

Referenced by AnaSortMixVertex::Analyze().

+ Here is the caller graph for this function:

◆ PoTPerQIE()

double UtilBeam::PoTPerQIE ( const unsigned int  spill_id)

Return PoT/QIEsum.

The QIE pedestal is subtracted from QIEsum.

Definition at line 38 of file UtilBeam.cc.

Referenced by AnaSortMixVertex::Analyze().

+ Here is the caller graph for this function:

◆ PoTRaw()

double UtilBeam::PoTRaw ( const unsigned int  spill_id)

Return the raw number of PoT.

Definition at line 6 of file UtilBeam.cc.

◆ QIE2Proton()

double UtilBeam::QIE2Proton ( const int  qie_count,
const unsigned int  spill_id 
)

Convert the QIE count to the number of protons.

This function does not subtract the QIE pedestal from qie_count.

Definition at line 60 of file UtilBeam.cc.