本文整理汇总了C++中KVDetector::GetListOfCalibrators方法的典型用法代码示例。如果您正苦于以下问题:C++ KVDetector::GetListOfCalibrators方法的具体用法?C++ KVDetector::GetListOfCalibrators怎么用?C++ KVDetector::GetListOfCalibrators使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KVDetector
的用法示例。
在下文中一共展示了KVDetector::GetListOfCalibrators方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SetCalibrationParameters
void KVINDRAUpDater::SetCalibrationParameters(UInt_t run)
{
//Set calibration parameters for this run.
//This will:
// reset all the calibrators of all the detectors ready to receive the calibrators for the run (handled by child classes),
// set calibration parameters for the run
// set pedestals for the run
// set PHD parameters of silicon detectors for run
cout << "Setting calibration parameters of INDRA array for run " << run << ":" <<
endl;
KVDBRun* kvrun = gExpDB->GetDBRun(run);
if (!kvrun) {
Error("SetParameters(UInt_t)", "Run %u not found in database!", run);
return;
}
//Reset all calibrators of all detectors first
TIter next(fArray->GetDetectors());
KVDetector* kvd;
KVCalibrator* kvc;
while ((kvd = (KVDetector*) next())) {
if (kvd->GetListOfCalibrators()) {
TIter next_cal(kvd->GetListOfCalibrators());
while ((kvc = (KVCalibrator*) next_cal())) {
kvc->Reset();
}
}
}
SetCalibParameters(kvrun);
SetPedestals(kvrun);
SetPHDs(kvrun);
}
示例2: next
void KVINDRAUpDater_e475s::SetCalibrationParameters(UInt_t run){
//Set calibration parameters for this run.
//This will:
// remove all the calibrators of all the detectors ready to receive the calibrators for the run (handled by child classes),
// set calibration parameters for the run
// set pedestals for the run
cout << "Setting calibration parameters of INDRA array for run " << run << ":" <<
endl;
KVDBRun *kvrun = gIndraDB->GetRun(run);
if (!kvrun)
{
Error("SetParameters(UInt_t)", "Run %u not found in database!", run);
return;
}
//Reset all calibrators of all detectors first
TIter next(gIndra->GetListOfDetectors());
KVDetector *kvd;
while ((kvd = (KVDetector *) next()))
{
if (kvd->InheritsFrom("KVSiLi") || kvd->InheritsFrom("KVSi75")){
if (kvd->GetListOfCalibrators())
kvd->RemoveCalibrators();
kvd->SetCalibrators();
}
else {
if (kvd->GetListOfCalibrators())
{
kvd->RemoveCalibrators();
TIter lacq(kvd->GetACQParamList());
KVACQParam* acq = 0;
while ( (acq = (KVACQParam* )lacq()) ){
acq->SetPedestal(0);
}
}
}
}
SetCalibParameters(kvrun);
SetPedestals(kvrun);
}