ATLAS Offline Software
T0MTSettings.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // T0MTSettings.h
6 // Header file for class T0MTSettings
8 // (c) ATLAS Detector software
10 //
12 
13 #ifndef T0MTSETTINGS_H
14 #define T0MTSETTINGS_H
15 
16 #include "T0MTSettingsT0.h"
17 #include "T0MTSettingsTMax.h"
18 
19 namespace MuonCalib {
20 
28  class T0MTSettings {
29  public:
30  //===========================constructor=======================================
32  T0MTSettings();
33  //============================public emmber functions===========================
38  inline const int &NBinsADC() const { return m_n_bins_adc; }
39  inline int &NBinsADC() { return m_n_bins_adc; }
40  inline double ADCMin() const { return m_adc_min; }
41  inline double &ADCMin() { return m_adc_min; }
42  inline double ADCMax() const { return m_adc_max; }
43  inline double &ADCMax() { return m_adc_max; }
45  inline const int &NBinsTime() const { return m_n_bins_time; }
46  inline int &NBinsTime() { return m_n_bins_time; }
47  inline double TimeMin() const { return m_time_min; }
48  inline double &TimeMin() { return m_time_min; }
49  inline double TimeMax() const { return m_time_max; }
50  inline double &TimeMax() { return m_time_max; }
52 
55 
60  inline const bool &DrawDebugGraphs() const { return m_draw_debug_graphs; }
61  inline bool &DrawDebugGraphs() { return m_draw_debug_graphs; }
63  inline const bool &AddFitfun() const { return m_add_fitfun; }
64  inline bool &AddFitfun() { return m_add_fitfun; }
65  inline bool &AddFitfun(bool add_fitfun) {
66  m_add_fitfun = add_fitfun;
67  return m_add_fitfun;
68  }
73  inline const int &VerboseLevel() const { return m_verbose_level; }
74  inline int &VerboseLevel() { return m_verbose_level; }
75 
77 
78  inline const T0MTSettingsT0 *T0Settings() const { return &m_t0_settings; }
79  inline T0MTSettingsT0 *T0Settings() { return &m_t0_settings; }
81  inline const T0MTSettingsTMax *TMaxSettings() const { return &m_tmax_settings; }
84  inline const bool &FitTime() const { return m_fit_time; }
85  inline bool &FitTime() { return m_fit_time; }
87  inline const bool &FitADC() const { return m_fit_time; }
88  inline bool &FitADC() { return m_fit_time; }
89  /* minimum number of entries per fit */
90  inline const int &MinEntriesTime() const { return m_min_entries_time; }
91  inline int &MinEntriesTime() { return m_min_entries_time; }
92  inline const int &MinEntriesADC() const { return m_min_entries_adc; }
93  inline int &MinEntriesADC() { return m_min_entries_adc; }
94 
95  private:
96  //===========================private data members=============================
97  //----------------------------histogram binning--------------------------------
104  //---------------------------debug settings-------------------------------------
111  //---------------------------t0 - tmax - settings-------------------------------
116  };
117 
118 } // namespace MuonCalib
119 
120 #endif
MuonCalib::T0MTSettings::m_min_entries_time
int m_min_entries_time
Definition: T0MTSettings.h:113
MuonCalib::T0MTSettings::TMaxSettings
const T0MTSettingsTMax * TMaxSettings() const
get settings for the tmax-fit
Definition: T0MTSettings.h:81
MuonCalib::T0MTSettings::AddFitfun
bool & AddFitfun(bool add_fitfun)
Definition: T0MTSettings.h:65
MuonCalib::T0MTSettings::ADCMin
double & ADCMin()
Definition: T0MTSettings.h:41
MuonCalib::T0MTSettings::TimeMax
double TimeMax() const
Definition: T0MTSettings.h:49
MuonCalib::T0MTSettings::AddFitfun
bool & AddFitfun()
Definition: T0MTSettings.h:64
MuonCalib::T0MTSettings::m_fit_time
bool m_fit_time
Definition: T0MTSettings.h:112
MuonCalib::T0MTSettings::MinEntriesADC
const int & MinEntriesADC() const
Definition: T0MTSettings.h:92
MuonCalib::T0MTSettings::ADCMax
double & ADCMax()
Definition: T0MTSettings.h:43
MuonCalib::T0MTSettings::MinEntriesADC
int & MinEntriesADC()
Definition: T0MTSettings.h:93
MuonCalib::T0MTSettings::ADCMax
double ADCMax() const
Definition: T0MTSettings.h:42
MuonCalib::T0MTSettings::NBinsTime
int & NBinsTime()
Definition: T0MTSettings.h:46
MuonCalib::T0MTSettings::MinEntriesTime
const int & MinEntriesTime() const
Definition: T0MTSettings.h:90
MuonCalib::T0MTSettings::NBinsTime
const int & NBinsTime() const
Number of bins for time histogram and range.
Definition: T0MTSettings.h:45
MuonCalib::T0MTSettings::TimeMin
double TimeMin() const
Definition: T0MTSettings.h:47
MuonCalib::T0MTSettings::T0Settings
T0MTSettingsT0 * T0Settings()
Definition: T0MTSettings.h:79
MuonCalib::T0MTSettings::T0Settings
const T0MTSettingsT0 * T0Settings() const
get settings for the t0-fit
Definition: T0MTSettings.h:78
MuonCalib::T0MTSettings::TMaxSettings
T0MTSettingsTMax * TMaxSettings()
Definition: T0MTSettings.h:82
MuonCalib::T0MTSettings::T0MTSettings
T0MTSettings()
default constructor
Definition: T0MTSettings.cxx:9
T0MTSettingsT0.h
MuonCalib::T0MTSettings::m_time_min
double m_time_min
Definition: T0MTSettings.h:103
MuonCalib::T0MTSettingsTMax
Definition: T0MTSettingsTMax.h:24
MuonCalib::T0MTSettings::FitADC
const bool & FitADC() const
if true fit adc spectrum
Definition: T0MTSettings.h:87
MuonCalib::T0MTSettings::VerboseLevel
const int & VerboseLevel() const
verbose level 0: no output 1: Fitter output
Definition: T0MTSettings.h:73
MuonCalib::T0MTSettings::TimeMax
double & TimeMax()
Definition: T0MTSettings.h:50
MuonCalib::T0MTSettings::NBinsADC
const int & NBinsADC() const
Number of bins for ADC histogram and range.
Definition: T0MTSettings.h:38
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::T0MTSettings::m_adc_max
double m_adc_max
Definition: T0MTSettings.h:100
MuonCalib::T0MTSettings::FitTime
const bool & FitTime() const
if true fit drift time spectrum
Definition: T0MTSettings.h:84
T0MTSettingsTMax.h
MuonCalib::T0MTSettings::NBinsADC
int & NBinsADC()
Definition: T0MTSettings.h:39
MuonCalib::T0MTSettings::m_t0_settings
T0MTSettingsT0 m_t0_settings
Definition: T0MTSettings.h:114
MuonCalib::T0MTSettings::TimeMin
double & TimeMin()
Definition: T0MTSettings.h:48
MuonCalib::T0MTSettings::MinEntriesTime
int & MinEntriesTime()
Definition: T0MTSettings.h:91
MuonCalib::T0MTSettings::m_add_fitfun
bool m_add_fitfun
if set to true fitted functions are added to hostograms
Definition: T0MTSettings.h:108
MuonCalib::T0MTSettings::m_draw_debug_graphs
bool m_draw_debug_graphs
if set to true for each debug graphs for the pattern recognition are drawn
Definition: T0MTSettings.h:106
MuonCalib::T0MTSettings::m_adc_min
double m_adc_min
Definition: T0MTSettings.h:100
MuonCalib::T0MTSettings::FitTime
bool & FitTime()
Definition: T0MTSettings.h:85
MuonCalib::T0MTSettings::AddFitfun
const bool & AddFitfun() const
If set to true the fitted functions are added to the histograms.
Definition: T0MTSettings.h:63
MuonCalib::T0MTSettings::m_n_bins_adc
int m_n_bins_adc
ADC bhistogram binning.
Definition: T0MTSettings.h:99
MuonCalib::T0MTSettings::m_n_bins_time
int m_n_bins_time
drift time binning
Definition: T0MTSettings.h:102
MuonCalib::T0MTSettings::DrawDebugGraphs
const bool & DrawDebugGraphs() const
If set to true for every tube a TDirectory will be created.
Definition: T0MTSettings.h:60
MuonCalib::T0MTSettings::VerboseLevel
int & VerboseLevel()
Definition: T0MTSettings.h:74
MuonCalib::T0MTSettings::DrawDebugGraphs
bool & DrawDebugGraphs()
Definition: T0MTSettings.h:61
MuonCalib::T0MTSettings::ADCMin
double ADCMin() const
Definition: T0MTSettings.h:40
MuonCalib::T0MTSettings::m_min_entries_adc
int m_min_entries_adc
Definition: T0MTSettings.h:113
MuonCalib::T0MTSettings::m_tmax_settings
T0MTSettingsTMax m_tmax_settings
Definition: T0MTSettings.h:115
MuonCalib::T0MTSettingsT0
Definition: T0MTSettingsT0.h:24
MuonCalib::T0MTSettings::m_verbose_level
int m_verbose_level
verbose level
Definition: T0MTSettings.h:110
MuonCalib::T0MTSettings::FitADC
bool & FitADC()
Definition: T0MTSettings.h:88
MuonCalib::T0MTSettings::m_time_max
double m_time_max
Definition: T0MTSettings.h:103
MuonCalib::T0MTSettings
Definition: T0MTSettings.h:28