本文整理汇总了C++中KVDetector::GetEntranceWindowSurfaceArea方法的典型用法代码示例。如果您正苦于以下问题:C++ KVDetector::GetEntranceWindowSurfaceArea方法的具体用法?C++ KVDetector::GetEntranceWindowSurfaceArea怎么用?C++ KVDetector::GetEntranceWindowSurfaceArea使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KVDetector
的用法示例。
在下文中一共展示了KVDetector::GetEntranceWindowSurfaceArea方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PrintResults
void KVElasticCountRates::PrintResults(Double_t beam_intensity)
{
// Print mean energy deposit & counting rate for given beam intensity in particles per second
TIter it(&fHistos);
TH1F* h;
fRates.clear();
std::vector<count_rate> count_rates;
while ((h = (TH1F*)it())) {
TString name = h->GetName();
if (!name.EndsWith("_dW") && !name.EndsWith("_map")) {
TH2F* map = (TH2F*)fHistos.FindObject(name + "_map");
double rate = h->Integral() * fAtomicDensity * beam_intensity * fVolume / fNtirages;
double emean = h->GetMean();
KVDetector* det = gMultiDetArray->GetDetector(name);
double fluence = rate / det->GetEntranceWindowSurfaceArea();
double dissipation = emean * rate / det->GetEntranceWindowSurfaceArea();
count_rates.push_back(
count_rate(name, rate, emean, map->GetMean(), map->GetMean(2), fluence, dissipation)
);
fRates[name.Data()] = KVElasticCountRate(rate, emean, fluence, dissipation);
}
}
std::sort(count_rates.begin(), count_rates.end(), compare_count_rates);
for (std::vector<count_rate>::iterator it = count_rates.begin(); it != count_rates.end(); ++it) {
it->print();
}
}