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


C++ ConfigFile::centerOfMassEnergy方法代码示例

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


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

示例1: setConfiguration

void setConfiguration(ConfigFile config) {
	cout << "Using set-up for nTuple version " << config.nTupleVersion() << endl;
	cout << "Using set-up for center of mass energy = " << config.centerOfMassEnergy() << endl;
	cout << "Loading configuration..." << endl;
	cout << "Using config-file '" << config.configPath() << endl;
	cout << "Using Dataset info file:  '" << config.datasetInfoFile() << endl;
	cout << "Using pileup-file '" << config.PUFile() << endl;
	cout << "Using L7 jet energy corrections: " << config.bJetResoFile() << ", ";
	cout << config.lightJetResoFile() << endl;
	if (config.jesSystematic()!=0)
		cout << "Varying all the jets by " << config.jesSystematic() << " sigma(s) (JEC uncertainty)\n";
	long maxEvents(config.maxEvents());
	cout << "Maximal number of events to be processed: ";
	if (maxEvents > 0)
		cout << maxEvents << ".\n";
	else
		cout << "all available" << ".\n";
	cout << "Scaling to luminosity " << config.lumi() << "pb-1" << endl;
	if (config.useHitFit())
		cout << "Using HitFit.\n";

	config.loadIntoMemory();


	//@Deprecated: move to selections
	//jets
	Globals::jetAlgorithm = JetAlgorithm::PF2PAT;
	//electrons
	Globals::electronAlgorithm = ElectronAlgorithm::ParticleFlow;
	//muons
	Globals::muonAlgorithm = MuonAlgorithm::ParticleFlow;
	//mets
	Globals::metAlgorithm = METAlgorithm::patMETsPFlow;
}
开发者ID:nikberry,项目名称:AnalysisSoftware,代码行数:34,代码来源:runAllTests.cpp

示例2: setConfiguration

void setConfiguration(ConfigFile config) {
	// cout << "Using set-up for nTuple version " << config.nTupleVersion() << endl;
	cout << "Using set-up for center of mass energy = " << config.centerOfMassEnergy() << endl;
	cout << "Loading configuration..." << endl;
	cout << "Using config-file '" << config.configPath() << endl;
	cout << "Using Dataset info file:  '" << config.datasetInfoFile() << endl;
	cout << "Using pileup-file '" << config.PUFile() << endl;
	if (config.jesSystematic()!=0)
		cout << "Varying all the jets by " << config.jesSystematic() << " sigma(s) (JEC uncertainty)\n";
	long maxEvents(config.maxEvents());
	cout << "Maximum number of events to be processed: ";
	if (maxEvents > 0)
		cout << maxEvents << ".\n";
	else
		cout << "all available" << ".\n";
	cout << "Scaling to luminosity " << config.lumi() << "pb-1" << endl;
	if (config.useHitFit())
		cout << "Using HitFit.\n";

	cout << "Loading in to memory" << endl;
	config.loadIntoMemory();

}
开发者ID:,项目名称:,代码行数:23,代码来源:


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