ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCalibDefaultCalibrationSource.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MuonCalib_MuonCalibDefaultCalibrationSource
6#define MuonCalib_MuonCalibDefaultCalibrationSource
7
8#include <map>
9#include <string>
10#include <vector>
11
13#include "GaudiKernel/ToolHandle.h"
16
17namespace MuonCalib {
18
19 // MuonCalibStandAloneBase
21
22 class SamplePoint;
24 public:
25 //===============================destructor -- constructor======================
27 MuonCalibDefaultCalibrationSource(const std::string &t, const std::string &n, const IInterface *p);
29 //===============================AlgTool interface =============================
31 StatusCode initialize();
32
33 private:
34 //===============================job options====================================
35 // regions and t0 values
36 std::vector<std::string> m_t0_region_str;
37 std::vector<float> m_t0;
38 std::vector<bool> m_time_slewing_applied_t0;
39 std::vector<bool> m_bfield_applied_t0;
40 // regions and rt
41 std::vector<std::string> m_rt_region_str;
42 std::vector<std::string> m_rt_files;
43 std::vector<bool> m_time_slewing_applied_rt;
44 std::vector<bool> m_bfield_applied_rt;
45 //==============================private data members============================
46 // creation flags
47 std::vector<unsigned int> m_creation_flags_t0;
48 std::vector<unsigned int> m_creation_flags_rt;
49 // region classes
50 std::vector<std::unique_ptr<RegionSelectorBase> > m_t0_regions, m_rt_regions;
51 // rtt point vector
52 std::vector<std::map<int, SamplePoint> > m_rt_points;
53 // region selection service - copy part of the calibration
54 ServiceHandle<RegionSelectionSvc> m_reg_sel_svc{this, "RegionSelectionSvc", "RegionSelectionSvc"};
55 //===============================private functions==============================
56 // initialize regions
57 StatusCode initialize_regions(const std::vector<std::string> &reg_str, std::vector<std::unique_ptr<RegionSelectorBase> > &reg);
58 void initialize_creation_flags(const std::vector<bool> &ts_applied, const std::vector<bool> &bf_applied, unsigned int n_regions,
59 std::vector<unsigned int> &flags);
60 StatusCode load_rt_files();
61 bool store_t0_fun();
62 bool store_rt_fun();
63
64 protected:
65 //===============================IMuonCalibConditionsSource interface ==========
67 bool insert_calibration(bool store_t0, bool store_rt);
68 };
69
70} // namespace MuonCalib
71
72#endif
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
std::vector< std::map< int, SamplePoint > > m_rt_points
MuonCalibDefaultCalibrationSource(const std::string &t, const std::string &n, const IInterface *p)
constructor
std::vector< std::unique_ptr< RegionSelectorBase > > m_t0_regions
bool insert_calibration(bool store_t0, bool store_rt)
insert calibration
std::vector< std::unique_ptr< RegionSelectorBase > > m_rt_regions
StatusCode initialize_regions(const std::vector< std::string > &reg_str, std::vector< std::unique_ptr< RegionSelectorBase > > &reg)
void initialize_creation_flags(const std::vector< bool > &ts_applied, const std::vector< bool > &bf_applied, unsigned int n_regions, std::vector< unsigned int > &flags)
This class provides a sample point for the BaseFunctionFitter.
Definition SamplePoint.h:15
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.