Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HLTHiggsSubAnalysis: read within bounds #12849

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
50 changes: 29 additions & 21 deletions HLTriggerOffline/Higgs/src/HLTHiggsSubAnalysis.cc
Expand Up @@ -1134,38 +1134,46 @@ void HLTHiggsSubAnalysis::passJetCuts(std::vector<MatchStruct> * matches, std::m
std::sort(matches->begin(), matches->begin()+NbTag, matchesByDescendingBtag());

if( _NminOneCuts[0] ) {
dEtaqq = fabs((*matches)[2].eta - (*matches)[3].eta);
if( dEtaqq > _NminOneCuts[0] ) jetCutResult["dEtaqq"] = true;
else jetCutResult["dEtaqq"] = false;
jetCutResult["dEtaqq"] = false;
if (matches->size() > 2){
dEtaqq = fabs((*matches)[2].eta - (*matches)[3].eta);
if( dEtaqq > _NminOneCuts[0] ) jetCutResult["dEtaqq"] = true;
}
}

if( _NminOneCuts[1] ) {
mqq = ((*matches)[2].lorentzVector + (*matches)[3].lorentzVector).M();
if( mqq > _NminOneCuts[1] ) jetCutResult["mqq"] = true;
else jetCutResult["mqq"] = false;
jetCutResult["mqq"] = false;
if (matches->size() > 2){
mqq = ((*matches)[2].lorentzVector + (*matches)[3].lorentzVector).M();
if( mqq > _NminOneCuts[1] ) jetCutResult["mqq"] = true;
}
}

if( _NminOneCuts[2] ) {
dPhibb = fmod(fabs((*matches)[0].phi - (*matches)[1].phi),3.1416);
if( dPhibb < _NminOneCuts[2] ) jetCutResult["dPhibb"] = true;
else jetCutResult["dPhibb"] = false;
jetCutResult["dPhibb"] = false;
if (matches->size() > 1){
dPhibb = fmod(fabs((*matches)[0].phi - (*matches)[1].phi),3.1416);
if( dPhibb < _NminOneCuts[2] ) jetCutResult["dPhibb"] = true;
}
}

if( _NminOneCuts[4] ) {
CSV2 = (*matches)[1].bTag;
std::string nameCSV2plot = "CSV2";

if( CSV2 > _NminOneCuts[4] ) jetCutResult[nameCSV2plot] = true;
else jetCutResult[nameCSV2plot] = false;
}
std::string nameCSV2plot = "CSV2";
jetCutResult[nameCSV2plot] = false;
if (matches->size() > 1){
CSV2 = (*matches)[1].bTag;
if( CSV2 > _NminOneCuts[4] ) jetCutResult[nameCSV2plot] = true;
}
}

if( _NminOneCuts[5] ) {
CSV3 = (*matches)[2].bTag;
std::string nameCSV3plot = "CSV3";

if( CSV3 > _NminOneCuts[5] ) jetCutResult[nameCSV3plot] = true;
else jetCutResult[nameCSV3plot] = false;
}
std::string nameCSV3plot = "CSV3";
jetCutResult[nameCSV3plot] = false;
if (matches->size() > 2){
CSV3 = (*matches)[2].bTag;
if( CSV3 > _NminOneCuts[5] ) jetCutResult[nameCSV3plot] = true;
}
}


if( _NminOneCuts[3] ) {
Expand Down