ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCalibDbCalibrationSource.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#ifndef MuonCalib_MuonCalibDbCalibrationSource
6#define MuonCalib_MuonCalibDbCalibrationSource
7
8// this
11// athena
13#include "GaudiKernel/ToolHandle.h"
14
15namespace MuonCalib {
16
20
22 public:
23 //===============================destructor -- constructor======================
25 MuonCalibDbCalibrationSource(const std::string& t, const std::string& n, const IInterface* p);
26
28 //===============================AlgTool interface =============================
30 StatusCode initialize();
31
32 //===============================IConditionsStorage interface===================
34 bool StoreT0Chamber(const int& chamber, const std::map<TubeId, coral::AttributeList>& rows);
35 // call back for rt
36 bool StoreRtChamber(const int& chamber, const std::map<int, SamplePoint>& points);
37
38 private:
39 inline const std::vector<std::string>& RowsFromMdtTubeTable() const { return m_mdt_tube_cols; }
40 inline const std::vector<std::string>& RowsFromMdtTubeVTable() const { return m_mdt_tube_v_cols; }
41 //===============================IMuonCalibConditionsSource interface ==========
42 inline void SetIOV(int& start, int& end) const {
43 if (start < 0) { start = m_iov_start; }
44 if (end < 0) { end = m_iov_end; }
45 }
46 //===============================job options====================================
47 // head id and site name - job options
48 std::string m_site_name;
49 int m_head_id = 0;
50 // overwirte iov - job-option
51 int m_iov_start = 0, m_iov_end = 0;
52 // connection string for calibration db - job option
54 // username and password for calib-db connection
55 std::string m_username, m_password;
56 // calibratino region, for which the calibration is copied
57 std::string m_region_str;
58 // drift time offsets per radius - job options
59 std::vector<float> m_drift_time_offsets;
60 // store t0 or rt
62 // global t0 offset - added to the t0 values
64 // creation flags - job options
66 unsigned int m_creation_flags;
67 //===============================private data==================================
68 // selected columns
69 std::vector<std::string> m_mdt_tube_cols, m_mdt_tube_v_cols;
70 std::unique_ptr<CalibDbConnection> m_connection;
71 std::unique_ptr<CalibDbConnection> m_data_connection;
72 std::unique_ptr<CalibHeadOperations> m_head_ops;
73 std::unique_ptr<RegionSelectorBase> m_region;
74
75 protected:
76 //===============================IMuonCalibConditionsSource interface ==========
78 bool insert_calibration(bool store_t0, bool store_rt);
79 };
80
81} // namespace MuonCalib
82
83#endif
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
std::unique_ptr< CalibHeadOperations > m_head_ops
bool StoreRtChamber(const int &chamber, const std::map< int, SamplePoint > &points)
bool StoreT0Chamber(const int &chamber, const std::map< TubeId, coral::AttributeList > &rows)
call back for t0
std::unique_ptr< CalibDbConnection > m_connection
const std::vector< std::string > & RowsFromMdtTubeTable() const
std::unique_ptr< RegionSelectorBase > m_region
std::unique_ptr< CalibDbConnection > m_data_connection
bool insert_calibration(bool store_t0, bool store_rt)
insert calibration
const std::vector< std::string > & RowsFromMdtTubeVTable() const
MuonCalibDbCalibrationSource(const std::string &t, const std::string &n, const IInterface *p)
constructor
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.