Public Member Functions | |
QLCConfigReader () | |
ctor | |
QError | Open (const std::string &filename, const QLCConfigWriter::Mode mode) |
open filename assuming its content is of type mode | |
void | Close () |
close file | |
virtual | ~QLCConfigReader () |
dtor | |
QError | Get (const unsigned int lg, const std::string &name, QEleChannelConfig &conf) |
get configuration for channel lg from QMatrix named name | |
QError | Get (const std::string &name, std::map< unsigned int, QEleChannelConfig > &configMap) |
get confiuguration for all channels from QMatrix named name | |
QError | GetActiveChannels (std::set< int > &channels) const |
get list of active channels | |
QError | GetChannelsWithHeater (std::set< int > &channels) const |
get list of channels with working heater | |
QError | GetWrongPolarityChannels (std::set< int > &channels) const |
get list of channels with wrong polarity connections | |
QError | GetExternalBiasValues (std::vector< double > &values) const |
get list of external bias values in V | |
QError | GetEleCheckWorkFlow (std::list< std::pair< int, int > > &pairs) |
QError | GetBoloCheckWorkFlow (std::list< std::pair< Double_t, Bool_t > > &pairs) |
Private Member Functions | |
QError | GetSet (std::set< int > &values, const std::string &name) const |
Private Attributes | |
QGlobalReader * | fReader |
QLCConfigWriter::Mode | fMode |
std::string | fFilename |
std::map< std::string, std::map< unsigned int, QEleChannelConfig > > | fConfigMap |
std::map< unsigned int, QEleChannelConfig > | fTempMap |
std::string | fTempName |
QError QLCConfigReader::GetEleCheckWorkFlow | ( | std::list< std::pair< int, int > > & | pairs | ) |
Get list of value pairs used to determine the workflow in the EleCheck procedure. the pairs are formatted as a 2xN QMatrix, in which each row represent a pair of (test_signal_pos, test_signal_neg)
References fReader, and QGlobalReader::GetQObject().
Referenced by MLCEleCheckController::ReadWorkFlow().
QError QLCConfigReader::GetBoloCheckWorkFlow | ( | std::list< std::pair< Double_t, Bool_t > > & | pairs | ) |
Get list of value pairs used to determine the workflow in the BoloCheck procedure. the pairs are formatted as a 2xN QMatrix, in which each row represent a pair of (bias voltage, load resistance)
References fReader, and QGlobalReader::GetQObject().
Referenced by MLCBoloCheckController::ReadWorkFlow().
QError QLCConfigReader::GetSet | ( | std::set< int > & | values, | |
const std::string & | name | |||
) | const [private] |
fill a std::set<int> from a QVector named name
References fReader, and QGlobalReader::GetQObject().
Referenced by GetActiveChannels(), GetChannelsWithHeater(), and GetWrongPolarityChannels().
QGlobalReader* QLCConfigReader::fReader [private] |
ptr to global reader used for I/O
Referenced by Close(), Get(), GetBoloCheckWorkFlow(), GetEleCheckWorkFlow(), GetExternalBiasValues(), GetSet(), and Open().
QLCConfigWriter::Mode QLCConfigReader::fMode [private] |
std::string QLCConfigReader::fFilename [private] |
std::map<std::string,std::map<unsigned int,QEleChannelConfig> > QLCConfigReader::fConfigMap [private] |
std::map<unsigned int,QEleChannelConfig> QLCConfigReader::fTempMap [private] |
std::string QLCConfigReader::fTempName [private] |