|
ATLAS Offline Software
|
void FillT(double t)
fill drift time spectrum
int Id() const
return tube id
std::unique_ptr< TF1 > m_t0_fermi
function fitted to the riding edghe of the spectrum
TDirectory * m_dir
TDirectory where debug and result histograms are stored.
void TopChi2()
top chi2 calculation
static constexpr int N_T0_FIT_PAR
number of parameters in t0 fit
double m_chi2
chi2/NDF value
const TF1 * GetT0Function() const
returns function fitted to the riding edge of the spectrum
int StatusCode() const
returns status code - the status code applies only to the t0 fit
TH1F * GetTSpec() const
get drift time spectrum
static constexpr int T0_PAR_NR_T
std::unique_ptr< TF1 > m_tmax_fermi
function fitted to the falling edge of the spectrum
bool FitTmax()
Performs tmax-fit Returns true if fit is successfull.
static constexpr int T0_PAR_NR_BACK
int m_status_code
status code for t0 fit (0 ok, 1 not fitted, 2 low statistics, 3 failed)
void SetTSpec(int id, TH1F *spec, const T0MTSettings *settings, bool copy_spec=true)
set the pointer of the drift-time spectrum to an existing spectrum.
bool m_t0_ok
is true if t0 fit was successful
static constexpr int TMAX_PAR_NR_A
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
double T0Chi2() const
returns t0 chi2
void Initialize(int id, const T0MTSettings *settings, const char *hname=nullptr)
Initialize class.
TF1 * GetTMaxFunctionNC() const
returns function fitted to the riding edge of the spectrum
static constexpr int TMAX_PAR_NR_B
static constexpr int TMAX_PAR_NR_T0
TF1 * GetT0Function()
returns function fitted to the riding edge of the spectrum
static constexpr int T0_PAR_NR_T0
parameter numbers in t0 fit
T0MTHistos(int id, const T0MTSettings *settings, const char *hname=nullptr)
Initializing constructor.
const T0MTSettings * m_settings
Pointer to settings class.
const TF1 * GetTMaxFunction() const
returns function fitted to the riding edge of the spectrum
bool T0Scramble()
try to get better start values from a scrambled histogram
bool FitT0()
Perform t0-fit Returns true if fit is successfull.
double m_tmax_ok
is true if tmax fit was successful
std::unique_ptr< TH1F > m_time
time spectrum
T0MTHistos()=default
Default Constructor.
static constexpr int T0_PAR_NR_A
static constexpr int TMAX_PAR_NR_T
static constexpr int N_TMAX_FIT_PAR
number of parameters for tmax fit
static constexpr int TMAX_PAR_NR_TMAX
parameters numbers for tmax fit
void TopSlicing()
top slicing metyhod
static constexpr int TMAX_PAR_NR_BACK
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
bool T0Ok() const
returns true if t0-fit was successfull
bool TmaxOk() const
returns true if tmax-fir was successfull
bool NormalFit()
normal t0 fit