|
ATLAS Offline Software
|
Go to the documentation of this file.
27 declareInterface<IMuonCalibConditionsSource>(
this);
43 ATH_MSG_FATAL(
"Configuration error: T0Regions and T0 have different size!");
44 return StatusCode::FAILURE;
47 ATH_MSG_FATAL(
"Configuration error: RtRegions and RtFiles have different size!");
48 return StatusCode::FAILURE;
57 return StatusCode::SUCCESS;
67 std::vector<std::unique_ptr<RegionSelectorBase> > ®_vec) {
68 for (
const std::string ® : reg_str) {
72 return StatusCode::FAILURE;
74 reg_vec.emplace_back(std::move(
r));
76 return StatusCode::SUCCESS;
80 const std::vector<bool> &bf_applied,
unsigned int n_regions,
81 std::vector<unsigned int> &
flags) {
82 for (
unsigned int i = 0;
i < n_regions;
i++) {
93 std::ifstream rtf(
fname.c_str());
96 return StatusCode::FAILURE;
98 std::map<int, SamplePoint>
pts;
100 std::getline(rtf,
line);
103 std::getline(rtf,
line);
104 std::istringstream ln_str(
line);
109 if (rtf.eof())
break;
116 return StatusCode::SUCCESS;
120 const std::vector<NtupleStationId> ®ions(
m_reg_sel_svc->GetStationsInRegions());
121 for (
const auto & region : regions) {
136 const std::vector<NtupleStationId> ®ions(
m_reg_sel_svc->GetStationsInRegions());
137 for (
const auto & region : regions) {
std::vector< unsigned int > m_creation_flags_t0
std::vector< bool > m_time_slewing_applied_rt
virtual ~MuonCalibDefaultCalibrationSource()
StatusCode initialize()
initialize
static std::unique_ptr< RegionSelectorBase > GetRegion(const std::string &input)
create a region from a string
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
CoolInserter * m_inserter
StatusCode load_rt_files()
std::vector< std::unique_ptr< RegionSelectorBase > > m_t0_regions
bool StoreT0Chamber(const NtupleStationId &id, const std::string &file, unsigned int creation_flags=0)
std::vector< unsigned int > m_creation_flags_rt
std::vector< std::map< int, SamplePoint > > m_rt_points
bool AppendT0(float t0, int validflag, float adc0)
std::vector< bool > m_bfield_applied_rt
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)
ICscStripFitter::Result Result
::StatusCode StatusCode
StatusCode definition for legacy code.
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
std::vector< bool > m_time_slewing_applied_t0
ServiceHandle< RegionSelectionSvc > m_reg_sel_svc
@ B_FIELD_CORRECTIONS_APPLIED
std::vector< bool > m_bfield_applied_t0
std::vector< std::string > m_rt_files
@ TIME_SLEWING_CORRECTION_APPLIED
bool insert_calibration(bool store_t0, bool store_rt)
insert calibration
std::vector< std::string > m_rt_region_str
StatusCode initialize_regions(const std::vector< std::string > ®_str, std::vector< std::unique_ptr< RegionSelectorBase > > ®)
std::vector< std::string > m_t0_region_str
std::vector< float > m_t0
MuonCalibDefaultCalibrationSource(const std::string &t, const std::string &n, const IInterface *p)
constructor
bool StoreRtChamber(const NtupleStationId &id, const std::map< int, SamplePoint > &points, const std::string &file, unsigned int creation_flags=0)
std::vector< std::unique_ptr< RegionSelectorBase > > m_rt_regions
bool StartT0Chamber(const NtupleStationId &sid)