Project
Loading...
Searching...
No Matches
o2::zdc::InterCalib Class Reference

#include <InterCalib.h>

Public Member Functions

 InterCalib ()=default
 
int init ()
 
void clear (int ih=-1)
 
int process (const gsl::span< const o2::zdc::BCRecData > &bcrec, const gsl::span< const o2::zdc::ZDCEnergy > &energy, const gsl::span< const o2::zdc::ZDCTDCData > &tdc, const gsl::span< const uint16_t > &info)
 
int process (const InterCalibData &data)
 
int endOfRun ()
 
int process (const char *hname, int ic)
 
void replay (int ih, THnSparse *hs, int ic)
 
int mini (int ih)
 
void add (int ih, o2::dataformats::FlatHisto1D< float > &h1)
 
void add (int ih, o2::dataformats::FlatHisto2D< float > &h2)
 
int saveDebugHistos (const std::string fn="ZDCInterCalib.root")
 
void setSaveDebugHistos ()
 
void setDontSaveDebugHistos ()
 
void cumulate (int ih, double tc, double t1, double t2, double t3, double t4, double w)
 
const ZDCTowerParamgetTowerParamUpd () const
 
CcdbObjectInfogetCcdbObjectInfo ()
 
void setEnergyParam (const ZDCEnergyParam *param)
 
const ZDCEnergyParamgetEnergyParam () const
 
void setTowerParam (const ZDCTowerParam *param)
 
const ZDCTowerParamgetTowerParam () const
 
void setInterCalibConfig (const InterCalibConfig *param)
 
const InterCalibConfiggetInterCalibConfig () const
 
InterCalibDatagetData ()
 
void setVerbosity (int v)
 
int getVerbosity () const
 

Static Public Member Functions

static void fcn (int &npar, double *gin, double &chi, double *par, int iflag)
 Temporary copy of cumulated sums.
 

Static Public Attributes

static constexpr int HidZNA = 0
 
static constexpr int HidZPA = 1
 
static constexpr int HidZNC = 2
 
static constexpr int HidZPC = 3
 
static constexpr int HidZEM = 4
 
static constexpr int HidZNI = 5
 
static constexpr int HidZPI = 6
 
static constexpr int HidZPAX = 7
 
static constexpr int HidZPCX = 8
 
static constexpr int NH = InterCalibData::NH
 
static constexpr int NPAR = InterCalibData::NPAR
 
static double mAdd [NPAR][NPAR] = {0}
 
static constexpr const charmHUncN [2 *NH]
 
static constexpr const charmHUncT [2 *NH]
 
static constexpr const charmCUncN [NH] = {"cZNA", "cZPA", "cZNC", "cZPC", "cZEM", "cZNI", "cZPI", "cZPAX", "cZPCX"}
 
static constexpr const charmCUncT [NH] = {"ZNA;TC;SUM", "ZPA;TC;SUM", "ZNC;TC;SUM", "ZPC;TC;SUM", "ZEM;ZEM1;ZEM2", "ZN;ZNAC;ZNCC", "ZP;ZPAC;ZPCC", "ZPA (x cut);TC;SUM", "ZPC (x cut);TC;SUM"}
 

Detailed Description

Definition at line 34 of file InterCalib.h.

Constructor & Destructor Documentation

◆ InterCalib()

o2::zdc::InterCalib::InterCalib ( )
default

Member Function Documentation

◆ add() [1/2]

void InterCalib::add ( int  ih,
o2::dataformats::FlatHisto1D< float > &  h1 
)

Definition at line 422 of file InterCalib.cxx.

◆ add() [2/2]

void InterCalib::add ( int  ih,
o2::dataformats::FlatHisto2D< float > &  h2 
)

Definition at line 435 of file InterCalib.cxx.

◆ clear()

void InterCalib::clear ( int  ih = -1)

Definition at line 390 of file InterCalib.cxx.

◆ cumulate()

void InterCalib::cumulate ( int  ih,
double  tc,
double  t1,
double  t2,
double  t3,
double  t4,
double  w = 1 
)

Definition at line 447 of file InterCalib.cxx.

◆ endOfRun()

int InterCalib::endOfRun ( )

Definition at line 128 of file InterCalib.cxx.

◆ fcn()

void InterCalib::fcn ( int npar,
double *  gin,
double &  chi,
double *  par,
int  iflag 
)
static

Temporary copy of cumulated sums.

Definition at line 491 of file InterCalib.cxx.

◆ getCcdbObjectInfo()

CcdbObjectInfo & o2::zdc::InterCalib::getCcdbObjectInfo ( )
inline

Definition at line 74 of file InterCalib.h.

◆ getData()

InterCalibData & o2::zdc::InterCalib::getData ( )
inline

Definition at line 83 of file InterCalib.h.

◆ getEnergyParam()

const ZDCEnergyParam * o2::zdc::InterCalib::getEnergyParam ( ) const
inline

Definition at line 77 of file InterCalib.h.

◆ getInterCalibConfig()

const InterCalibConfig * o2::zdc::InterCalib::getInterCalibConfig ( ) const
inline

Definition at line 81 of file InterCalib.h.

◆ getTowerParam()

const ZDCTowerParam * o2::zdc::InterCalib::getTowerParam ( ) const
inline

Definition at line 79 of file InterCalib.h.

◆ getTowerParamUpd()

const ZDCTowerParam & o2::zdc::InterCalib::getTowerParamUpd ( ) const
inline

Definition at line 72 of file InterCalib.h.

◆ getVerbosity()

int o2::zdc::InterCalib::getVerbosity ( ) const
inline

Definition at line 86 of file InterCalib.h.

◆ init()

int InterCalib::init ( )

Definition at line 34 of file InterCalib.cxx.

◆ mini()

int InterCalib::mini ( int  ih)

Definition at line 504 of file InterCalib.cxx.

◆ process() [1/3]

int InterCalib::process ( const char hname,
int  ic 
)

Definition at line 270 of file InterCalib.cxx.

◆ process() [2/3]

int InterCalib::process ( const gsl::span< const o2::zdc::BCRecData > &  bcrec,
const gsl::span< const o2::zdc::ZDCEnergy > &  energy,
const gsl::span< const o2::zdc::ZDCTDCData > &  tdc,
const gsl::span< const uint16_t > &  info 
)

Definition at line 68 of file InterCalib.cxx.

◆ process() [3/3]

int InterCalib::process ( const InterCalibData data)

Definition at line 413 of file InterCalib.cxx.

◆ replay()

void InterCalib::replay ( int  ih,
THnSparse *  hs,
int  ic 
)

Definition at line 348 of file InterCalib.cxx.

◆ saveDebugHistos()

int InterCalib::saveDebugHistos ( const std::string  fn = "ZDCInterCalib.root")

Definition at line 600 of file InterCalib.cxx.

◆ setDontSaveDebugHistos()

void o2::zdc::InterCalib::setDontSaveDebugHistos ( )
inline

Definition at line 66 of file InterCalib.h.

◆ setEnergyParam()

void o2::zdc::InterCalib::setEnergyParam ( const ZDCEnergyParam param)
inline

Definition at line 76 of file InterCalib.h.

◆ setInterCalibConfig()

void o2::zdc::InterCalib::setInterCalibConfig ( const InterCalibConfig param)
inline

Definition at line 80 of file InterCalib.h.

◆ setSaveDebugHistos()

void o2::zdc::InterCalib::setSaveDebugHistos ( )
inline

Definition at line 65 of file InterCalib.h.

◆ setTowerParam()

void o2::zdc::InterCalib::setTowerParam ( const ZDCTowerParam param)
inline

Definition at line 78 of file InterCalib.h.

◆ setVerbosity()

void o2::zdc::InterCalib::setVerbosity ( int  v)
inline

Definition at line 85 of file InterCalib.h.

Member Data Documentation

◆ HidZEM

constexpr int o2::zdc::InterCalib::HidZEM = 4
staticconstexpr

Definition at line 45 of file InterCalib.h.

◆ HidZNA

constexpr int o2::zdc::InterCalib::HidZNA = 0
staticconstexpr

Definition at line 41 of file InterCalib.h.

◆ HidZNC

constexpr int o2::zdc::InterCalib::HidZNC = 2
staticconstexpr

Definition at line 43 of file InterCalib.h.

◆ HidZNI

constexpr int o2::zdc::InterCalib::HidZNI = 5
staticconstexpr

Definition at line 46 of file InterCalib.h.

◆ HidZPA

constexpr int o2::zdc::InterCalib::HidZPA = 1
staticconstexpr

Definition at line 42 of file InterCalib.h.

◆ HidZPAX

constexpr int o2::zdc::InterCalib::HidZPAX = 7
staticconstexpr

Definition at line 48 of file InterCalib.h.

◆ HidZPC

constexpr int o2::zdc::InterCalib::HidZPC = 3
staticconstexpr

Definition at line 44 of file InterCalib.h.

◆ HidZPCX

constexpr int o2::zdc::InterCalib::HidZPCX = 8
staticconstexpr

Definition at line 49 of file InterCalib.h.

◆ HidZPI

constexpr int o2::zdc::InterCalib::HidZPI = 6
staticconstexpr

Definition at line 47 of file InterCalib.h.

◆ mAdd

double InterCalib::mAdd = {0}
static

Definition at line 68 of file InterCalib.h.

◆ mCUncN

constexpr const char* o2::zdc::InterCalib::mCUncN[NH] = {"cZNA", "cZPA", "cZNC", "cZPC", "cZEM", "cZNI", "cZPI", "cZPAX", "cZPCX"}
staticconstexpr

Definition at line 93 of file InterCalib.h.

◆ mCUncT

constexpr const char* o2::zdc::InterCalib::mCUncT[NH] = {"ZNA;TC;SUM", "ZPA;TC;SUM", "ZNC;TC;SUM", "ZPC;TC;SUM", "ZEM;ZEM1;ZEM2", "ZN;ZNAC;ZNCC", "ZP;ZPAC;ZPCC", "ZPA (x cut);TC;SUM", "ZPC (x cut);TC;SUM"}
staticconstexpr

Definition at line 94 of file InterCalib.h.

◆ mHUncN

constexpr const char* o2::zdc::InterCalib::mHUncN[2 *NH]
staticconstexpr
Initial value:
= {"hZNAS", "hZPAS", "hZNCS", "hZPCS", "hZEM2", "", "", "hZPASX", "hZPCSX",
"hZNAC", "hZPAC", "hZNCC", "hZPCC", "hZEM1", "", "", "hZPACX", "hZPCCX"}

Definition at line 89 of file InterCalib.h.

◆ mHUncT

constexpr const char* o2::zdc::InterCalib::mHUncT[2 *NH]
staticconstexpr
Initial value:
= {"ZNA sum", "ZPA sum", "ZNC sum", "ZPC sum", "ZEM2", "", "", "ZPA sum", "ZPC sum",
"ZNA TC", "ZPA TC", "ZNC TC", "ZPC TC", "ZEM1", "", "", "ZPA TC", "ZPC TC"}

Definition at line 91 of file InterCalib.h.

◆ NH

constexpr int o2::zdc::InterCalib::NH = InterCalibData::NH
staticconstexpr

Definition at line 50 of file InterCalib.h.

◆ NPAR

constexpr int o2::zdc::InterCalib::NPAR = InterCalibData::NPAR
staticconstexpr

Definition at line 51 of file InterCalib.h.


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