|
ATLAS Offline Software
|
Go to the documentation of this file.
15 #include "CoralBase/Attribute.h"
16 #include "CoralBase/AttributeList.h"
23 #include "GaudiKernel/IMessageSvc.h"
24 #include "GaudiKernel/MsgStream.h"
38 declareInterface<IMuonCalibConditionsSource>(
this);
69 return StatusCode::FAILURE;
75 ATH_MSG_FATAL(
"Cannot open connection to calibration database!");
76 return StatusCode::FAILURE;
82 return StatusCode::FAILURE;
90 return StatusCode::FAILURE;
94 return StatusCode::FAILURE;
99 return StatusCode::SUCCESS;
104 if (!
m_region->Result(
id)) {
return true; }
107 std::string data_string;
108 std::ostringstream
f;
114 for (
const auto &
row :
rows) {
116 row.second[
"ADC_1"].data<
float>())) {
127 if (!
m_region->Result(
id)) {
return true; }
130 std::ostringstream
f;
134 std::map<int, SamplePoint> points_cp(
points);
135 for (
auto &
it : points_cp) {
136 int slice_number =
static_cast<int>(std::floor(
it.second.x2() / slice_width));
137 if (slice_number < 0) slice_number = 0;
std::string m_calib_connection_string
std::unique_ptr< RegionSelectorBase > m_region
void SetMultilayer(const int &ml)
MuonCalibDbCalibrationSource(const std::string &t, const std::string &n, const IInterface *p)
constructor
bool StoreT0Chamber(const int &chamber, const std::map< TubeId, coral::AttributeList > &rows)
call back for t0
std::string regionId() const
return the region id string
static std::unique_ptr< RegionSelectorBase > GetRegion(const std::string &input)
create a region from a string
StatusCode initialize()
initialize
std::vector< std::string > m_mdt_tube_cols
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
CoolInserter * m_inserter
bool StoreRtChamber(const int &chamber, const std::map< int, SamplePoint > &points)
bool m_time_slewing_applied
bool StoreT0Chamber(const NtupleStationId &id, const std::string &file, unsigned int creation_flags=0)
bool ReadForConditions(const std::string &, int head_id, IConditionsStorage &storage)
bool AppendT0(float t0, int validflag, float adc0)
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< float > m_drift_time_offsets
std::string m_calib_working_schema
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
bool m_b_field_correction_applied
@ B_FIELD_CORRECTIONS_APPLIED
bool ReadForConditions(const std::string &site_name, int head_id, IConditionsStorage &storage)
virtual ~MuonCalibDbCalibrationSource()
@ TIME_SLEWING_CORRECTION_APPLIED
std::unique_ptr< CalibDbConnection > m_data_connection
unsigned int m_creation_flags
std::unique_ptr< CalibDbConnection > m_connection
#define ATH_MSG_WARNING(x)
bool insert_calibration(bool store_t0, bool store_rt)
insert calibration
bool StoreRtChamber(const NtupleStationId &id, const std::map< int, SamplePoint > &points, const std::string &file, unsigned int creation_flags=0)
bool StartT0Chamber(const NtupleStationId &sid)
std::unique_ptr< CalibHeadOperations > m_head_ops