~jan.greis/maus/1811

« back to all changes in this revision

Viewing changes to src/common_cpp/Utils/KLCalibrationMap.cc

  • Committer: Adam Dobbs
  • Date: 2016-01-13 11:31:12 UTC
  • mfrom: (659.2.18 release-candidate)
  • Revision ID: phuccj@gmail.com-20160113113112-bhbguupn50eyvd0z
Tags: MAUS-v1.4, MAUS-v1.4.0
MAUS-v1.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
}
27
27
 
28
28
KLCalibrationMap::~KLCalibrationMap() {
29
 
  _Pkey.clear();
 
29
  this->reset();
 
30
}
 
31
 
 
32
void KLCalibrationMap::reset() {
 
33
  _Pkey.resize(0);
30
34
  _gain.resize(0);
 
35
 
 
36
  gainstr.str("");
 
37
  gainstr.clear();
31
38
}
32
39
 
33
40
bool KLCalibrationMap::InitializeFromCards(Json::Value configJSON) {
 
41
  this->reset();
 
42
 
34
43
  // Fill the vector containing all KL channel keys.
35
44
  this->MakeKLChannelKeys();
36
45
  Json::Value gain_file;