6 #include "GaudiKernel/Algorithm.h"
7 #include "GaudiKernel/MsgStream.h"
14 m_parValueNotSetByUserDouble(10.0e39),
15 m_parValueNotSetByUserInt (32767) {
24 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::initialize");
33 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::SetDefaultValues");
53 for (; doubleMapIt !=
m_doubleMap.end(); ++doubleMapIt)
alg->declareProperty(std::string(
"Overwrite_") + doubleMapIt->first, doubleMapIt->second.overwriteVal);
54 for (; intMapIt !=
m_intMap.end() ; ++intMapIt )
alg->declareProperty(std::string(
"Overwrite_") + intMapIt->first , intMapIt->second.overwriteVal);
68 for (; doubleMapIt !=
m_doubleMap.end(); ++doubleMapIt) {
70 if (doubleMapIt->second.overwriteVal > doubleMapIt->second.low &&
71 doubleMapIt->second.overwriteVal < doubleMapIt->second.high) {
73 *(doubleMapIt->second.par) = doubleMapIt->second.overwriteVal;
76 << doubleMapIt->second.parDescription <<
" to : "
77 << doubleMapIt->second.overwriteVal <<
endmsg;
84 for (; intMapIt !=
m_intMap.end(); ++intMapIt) {
86 if (intMapIt->second.overwriteVal > intMapIt->second.low &&
87 intMapIt->second.overwriteVal < intMapIt->second.high) {
89 *(intMapIt->second.par) = intMapIt->second.overwriteVal;
92 << intMapIt->second.parDescription <<
" to : "
93 << intMapIt->second.overwriteVal <<
endmsg;
101 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::Print");
103 std::map <std::string, parDouble>::const_iterator doubleMapIt =
m_doubleMap.begin();
104 std::map <std::string, parInt>::const_iterator intMapIt =
m_intMap.begin();
108 for (; doubleMapIt !=
m_doubleMap.end(); ++doubleMapIt)
109 log <<
MSG::INFO << doubleMapIt->second.parDescription <<
": " << *(doubleMapIt->second.par) <<
endmsg;
111 log <<
MSG::INFO <<
"===================== Integers ======================" <<
endmsg;
113 for (; intMapIt !=
m_intMap.end(); ++intMapIt)
114 log <<
MSG::INFO << intMapIt->second.parDescription <<
": " << *(intMapIt->second.par) <<
endmsg;
116 log <<
MSG::INFO <<
"=====================================================" <<
endmsg;
123 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::SetDigiParDouble");
135 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::SetDigiParInt");
147 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::GetDigiParDouble");
159 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::GetDigiParInt");
174 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::DefNewParameterDouble");
179 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::DefNewParameterDouble");
184 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::DefNewParameterDouble");
207 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::DefNewParameterInt");
212 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::DefNewParameterInt");
217 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::DefNewParameterInt");