Project
Loading...
Searching...
No Matches
o2::globaltracking::CalibTOF Class Reference

#include <CalibTOF.h>

Public Types

enum  CalibType : int { kLHCphase = 1 , kChannelOffset = 2 , kChannelTimeSlewing = 4 }
 

Public Member Functions

 CalibTOF ()
 < constructor
 
 ~CalibTOF ()
 calibrate using the provided input
 
void run (int flag, int sector=-1)
 
void fillOutput (int flag=kLHCphase|kChannelOffset|kChannelTimeSlewing)
 perform all initializations
 
void init ()
 set tree/chain containing TOF calib info
 
void setInputTreeTOFCollectedCalibInfo (TTree *tree)
 set output tree to write calibration objects
 
void setOutputTree (TTree *tr)
 set input branch names for the input from the tree
 
void setCollectedCalibInfoTOFBranchName (const std::string &nm)
 
void setOutputBranchName (const std::string &nm)
 get input branch names for the input from the tree
 
const std::string & getCollectedCalibInfoTOFBranchName () const
 
const std::string & getOutputBranchName () const
 print settings
 
void print () const
 
TH2F * getLHCphaseHisto ()
 
TH2F * getChTimeSlewingHistoAll ()
 
void setMinTimestamp (int minTimestamp)
 
void setMaxTimestamp (int maxTimestamp)
 
TGraphErrors * processSlewing (TH2F *histo, Bool_t forceZero, TF1 *fitFunc)
 
Int_t FitPeak (TF1 *fitFunc, TH1 *h, Float_t startSigma, Float_t nSigmaMin, Float_t nSigmaMax, const char *debuginfo="", TH2 *hdbg=nullptr)
 
void setDebugMode (Int_t flag=kTRUE)
 
Int_t getDebugMode () const
 
void merge (const char *name)
 
void flagProblematics ()
 problematics are flagged with negative values for frationUnderPeak: -100 empty channels, -1<fraction<0 bad fits (-0.0001) or bad parameters
 
void setNsigmaFractionProblematicCut (float value)
 
void setNsigmaSigmaProblematicCut (float value)
 
float getNsigmaFractionProblematicCut () const
 
float getNsigmaSigmaProblematicCut () const
 
void setFillCCDB (bool flag)
 
bool getFillCCDB () const
 
void setCCDBpath (const std::string path)
 
std::string getCCDBpath () const
 

Static Public Attributes

static constexpr int NSTRIPSPERSTEP = 13
 
static constexpr int NPADSPERSTEP = Geo::NPADS * NSTRIPSPERSTEP
 
static constexpr int NSTEPSPERSECTOR = 91 / NSTRIPSPERSTEP
 

Detailed Description

Definition at line 43 of file CalibTOF.h.

Member Enumeration Documentation

◆ CalibType

Enumerator
kLHCphase 
kChannelOffset 
kChannelTimeSlewing 

Definition at line 53 of file CalibTOF.h.

Constructor & Destructor Documentation

◆ CalibTOF()

CalibTOF::CalibTOF ( )

< constructor

destructor

Definition at line 33 of file CalibTOF.cxx.

◆ ~CalibTOF()

CalibTOF::~CalibTOF ( )

calibrate using the provided input

Definition at line 43 of file CalibTOF.cxx.

Member Function Documentation

◆ fillOutput()

void CalibTOF::fillOutput ( int  flag = kLHCphase | kChannelOffset | kChannelTimeSlewing)

perform all initializations

Definition at line 272 of file CalibTOF.cxx.

◆ FitPeak()

Int_t CalibTOF::FitPeak ( TF1 fitFunc,
TH1 *  h,
Float_t  startSigma,
Float_t  nSigmaMin,
Float_t  nSigmaMax,
const char debuginfo = "",
TH2 *  hdbg = nullptr 
)

Definition at line 571 of file CalibTOF.cxx.

◆ flagProblematics()

void CalibTOF::flagProblematics ( )

problematics are flagged with negative values for frationUnderPeak: -100 empty channels, -1<fraction<0 bad fits (-0.0001) or bad parameters

Definition at line 688 of file CalibTOF.cxx.

◆ getCCDBpath()

std::string o2::globaltracking::CalibTOF::getCCDBpath ( ) const
inline

Definition at line 111 of file CalibTOF.h.

◆ getChTimeSlewingHistoAll()

TH2F * o2::globaltracking::CalibTOF::getChTimeSlewingHistoAll ( )
inline

Definition at line 88 of file CalibTOF.h.

◆ getCollectedCalibInfoTOFBranchName()

const std::string & o2::globaltracking::CalibTOF::getCollectedCalibInfoTOFBranchName ( ) const
inline

Definition at line 81 of file CalibTOF.h.

◆ getDebugMode()

Int_t o2::globaltracking::CalibTOF::getDebugMode ( ) const
inline

Definition at line 96 of file CalibTOF.h.

◆ getFillCCDB()

bool o2::globaltracking::CalibTOF::getFillCCDB ( ) const
inline

Definition at line 108 of file CalibTOF.h.

◆ getLHCphaseHisto()

TH2F * o2::globaltracking::CalibTOF::getLHCphaseHisto ( )
inline

Definition at line 87 of file CalibTOF.h.

◆ getNsigmaFractionProblematicCut()

float o2::globaltracking::CalibTOF::getNsigmaFractionProblematicCut ( ) const
inline

Definition at line 104 of file CalibTOF.h.

◆ getNsigmaSigmaProblematicCut()

float o2::globaltracking::CalibTOF::getNsigmaSigmaProblematicCut ( ) const
inline

Definition at line 105 of file CalibTOF.h.

◆ getOutputBranchName()

const std::string & o2::globaltracking::CalibTOF::getOutputBranchName ( ) const
inline

print settings

Definition at line 82 of file CalibTOF.h.

◆ init()

void CalibTOF::init ( )

set tree/chain containing TOF calib info

< initizalizations

Definition at line 72 of file CalibTOF.cxx.

◆ merge()

void CalibTOF::merge ( const char name)

Definition at line 658 of file CalibTOF.cxx.

◆ print()

void CalibTOF::print ( ) const

< print the settings

Definition at line 289 of file CalibTOF.cxx.

◆ processSlewing()

TGraphErrors * CalibTOF::processSlewing ( TH2F *  histo,
Bool_t  forceZero,
TF1 fitFunc 
)

Definition at line 485 of file CalibTOF.cxx.

◆ run()

void CalibTOF::run ( int  flag,
int  sector = -1 
)

< running the matching

Definition at line 126 of file CalibTOF.cxx.

◆ setCCDBpath()

void o2::globaltracking::CalibTOF::setCCDBpath ( const std::string  path)
inline

Definition at line 110 of file CalibTOF.h.

◆ setCollectedCalibInfoTOFBranchName()

void o2::globaltracking::CalibTOF::setCollectedCalibInfoTOFBranchName ( const std::string &  nm)
inline

Definition at line 77 of file CalibTOF.h.

◆ setDebugMode()

void o2::globaltracking::CalibTOF::setDebugMode ( Int_t  flag = kTRUE)
inline

Definition at line 95 of file CalibTOF.h.

◆ setFillCCDB()

void o2::globaltracking::CalibTOF::setFillCCDB ( bool  flag)
inline

Definition at line 107 of file CalibTOF.h.

◆ setInputTreeTOFCollectedCalibInfo()

void o2::globaltracking::CalibTOF::setInputTreeTOFCollectedCalibInfo ( TTree *  tree)
inline

set output tree to write calibration objects

Definition at line 71 of file CalibTOF.h.

◆ setMaxTimestamp()

void o2::globaltracking::CalibTOF::setMaxTimestamp ( int  maxTimestamp)
inline

Definition at line 90 of file CalibTOF.h.

◆ setMinTimestamp()

void o2::globaltracking::CalibTOF::setMinTimestamp ( int  minTimestamp)
inline

Definition at line 89 of file CalibTOF.h.

◆ setNsigmaFractionProblematicCut()

void o2::globaltracking::CalibTOF::setNsigmaFractionProblematicCut ( float  value)
inline

Definition at line 102 of file CalibTOF.h.

◆ setNsigmaSigmaProblematicCut()

void o2::globaltracking::CalibTOF::setNsigmaSigmaProblematicCut ( float  value)
inline

Definition at line 103 of file CalibTOF.h.

◆ setOutputBranchName()

void o2::globaltracking::CalibTOF::setOutputBranchName ( const std::string &  nm)
inline

get input branch names for the input from the tree

Definition at line 78 of file CalibTOF.h.

◆ setOutputTree()

void o2::globaltracking::CalibTOF::setOutputTree ( TTree *  tr)
inline

set input branch names for the input from the tree

Definition at line 74 of file CalibTOF.h.

Member Data Documentation

◆ NPADSPERSTEP

constexpr int o2::globaltracking::CalibTOF::NPADSPERSTEP = Geo::NPADS * NSTRIPSPERSTEP
staticconstexpr

Definition at line 51 of file CalibTOF.h.

◆ NSTEPSPERSECTOR

constexpr int o2::globaltracking::CalibTOF::NSTEPSPERSECTOR = 91 / NSTRIPSPERSTEP
staticconstexpr

Definition at line 52 of file CalibTOF.h.

◆ NSTRIPSPERSTEP

constexpr int o2::globaltracking::CalibTOF::NSTRIPSPERSTEP = 13
staticconstexpr

Definition at line 49 of file CalibTOF.h.


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