QLCConfigReader Class Reference

List of all members.


Detailed Description

reader for configuration parameters used in load curves

Author:
Marco Vignati

Sergio Di Domizio


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

QGlobalReaderfReader
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

Member Function Documentation

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().


Member Data Documentation

ptr to global reader used for I/O

Referenced by Close(), Get(), GetBoloCheckWorkFlow(), GetEleCheckWorkFlow(), GetExternalBiasValues(), GetSet(), and Open().

working mode: specifies how to interpret the content of the QMatrix used to store electronics configuration

Referenced by Get(), and Open().

std::string QLCConfigReader::fFilename [private]

name of input file

Referenced by Close(), Get(), and Open().

std::map<std::string,std::map<unsigned int,QEleChannelConfig> > QLCConfigReader::fConfigMap [private]

key: matrix name, value: a map with the same structure as fTempMap

Referenced by Close(), and Get().

std::map<unsigned int,QEleChannelConfig> QLCConfigReader::fTempMap [private]

temporary map storing the electronics configuration read from the QMatrix named fTempName
key: lg channel, value: electronics configuration

Referenced by Close(), and Get().

std::string QLCConfigReader::fTempName [private]

name of the QMatrix where the last configuration was read from

Referenced by Close(), and Get().


The documentation for this class was generated from the following files:

Generated on Tue Nov 16 10:50:07 2010 for CUORE Software by  doxygen 1.5.6