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

[Backport 125X] OS requirement for Triple Muon seeds in the uGT emulator #40129

Merged
merged 1 commit into from
Nov 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions L1Trigger/L1TGlobal/interface/CorrelationThreeBodyTemplate.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ class CorrelationThreeBodyTemplate : public GlobalCondition {
unsigned int precMassCut;

int corrCutType;

//Requirement on charge of the three muon legs
unsigned int chargeCorrelation;
};

public:
Expand Down
17 changes: 14 additions & 3 deletions L1Trigger/L1TGlobal/plugins/TriggerMenuParser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2988,19 +2988,30 @@ bool l1t::TriggerMenuParser::parseCorrelationThreeBody(tmeventsetup::esCondition

// Storage of the correlation selection
CorrelationThreeBodyTemplate::CorrelationThreeBodyParameter corrThreeBodyParameter;
// Set charge correlation parameter
//corrThreeBodyParameter.chargeCorrelation = chargeCorrelation; //tmpValues[0];
//corrThreeBodyParameter.chargeCorrelation = 1; //ignore charge correlation for corr-legs

// Get the correlation cuts on the legs
int cutType = 0;
const std::vector<esCut>& cuts = corrCond.getCuts();
for (size_t lll = 0; lll < cuts.size(); lll++) {
for (size_t lll = 0; lll < cuts.size(); lll++) { // START esCut lll
const esCut cut = cuts.at(lll);

if (cut.getCutType() == esCutType::ChargeCorrelation) {
if (cut.getData() == "ls")
corrThreeBodyParameter.chargeCorrelation = 2;
else if (cut.getData() == "os")
corrThreeBodyParameter.chargeCorrelation = 4;
else
corrThreeBodyParameter.chargeCorrelation = 1; //ignore charge correlation
}

//
// Until utm has method to calculate these, do the integer value calculation with precision.
//
double minV = cut.getMinimum().value;
double maxV = cut.getMaximum().value;

//Scale down very large numbers out of xml
if (maxV > 1.0e8)
maxV = 1.0e8;
Expand All @@ -3019,7 +3030,7 @@ bool l1t::TriggerMenuParser::parseCorrelationThreeBody(tmeventsetup::esCondition
corrThreeBodyParameter.precMassCut = cut.getMinimum().index;
cutType = cutType | 0x80;
}
}
} // END esCut lll
corrThreeBodyParameter.corrCutType = cutType;

// Get the three objects that form the legs
Expand Down
Loading