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


C++ EventPtr::HLTPrescale方法代码示例

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


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

示例1: prescale

unsigned int QCDPFRelIsoEPlusJetsSelection::prescale(const EventPtr event) const {
	unsigned int runNumber(event->runnumber());
	unsigned int prescale(1);

	if (useNonIsoTrigger_) {
		if (event->isRealData()) {
			if (runNumber >= 160404 && runNumber <= 163869)
				prescale = event->HLTPrescale(HLTriggers::HLT_Ele25_CaloIdVT_TrkIdT_CentralTriJet30);
			else if (runNumber > 163869 && runNumber <= 178380)
				prescale = event->HLTPrescale(HLTriggers::HLT_Ele25_CaloIdVT_TrkIdT_TriCentralJet30);
			else if (runNumber > 178380)
				prescale = event->HLTPrescale(HLTriggers::HLT_Ele25_CaloIdVT_TrkIdT_TriCentralPFJet30);
		} else
			prescale = event->HLTPrescale(HLTriggers::HLT_Ele25_CaloIdVT_TrkIdT_TriCentralJet30);

	}
	return prescale;
}
开发者ID:jjacob,项目名称:AnalysisSoftware,代码行数:18,代码来源:QCDPFRelIsoEPlusJetsSelection.cpp

示例2: analyse

void HLTriggerQCDAnalyser::analyse(const EventPtr event) {
	unsigned long run(event->runnumber());
	//only do this analysis for runs above 193834 as previous runs don't have all triggers
	//after run 194225 the trigger has been changed to HLT_Ele25_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_TriCentralPFNoPUJet30_30_20
	if (!(run >= 193834 && run <= 194225 && event->isRealData()))
		return;
//	if (!(run >= 194270 && event->isRealData()))
//		return;

	if (event->Electrons().size() == 0)
		return;

	const ElectronPointer mostEnergeticElectron(event->Electrons().front());

	bool passCaloIdVT_CaloIsoT_TrkIdT_TrkIsoT = event->HLT(
			HLTriggers::HLT_Ele25_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_TriCentralPFNoPUJet30)
			|| event->HLT(HLTriggers::HLT_Ele25_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_TriCentralPFNoPUJet30_30_20);

	bool passCaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT = event->HLT(
			HLTriggers::HLT_Ele25_CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT_TriCentralPFNoPUJet30);

	bool passCaloIdVL_CaloIsoT_TrkIdVL_TrkIsoT = event->HLT(
			HLTriggers::HLT_Ele25_CaloIdVL_CaloIsoT_TrkIdVL_TrkIsoT_TriCentralPFNoPUJet30);

	bool passCaloIdVT_TrkIdT = event->HLT(HLTriggers::HLT_Ele25_CaloIdVT_TrkIdT_TriCentralPFNoPUJet30)
			|| event->HLT(HLTriggers::HLT_Ele25_CaloIdVT_TrkIdT_TriCentralPFNoPUJet30_30_20);

	if (passCaloIdVT_CaloIsoT_TrkIdT_TrkIsoT
			&& (!studyExclusiveEvents_
					|| (!passCaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT && !passCaloIdVL_CaloIsoT_TrkIdVL_TrkIsoT
							&& !passCaloIdVT_TrkIdT))) {
		int prescale = event->HLTPrescale(HLTriggers::HLT_Ele25_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_TriCentralPFNoPUJet30);
		if (run >= 194270)
		prescale = event->HLTPrescale(
				HLTriggers::HLT_Ele25_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_TriCentralPFNoPUJet30_30_20);

		eleAnalyser_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_->setPrescale(prescale);
		metNonIsoRegionAnalyser_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_->setPrescale(prescale);
		metAntiIDRegionAnalyser_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_->setPrescale(prescale);
		if (passesTriggerAnalysisSelection(event)) {
			eleAnalyser_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_->analyse(event);
			eleAnalyser_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_->analyseElectron(mostEnergeticElectron, event->weight());
		}

		if (passesNonIsoWithoutBtagAndHLT(event)) {
			QCDNonIsoRegionCount_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_++;
			metNonIsoRegionAnalyser_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_->analyse(event, qcdNonIsoSelection_->signalLepton(event));
//			metNonIsoRegionAnalyser_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_->analyseTransverseMass(event,
//					qcdNonIsoSelection_->signalLepton(event));
		}

		if (passesAntiIDWithoutBtagAndHLT(event)) {
			QCDAntiIDRegionCount_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_++;
			metAntiIDRegionAnalyser_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_->analyse(event,
					qcdAntiIDSelection_->signalLepton(event));
//			metAntiIDRegionAnalyser_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_->analyseTransverseMass(event,
//					qcdAntiIDSelection_->signalLepton(event));
		}
		if (passesSignalSelectionWithoutBtagAndHLT(event)) {
			TopSignalRegionCount_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_++;
			if (topSignalSelection_->hasAtLeastTwoGoodBJets(event))
				TopSignal_TwoBtagsRegionCount_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_++;
		}
	}

	if (passCaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT
			&& (!studyExclusiveEvents_
					|| (!passCaloIdVT_CaloIsoT_TrkIdT_TrkIsoT && !passCaloIdVL_CaloIsoT_TrkIdVL_TrkIsoT
							&& !passCaloIdVT_TrkIdT))) {
		int prescale = event->HLTPrescale(
				(HLTriggers::HLT_Ele25_CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT_TriCentralPFNoPUJet30));
		eleAnalyser_CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT_->setPrescale(prescale);
		metNonIsoRegionAnalyser_CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT_->setPrescale(prescale);
		metAntiIDRegionAnalyser_CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT_->setPrescale(prescale);

		if (passesTriggerAnalysisSelection(event)) {
			eleAnalyser_CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT_->analyse(event);
			eleAnalyser_CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT_->analyseElectron(mostEnergeticElectron, event->weight());
		}

		if (passesNonIsoWithoutBtagAndHLT(event)) {
			QCDNonIsoRegionCount_CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT_++;
			metNonIsoRegionAnalyser_CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT_->analyse(event,
					qcdNonIsoSelection_->signalLepton(event));
//			metNonIsoRegionAnalyser_CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT_->analyseTransverseMass(event,
//					qcdNonIsoSelection_->signalLepton(event));
		}
		if (passesAntiIDWithoutBtagAndHLT(event)) {
			QCDAntiIDRegionCount_CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT_++;
			metAntiIDRegionAnalyser_CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT_->analyse(event,
					qcdAntiIDSelection_->signalLepton(event));
//			metAntiIDRegionAnalyser_CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT_->analyseTransverseMass(event,
//					qcdAntiIDSelection_->signalLepton(event));
		}

		if (passesSignalSelectionWithoutBtagAndHLT(event)) {
			TopSignalRegionCount_CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT_++;
			if (topSignalSelection_->hasAtLeastTwoGoodBJets(event))
				TopSignal_TwoBtagsRegionCount_CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT_++;
		}
//.........这里部分代码省略.........
开发者ID:jjacob,项目名称:AnalysisSoftware,代码行数:101,代码来源:HLTriggerQCDAnalyser.cpp


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