本文整理汇总了C++中EventPtr::HLT方法的典型用法代码示例。如果您正苦于以下问题:C++ EventPtr::HLT方法的具体用法?C++ EventPtr::HLT怎么用?C++ EventPtr::HLT使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EventPtr
的用法示例。
在下文中一共展示了EventPtr::HLT方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: runNumber
bool TopPairMuPlusJetsReferenceSelection2011::passesTriggerSelection(const EventPtr event) const {
unsigned int runNumber(event->runnumber());
if (event->isRealData()) {
if (runNumber >= 160404 && runNumber < 173236)
return event->HLT(HLTriggers::HLT_IsoMu24);
else if (runNumber >= 173236)
return event->HLT(HLTriggers::HLT_IsoMu24_eta2p1);
else
return false;
} else {
//Fall11 MC
return event->HLT(HLTriggers::HLT_IsoMu24);
}
}
示例2: passesTriggerSelection
bool QCDPFRelIsoEPlusJetsSelection::passesTriggerSelection(const EventPtr event) const {
if (!useNonIsoTrigger_)
return TopPairEPlusJetsReferenceSelection::passesTriggerSelection(event);
else {
unsigned int runNumber(event->runnumber());
if (event->isRealData()) {
if (runNumber >= 160404 && runNumber <= 163869)
return event->HLT(HLTriggers::HLT_Ele25_CaloIdVT_TrkIdT_CentralTriJet30);
else if (runNumber > 163869 && runNumber <= 178380)
return event->HLT(HLTriggers::HLT_Ele25_CaloIdVT_TrkIdT_TriCentralJet30);
else if (runNumber > 178380)
return event->HLT(HLTriggers::HLT_Ele25_CaloIdVT_TrkIdT_TriCentralPFJet30);
else
return false;
} else {
//Fall11 MC
return event->HLT(HLTriggers::HLT_Ele25_CaloIdVT_TrkIdT_TriCentralJet30);
}
}
}
示例3: passesTriggerSelection
bool TopPairEMuReferenceSelection::passesTriggerSelection(const EventPtr event) const {
return event->HLT(HLTriggers::HLT_Mu17_Ele8_CaloIdT_CaloIsoVL_TrkIdVL_TrkIsoVL) || event->HLT(HLTriggers::HLT_Mu8_Ele17_CaloIdT_CaloIsoVL_TrkIdVL_TrkIsoVL);
}
示例4: 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_++;
}
//.........这里部分代码省略.........