#include <MuonCalibDefaultCalibrationSource.h>
|
| static const InterfaceID & | interfaceID () |
| | interface method
|
◆ StoreGateSvc_t
◆ MuonCalibDefaultCalibrationSource()
| MuonCalib::MuonCalibDefaultCalibrationSource::MuonCalibDefaultCalibrationSource |
( |
const std::string & | t, |
|
|
const std::string & | n, |
|
|
const IInterface * | p ) |
constructor
Definition at line 25 of file MuonCalibDefaultCalibrationSource.cxx.
25 :
27 declareInterface<IMuonCalibConditionsSource>(this);
36 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
std::vector< bool > m_time_slewing_applied_rt
std::vector< std::string > m_rt_region_str
std::vector< bool > m_bfield_applied_t0
std::vector< std::string > m_t0_region_str
std::vector< bool > m_bfield_applied_rt
std::vector< std::string > m_rt_files
std::vector< bool > m_time_slewing_applied_t0
std::vector< float > m_t0
◆ ~MuonCalibDefaultCalibrationSource()
| MuonCalib::MuonCalibDefaultCalibrationSource::~MuonCalibDefaultCalibrationSource |
( |
| ) |
|
|
virtualdefault |
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ initialize()
| StatusCode MuonCalib::MuonCalibDefaultCalibrationSource::initialize |
( |
| ) |
|
initialize
Definition at line 38 of file MuonCalibDefaultCalibrationSource.cxx.
38 {
39
41
43 ATH_MSG_FATAL(
"Configuration error: T0Regions and T0 have different size!");
44 return StatusCode::FAILURE;
45 }
47 ATH_MSG_FATAL(
"Configuration error: RtRegions and RtFiles have different size!");
48 return StatusCode::FAILURE;
49 }
50
55
57 return StatusCode::SUCCESS;
58 }
#define ATH_CHECK
Evaluate an expression and check for errors.
ServiceHandle< RegionSelectionSvc > m_reg_sel_svc
std::vector< std::unique_ptr< RegionSelectorBase > > m_t0_regions
std::vector< unsigned int > m_creation_flags_t0
std::vector< std::unique_ptr< RegionSelectorBase > > m_rt_regions
StatusCode initialize_regions(const std::vector< std::string > ®_str, std::vector< std::unique_ptr< RegionSelectorBase > > ®)
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)
StatusCode load_rt_files()
std::vector< unsigned int > m_creation_flags_rt
◆ initialize_creation_flags()
| void MuonCalib::MuonCalibDefaultCalibrationSource::initialize_creation_flags |
( |
const std::vector< bool > & | ts_applied, |
|
|
const std::vector< bool > & | bf_applied, |
|
|
unsigned int | n_regions, |
|
|
std::vector< unsigned int > & | flags ) |
|
private |
◆ initialize_regions()
| StatusCode MuonCalib::MuonCalibDefaultCalibrationSource::initialize_regions |
( |
const std::vector< std::string > & | reg_str, |
|
|
std::vector< std::unique_ptr< RegionSelectorBase > > & | reg ) |
|
private |
Definition at line 66 of file MuonCalibDefaultCalibrationSource.cxx.
67 {
68 for (const std::string ® : reg_str) {
72 return StatusCode::FAILURE;
73 }
74 reg_vec.emplace_back(std::move(
r));
75 }
76 return StatusCode::SUCCESS;
77 }
static std::unique_ptr< RegionSelectorBase > GetRegion(const std::string &input)
create a region from a string
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ insert_calibration()
| bool MuonCalib::MuonCalibDefaultCalibrationSource::insert_calibration |
( |
bool | store_t0, |
|
|
bool | store_rt ) |
|
protectedvirtual |
◆ InstertCalibration()
| bool MuonCalib::IMuonCalibConditionsSource::InstertCalibration |
( |
CoolInserter * | inserter, |
|
|
bool | store_t0, |
|
|
bool | store_rt ) |
|
inlineinherited |
insert calibration
Definition at line 24 of file IMuonCalibConditionsSource.h.
24 {
27 }
CoolInserter * m_inserter
virtual bool insert_calibration(bool store_t0, bool store_rt)=0
◆ interfaceID()
| const InterfaceID & MuonCalib::IMuonCalibConditionsSource::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
interface method
Definition at line 22 of file IMuonCalibConditionsSource.h.
static const InterfaceID IID_IMuonCalibConditionsSource("MuonCalib::IMuonCalibConditionsSource", 1, 0)
◆ load_rt_files()
| StatusCode MuonCalib::MuonCalibDefaultCalibrationSource::load_rt_files |
( |
| ) |
|
|
inlineprivate |
Definition at line 90 of file MuonCalibDefaultCalibrationSource.cxx.
90 {
93 std::ifstream rtf(
fname.c_str());
94 if (!rtf.good()) {
96 return StatusCode::FAILURE;
97 }
98 std::map<int, SamplePoint>
pts;
99
100 std::getline(rtf, line);
102 while (!rtf.eof()) {
103 std::getline(rtf, line);
104 std::istringstream ln_str(line);
109 if (rtf.eof()) break;
110 SamplePoint
pt(t,
r, s);
113 }
115 }
116 return StatusCode::SUCCESS;
117 }
std::vector< std::map< int, SamplePoint > > m_rt_points
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
◆ renounceArray()
◆ SetIOV()
| virtual void MuonCalib::IMuonCalibConditionsSource::SetIOV |
( |
int & | , |
|
|
int & | ) const |
|
inlinevirtualinherited |
◆ store_rt_fun()
| bool MuonCalib::MuonCalibDefaultCalibrationSource::store_rt_fun |
( |
| ) |
|
|
inlineprivate |
Definition at line 135 of file MuonCalibDefaultCalibrationSource.cxx.
135 {
137 for (
const auto & region :
regions) {
138 MuonFixedId fid(region.FixedId());
142 break;
143 }
144 }
145 }
146 return true;
147 }
ICscStripFitter::Result Result
static const std::vector< std::string > regions
◆ store_t0_fun()
| bool MuonCalib::MuonCalibDefaultCalibrationSource::store_t0_fun |
( |
| ) |
|
|
inlineprivate |
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_bfield_applied_rt
| std::vector<bool> MuonCalib::MuonCalibDefaultCalibrationSource::m_bfield_applied_rt |
|
private |
◆ m_bfield_applied_t0
| std::vector<bool> MuonCalib::MuonCalibDefaultCalibrationSource::m_bfield_applied_t0 |
|
private |
◆ m_creation_flags_rt
| std::vector<unsigned int> MuonCalib::MuonCalibDefaultCalibrationSource::m_creation_flags_rt |
|
private |
◆ m_creation_flags_t0
| std::vector<unsigned int> MuonCalib::MuonCalibDefaultCalibrationSource::m_creation_flags_t0 |
|
private |
◆ m_detStore
◆ m_evtStore
◆ m_inserter
| CoolInserter* MuonCalib::IMuonCalibConditionsSource::m_inserter = nullptr |
|
protectedinherited |
◆ m_reg_sel_svc
◆ m_rt_files
| std::vector<std::string> MuonCalib::MuonCalibDefaultCalibrationSource::m_rt_files |
|
private |
◆ m_rt_points
| std::vector<std::map<int, SamplePoint> > MuonCalib::MuonCalibDefaultCalibrationSource::m_rt_points |
|
private |
◆ m_rt_region_str
| std::vector<std::string> MuonCalib::MuonCalibDefaultCalibrationSource::m_rt_region_str |
|
private |
◆ m_rt_regions
| std::vector<std::unique_ptr<RegionSelectorBase> > MuonCalib::MuonCalibDefaultCalibrationSource::m_rt_regions |
|
private |
◆ m_t0
| std::vector<float> MuonCalib::MuonCalibDefaultCalibrationSource::m_t0 |
|
private |
◆ m_t0_region_str
| std::vector<std::string> MuonCalib::MuonCalibDefaultCalibrationSource::m_t0_region_str |
|
private |
◆ m_t0_regions
| std::vector<std::unique_ptr<RegionSelectorBase> > MuonCalib::MuonCalibDefaultCalibrationSource::m_t0_regions |
|
private |
◆ m_time_slewing_applied_rt
| std::vector<bool> MuonCalib::MuonCalibDefaultCalibrationSource::m_time_slewing_applied_rt |
|
private |
◆ m_time_slewing_applied_t0
| std::vector<bool> MuonCalib::MuonCalibDefaultCalibrationSource::m_time_slewing_applied_t0 |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: