![]() |
ATLAS Offline Software
|
Implementation of a T0 calibration using the MT approach. More...
#include <T0CalibrationMT.h>
Public Types | |
| using | MuonSegVec = std::vector<std::shared_ptr<MuonCalibSegment>> |
| using | MuonSegIt = MuonSegVec::iterator |
| using | MuonSegCit = MuonSegVec::const_iterator |
| using | MdtCalibOutputPtr = std::shared_ptr<IMdtCalibrationOutput> |
Public Member Functions | |
| T0CalibrationMT (const std::string &name, std::shared_ptr< const T0MTSettings > settings, const std::vector< int > &sort_by, const std::vector< int > &adc_sort_by) | |
| constructor | |
| ~T0CalibrationMT () | |
| destructor | |
| bool | handleSegment (MuonCalibSegment &seg) |
| fill tube spectra | |
| void | setInput (const IMdtCalibrationOutput *input) override |
| unused | |
| bool | analyse () |
| extract parameters from spectra | |
| bool | converged () const |
| return m_converged | |
| virtual IMdtCalibration::MdtCalibOutputPtr | getResults () const override |
| virtual IMdtCalibration::MdtCalibOutputPtr | analyseSegments (const MuonSegVec &segs) override |
| new interface function | |
| virtual std::string | name () const |
| returns name (region) of instance | |
Private Member Functions | |
| T0MTHistos * | getHistos (const MuonFixedId &idtube, unsigned int nr) |
| retrieve pointer for tube idtube histograms | |
| ADCMTHistos * | getADCHistos (const MuonFixedId &idtube, unsigned int nr) |
| retrieve pointer for tube idtube histograms | |
| bool | analyse_tdc (const int &nr, std::map< int, MdtTubeFitContainer::SingleTubeFit > &full, std::map< int, MdtTubeFitContainer::SingleTubeCalib > &st, std::map< int, std::string > &fit_by_map) |
| bool | analyse_adc (const int &nr, std::map< int, MdtTubeFitContainer::SingleTubeFit > &full, std::map< int, MdtTubeFitContainer::SingleTubeCalib > &st) |
| void | doTimeFit (T0MTHistos *T0h, const std::set< MuonFixedId > &tube_ids, std::map< int, MdtTubeFitContainer::SingleTubeFit > &fim, std::map< int, MdtTubeFitContainer::SingleTubeCalib > &stcm, std::map< int, std::string > &fit_by_map, const std::string &fit_by) |
| fit time spectrum | |
| void | doAdcFit (ADCMTHistos *T0h, const std::set< MuonFixedId > &tube_ids, std::map< int, MdtTubeFitContainer::SingleTubeFit > &fim, std::map< int, MdtTubeFitContainer::SingleTubeCalib > &stcm) |
| fit adc spectrum | |
| T0CalibrationMT & | operator= (const T0CalibrationMT &right)=delete |
| T0CalibrationMT (const T0CalibrationMT &)=delete | |
Private Attributes | |
| std::shared_ptr< const T0MTSettings > | m_settings |
| pointer to the settings | |
| bool | m_converged |
| convergence status | |
| std::string | m_name |
| calibration region name | |
| int | m_currentItnum |
| current iteration (always 1?) | |
| std::unique_ptr< TFile > | m_file |
| pointer to the histogram file | |
| TDirectory * | m_regiondir |
| pointer to the ROOT directory | |
| std::vector< std::map< HistogramId, std::unique_ptr< T0MTHistos > > > | m_histos |
| vector of pointers tube histograms | |
| std::vector< std::map< HistogramId, std::unique_ptr< ADCMTHistos > > > | m_adc_histos |
| vector of pointers tube histograms | |
| std::vector< std::map< HistogramId, std::set< MuonFixedId > > > | m_tube_ids |
| std::vector< std::map< HistogramId, std::set< MuonFixedId > > > | m_adc_tube_ids |
| std::map< int, int > | m_nhits_per_tube |
| number of hits per tube | |
| std::map< NtupleStationId, MdtTubeFitContainer * > | m_result |
| tube constants | |
| std::map< NtupleStationId, MdtRelativeTubeT0 > | m_rel_tube_t0s |
| const std::vector< int > & | m_sort_by |
| const std::vector< int > & | m_adc_sort_by |
Implementation of a T0 calibration using the MT approach.
Copied from T0CalibrationClassic
Definition at line 40 of file T0CalibrationMT.h.
|
inherited |
Definition at line 30 of file IMdtCalibration.h.
|
inherited |
Definition at line 29 of file IMdtCalibration.h.
|
inherited |
Definition at line 28 of file IMdtCalibration.h.
|
inherited |
Definition at line 27 of file IMdtCalibration.h.
| MuonCalib::T0CalibrationMT::T0CalibrationMT | ( | const std::string & | name, |
| std::shared_ptr< const T0MTSettings > | settings, | ||
| const std::vector< int > & | sort_by, | ||
| const std::vector< int > & | adc_sort_by ) |
constructor
| [in] | name | of the region/chamber to be calibrated |
| [in] | pointer | to settings vector |
| [in] | sorting | criteria (TUBE, CHAMBER, MULTILAYER...) default is by TUBE |
Definition at line 32 of file T0CalibrationMT.cxx.
| MuonCalib::T0CalibrationMT::~T0CalibrationMT | ( | ) |
destructor
Definition at line 55 of file T0CalibrationMT.cxx.
|
privatedelete |
| bool MuonCalib::T0CalibrationMT::analyse | ( | ) |
extract parameters from spectra
Definition at line 101 of file T0CalibrationMT.cxx.
|
private |
Definition at line 167 of file T0CalibrationMT.cxx.
|
private |
Definition at line 144 of file T0CalibrationMT.cxx.
|
overridevirtual |
new interface function
Implements MuonCalib::IMdtCalibration.
Definition at line 175 of file T0CalibrationMT.cxx.
| bool MuonCalib::T0CalibrationMT::converged | ( | ) | const |
|
private |
fit adc spectrum
Definition at line 237 of file T0CalibrationMT.cxx.
|
private |
fit time spectrum
Definition at line 181 of file T0CalibrationMT.cxx.
|
private |
retrieve pointer for tube idtube histograms
Definition at line 260 of file T0CalibrationMT.cxx.
|
private |
retrieve pointer for tube idtube histograms
Definition at line 273 of file T0CalibrationMT.cxx.
|
overridevirtual |
Implements MuonCalib::IMdtCalibration.
Definition at line 258 of file T0CalibrationMT.cxx.
| bool MuonCalib::T0CalibrationMT::handleSegment | ( | MuonCalibSegment & | seg | ) |
fill tube spectra
Definition at line 60 of file T0CalibrationMT.cxx.
|
inlinevirtualinherited |
|
privatedelete |
|
overridevirtual |
unused
Implements MuonCalib::IMdtCalibration.
Definition at line 286 of file T0CalibrationMT.cxx.
|
private |
vector of pointers tube histograms
Definition at line 93 of file T0CalibrationMT.h.
|
private |
Definition at line 100 of file T0CalibrationMT.h.
|
private |
Definition at line 95 of file T0CalibrationMT.h.
|
private |
convergence status
Definition at line 86 of file T0CalibrationMT.h.
|
private |
current iteration (always 1?)
Definition at line 88 of file T0CalibrationMT.h.
|
private |
pointer to the histogram file
Definition at line 89 of file T0CalibrationMT.h.
|
private |
vector of pointers tube histograms
Definition at line 92 of file T0CalibrationMT.h.
|
private |
calibration region name
Definition at line 87 of file T0CalibrationMT.h.
|
private |
number of hits per tube
Definition at line 96 of file T0CalibrationMT.h.
|
private |
pointer to the ROOT directory
Definition at line 90 of file T0CalibrationMT.h.
|
private |
Definition at line 98 of file T0CalibrationMT.h.
|
private |
tube constants
Definition at line 97 of file T0CalibrationMT.h.
|
private |
pointer to the settings
Definition at line 85 of file T0CalibrationMT.h.
|
private |
Definition at line 99 of file T0CalibrationMT.h.
|
private |
Definition at line 94 of file T0CalibrationMT.h.