6 #include "CLHEP/Units/PhysicalConstants.h"
7 #include "CLHEP/Units/SystemOfUnits.h"
8 #include "GaudiKernel/Algorithm.h"
9 #include "GaudiKernel/MsgStream.h"
16 m_parValueNotSetByUserDouble(10.0e39),
17 m_parValueNotSetByUserInt (32767) {
26 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::initialize");
28 log << MSG::INFO <<
"Initializing" <<
endmsg;
35 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::SetDefaultValues");
55 for (; doubleMapIt !=
m_doubleMap.end(); ++doubleMapIt)
alg->declareProperty(std::string(
"Overwrite_") + doubleMapIt->first, doubleMapIt->second.overwriteVal);
56 for (; intMapIt !=
m_intMap.end() ; ++intMapIt )
alg->declareProperty(std::string(
"Overwrite_") + intMapIt->first , intMapIt->second.overwriteVal);
63 log << MSG::INFO <<
" OverwriteDigiParValues " <<
endmsg;
70 for (; doubleMapIt !=
m_doubleMap.end(); ++doubleMapIt) {
72 if (doubleMapIt->second.overwriteVal > doubleMapIt->second.low &&
73 doubleMapIt->second.overwriteVal < doubleMapIt->second.high) {
75 *(doubleMapIt->second.par) = doubleMapIt->second.overwriteVal;
77 log << MSG::INFO <<
" Overwriting: "
78 << doubleMapIt->second.parDescription <<
" to : "
79 << doubleMapIt->second.overwriteVal <<
endmsg;
86 for (; intMapIt !=
m_intMap.end(); ++intMapIt) {
88 if (intMapIt->second.overwriteVal > intMapIt->second.low &&
89 intMapIt->second.overwriteVal < intMapIt->second.high) {
91 *(intMapIt->second.par) = intMapIt->second.overwriteVal;
93 log << MSG::INFO <<
" Overwriting: "
94 << intMapIt->second.parDescription <<
" to : "
95 << intMapIt->second.overwriteVal <<
endmsg;
103 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::Print");
105 std::map <std::string, parDouble>::const_iterator doubleMapIt =
m_doubleMap.begin();
106 std::map <std::string, parInt>::const_iterator intMapIt =
m_intMap.begin();
108 log << MSG::INFO <<
"===================== Doubles ======================" <<
endmsg;
110 for (; doubleMapIt !=
m_doubleMap.end(); ++doubleMapIt)
111 log << MSG::INFO << doubleMapIt->second.parDescription <<
": " << *(doubleMapIt->second.par) <<
endmsg;
113 log << MSG::INFO <<
"===================== Integers ======================" <<
endmsg;
115 for (; intMapIt !=
m_intMap.end(); ++intMapIt)
116 log << MSG::INFO << intMapIt->second.parDescription <<
": " << *(intMapIt->second.par) <<
endmsg;
118 log << MSG::INFO <<
"=====================================================" <<
endmsg;
125 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::SetDigiParDouble");
137 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::SetDigiParInt");
149 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::GetDigiParDouble");
161 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::GetDigiParInt");
176 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::DefNewParameterDouble");
181 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::DefNewParameterDouble");
186 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::DefNewParameterDouble");
209 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::DefNewParameterInt");
214 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::DefNewParameterInt");
219 MsgStream
log(
m_msgSvc,
"LUCID_DigiSettings::DefNewParameterInt");