ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCalib
MdtCalib
MdtCalibT0
MdtCalibT0
ADCMTHistos.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// ADCMTHistos.h
6
// Header file for class ADCMTHistos
8
// (c) ATLAS Detector software
10
//
12
13
#ifndef ADCMTHistos_H
14
#define ADCMTHistos_H
15
16
// c - c++
17
#include <iostream>
18
#include <memory>
19
20
// root
21
#include "TH1.h"
22
#include "TF1.h"
23
class
TDirectory;
24
25
// this
26
#include "
T0MTSettings.h
"
27
28
namespace
MuonCalib
{
29
41
class
ADCMTHistos
{
42
public
:
43
//---------------------------constructor----------------------------------------
45
inline
ADCMTHistos
() :
m_adc
(NULL),
m_id
(-1),
m_adc_ok
(false),
m_settings
(nullptr) {}
51
inline
ADCMTHistos
(
int
id
,
const
T0MTSettings
*settings,
const
char
*hname = NULL) :
52
m_adc
(NULL),
m_id
(-1),
m_adc_ok
(false),
m_settings
(nullptr) {
53
Initialize
(
id
, settings, hname);
54
}
55
//---------------------------public member functions----------------------------
61
void
Initialize
(
int
id
,
const
T0MTSettings
*settings,
const
char
*hname = NULL);
62
64
inline
TH1F *
GetADCSpec
() {
return
m_adc
; }
65
70
void
FillA
(
double
a
);
71
75
inline
int
Id
()
const
{
return
m_id
; }
76
78
bool
FitAdc
();
79
81
inline
TF1 *
GetAdcFunction
()
const
{
return
m_adc
->GetFunction(
"adc_fun"
); }
82
inline
bool
AdcOk
()
const
{
return
m_adc_ok
; }
83
84
private
:
85
//---------------------------private data members-------------------------------
87
TH1F *
m_adc
;
89
int
m_id
;
91
std::unique_ptr<TF1>
m_adc_fit
;
93
bool
m_adc_ok
;
95
const
T0MTSettings
*
m_settings
;
96
};
97
98
}
// namespace MuonCalib
99
100
#endif
a
static Double_t a
Definition
LArPhysWaveHECTool.cxx:38
T0MTSettings.h
MuonCalib::ADCMTHistos::FitAdc
bool FitAdc()
fit adc
Definition
ADCMTHistos.cxx:60
MuonCalib::ADCMTHistos::m_adc_ok
bool m_adc_ok
is true if the adc-fit is ok;
Definition
ADCMTHistos.h:93
MuonCalib::ADCMTHistos::AdcOk
bool AdcOk() const
Definition
ADCMTHistos.h:82
MuonCalib::ADCMTHistos::m_id
int m_id
tube id;
Definition
ADCMTHistos.h:89
MuonCalib::ADCMTHistos::Initialize
void Initialize(int id, const T0MTSettings *settings, const char *hname=NULL)
Initialize class.
Definition
ADCMTHistos.cxx:48
MuonCalib::ADCMTHistos::m_adc_fit
std::unique_ptr< TF1 > m_adc_fit
function which is fitted to the adc-spectrum
Definition
ADCMTHistos.h:91
MuonCalib::ADCMTHistos::GetAdcFunction
TF1 * GetAdcFunction() const
returnd function fitted to adc-spectrum
Definition
ADCMTHistos.h:81
MuonCalib::ADCMTHistos::FillA
void FillA(double a)
fill adc value
Definition
ADCMTHistos.cxx:42
MuonCalib::ADCMTHistos::GetADCSpec
TH1F * GetADCSpec()
get adc spectrum
Definition
ADCMTHistos.h:64
MuonCalib::ADCMTHistos::m_adc
TH1F * m_adc
pulse height spectrum
Definition
ADCMTHistos.h:87
MuonCalib::ADCMTHistos::ADCMTHistos
ADCMTHistos(int id, const T0MTSettings *settings, const char *hname=NULL)
Initializing constructor.
Definition
ADCMTHistos.h:51
MuonCalib::ADCMTHistos::m_settings
const T0MTSettings * m_settings
Pointer to settings class.
Definition
ADCMTHistos.h:95
MuonCalib::ADCMTHistos::Id
int Id() const
return tube id
Definition
ADCMTHistos.h:75
MuonCalib::ADCMTHistos::ADCMTHistos
ADCMTHistos()
Default Constructor.
Definition
ADCMTHistos.h:45
MuonCalib::T0MTSettings
Settings for the T0 calibration (histogram booking and fitting parameters) Parameters for pattern rec...
Definition
T0MTSettings.h:28
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition
CscCalcPed.cxx:21
Generated on
for ATLAS Offline Software by
1.17.0