Skip to content

Commit

Permalink
Merge pull request #41233 from dinyar/add-twoloose-showers-to-l1tntuples
Browse files Browse the repository at this point in the history
Add "one loose" showers from EMTF and "two loose showers in different sectors" from uGMT to L1Tntuples
  • Loading branch information
cmsbuild authored Mar 31, 2023
2 parents d097c9c + 7eef0aa commit 038c4e5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion L1Trigger/L1TMuon/plugins/L1TMuonShowerProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void L1TMuonShowerProducer::produce(edm::Event& iEvent, const edm::EventSetup& i
if (shower.isOneTightInTime()) {
isOneTightInTime = true;
}
// two loos in different sectors
// two loose in different sectors
if (shower.isOneLooseInTime()) {
if (foundOneLoose) {
isTwoLooseDifferentSectorsInTime = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ namespace L1Analysis {
muonShowerOneNominal.clear();
muonShowerOneTight.clear();
muonShowerTwoLoose.clear();
muonShowerTwoLooseDiffSectors.clear();

nSums = 0;
sumType.clear();
Expand Down Expand Up @@ -224,6 +225,7 @@ namespace L1Analysis {
std::vector<short int> muonShowerOneNominal;
std::vector<short int> muonShowerOneTight;
std::vector<short int> muonShowerTwoLoose;
std::vector<short int> muonShowerTwoLooseDiffSectors;

unsigned short int nSums;
std::vector<short int> sumType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace L1Analysis {
tfMuonShowerBx.clear();
tfMuonShowerOneNominal.clear();
tfMuonShowerOneTight.clear();
tfMuonShowerOneLoose.clear();
tfMuonShowerTwoLoose.clear();
tfMuonShowerEndcap.clear();
tfMuonShowerSector.clear();
Expand All @@ -24,6 +25,7 @@ namespace L1Analysis {
std::vector<short int> tfMuonShowerBx;
std::vector<short int> tfMuonShowerOneNominal;
std::vector<short int> tfMuonShowerOneTight;
std::vector<short int> tfMuonShowerOneLoose;
std::vector<short int> tfMuonShowerTwoLoose;
std::vector<short int> tfMuonShowerEndcap;
std::vector<short int> tfMuonShowerSector;
Expand Down
1 change: 1 addition & 0 deletions L1Trigger/L1TNtuples/src/L1AnalysisL1Upgrade.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ void L1Analysis::L1AnalysisL1Upgrade::SetMuonShower(const l1t::MuonShowerBxColle
l1upgrade_.muonShowerOneNominal.push_back(it->isOneNominalInTime());
l1upgrade_.muonShowerOneTight.push_back(it->isOneTightInTime());
l1upgrade_.muonShowerTwoLoose.push_back(it->isTwoLooseInTime());
l1upgrade_.muonShowerTwoLooseDiffSectors.push_back(it->isTwoLooseDiffSectorsInTime());
l1upgrade_.nMuonShowers++;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ void L1Analysis::L1AnalysisL1UpgradeTfMuonShower::SetTfMuonShower(const l1t::Reg
l1upgradetfmuonshower_.tfMuonShowerSector.push_back(it->processor() + 1);
l1upgradetfmuonshower_.tfMuonShowerOneNominal.push_back(it->isOneNominalInTime());
l1upgradetfmuonshower_.tfMuonShowerOneTight.push_back(it->isOneTightInTime());
l1upgradetfmuonshower_.tfMuonShowerOneLoose.push_back(it->isOneLooseInTime());
l1upgradetfmuonshower_.tfMuonShowerTwoLoose.push_back(it->isTwoLooseInTime());
l1upgradetfmuonshower_.nTfMuonShowers++;
}
Expand Down

0 comments on commit 038c4e5

Please sign in to comment.