本文整理汇总了C++中Measurement::ReadDataset方法的典型用法代码示例。如果您正苦于以下问题:C++ Measurement::ReadDataset方法的具体用法?C++ Measurement::ReadDataset怎么用?C++ Measurement::ReadDataset使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Measurement
的用法示例。
在下文中一共展示了Measurement::ReadDataset方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 */);
};
示例2: PileUpCalculation
void PileUpCalculation(){
Measurement *pu = new Measurement("pu","_FSQJets3_2015C_data_13TeV_LowPU");
pu->IncludeObject(empty);
pu->IncludeFunction(npv_distrib);
pu->IncludeSample(plane);
pu->ReadDataset(data);
pu->WriteToFile("./pu", 2);
};
示例3: 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 */);
};
示例4: 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 */);
};