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;
}
Exemple #2
0
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();

}