当前位置: 首页>>代码示例>>C++>>正文


C++ Measurement::CalculateResult方法代码示例

本文整理汇总了C++中Measurement::CalculateResult方法的典型用法代码示例。如果您正苦于以下问题:C++ Measurement::CalculateResult方法的具体用法?C++ Measurement::CalculateResult怎么用?C++ Measurement::CalculateResult使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Measurement的用法示例。


在下文中一共展示了Measurement::CalculateResult方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: EfficiencyCalculation

void EfficiencyCalculation(){

	Measurement *eff = new Measurement("eff","_Min_Bias_2015C_data_13TeV_LowPU");
	//Measurement *eff = new Measurement("eff","_Min_Bias_2016H_data_13TeV_LowPU");

	eff->IncludeObject(all_incl);

	eff->IncludeFunction(pt_sublead);
	eff->IncludeFunction(pt_sublead_fwd3);
	eff->IncludeFunction(pt_sublead_fwd1d3);

	eff->IncludeSample(central_trg);
	//eff->IncludeSample(forward2_trg);
	eff->IncludeSample(forward3_trg);
	eff->IncludeSample(unbiased_central);
	//eff->IncludeSample(unbiased_forward2);
	eff->IncludeSample(unbiased_forward3);

	eff->ReadDataset(min_bias_2015);

	eff->CalculateResult(eff_pt_sublead_cntr_trg);
	eff->CalculateResult(eff_pt_sublead_fwd3_cntr_trg);
	eff->CalculateResult(eff_pt_sublead_fwd1d3_cntr_trg);
	//eff->CalculateResult(eff_pt_sublead_forward2_trg);
	eff->CalculateResult(eff_pt_sublead_forward3_trg);

	eff->WriteToFile("./eff", 2 /* 1 - only results, 2 - results and observables */);
};
开发者ID:ipozdnyakov,项目名称:small_x_dijets,代码行数:28,代码来源:main.cpp

示例2: MergingWeightsCalculation

void MergingWeightsCalculation(){

	Measurement *weight = new Measurement("weight","_FSQJets3_2015C_data_13TeV_LowPU");

	weight->IncludeObject(all_incl);
	weight->IncludeObject(all_mn);

	weight->IncludeFunction(drap);

	weight->IncludeSample(central_pt35);
	weight->IncludeSample(central_no_fwd_pt35_eta2d1);
	weight->IncludeSample(fwd_pt35_eta2d1);
	weight->IncludeSample(merged_pt35_eta2d1);

	weight->ReadDataset(data);

	weight->CalculateResult(forward_incl_pt35_eta2d1_weight);
	weight->CalculateResult(forward_mn_pt35_eta2d1_weight);

	weight->WriteToFile("./weight", 2 /* 1 - only results, 2 - results and observables */);
};
开发者ID:ipozdnyakov,项目名称:small_x_dijets,代码行数:21,代码来源:main.cpp

示例3: BasicDistributions

void BasicDistributions(){

	Measurement *basics = new Measurement("basics","_FSQJets3_2015C_data_13TeV_LowPU");

	basics->IncludeFunction(pt);
	basics->IncludeFunction(cor);
	basics->IncludeFunction(unc);
	basics->IncludeFunction(eta);
	basics->IncludeFunction(rap);
	basics->IncludeFunction(phi);

	basics->IncludeObject(incl);

	basics->IncludeSample(merged_pt35_eta2d1);

	basics->ReadDataset(data);

	basics->CalculateResult(pt_spectrum);

	basics->WriteToFile("./basics_", 1 /* 1 - only results, 2 - results and observables */);

};
开发者ID:ipozdnyakov,项目名称:small_x_dijets,代码行数:22,代码来源:main.cpp


注:本文中的Measurement::CalculateResult方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。