forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'l1t-integration-CMSSW_12_0_2-uGT-hadronic-shower-trigge…
…r' of https://github.com/dildick/cmssw into dildick-l1t-integration-CMSSW_12_0_2-uGT-hadronic-shower-trigger
- Loading branch information
Showing
51 changed files
with
1,260 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
#include "DataFormats/L1Trigger/interface/MuonShower.h" | ||
|
||
l1t::MuonShower::MuonShower(bool oneNominalInTime, bool oneNominalOutOfTime, bool twoLooseInTime, bool twoLooseOutOfTime) | ||
l1t::MuonShower::MuonShower(bool oneNominalInTime, | ||
bool oneNominalOutOfTime, | ||
bool twoLooseInTime, | ||
bool twoLooseOutOfTime, | ||
bool oneTightInTime, | ||
bool oneTightOutOfTime) | ||
: L1Candidate(math::PtEtaPhiMLorentzVector{0., 0., 0., 0.}, 0., 0., 0., 0, 0), | ||
isOneNominalInTime_(oneNominalInTime), | ||
isOneNominalOutOfTime_(oneNominalOutOfTime), | ||
isTwoLooseInTime_(twoLooseInTime), | ||
isTwoLooseOutOfTime_(twoLooseOutOfTime) {} | ||
// in this object it makes more sense to the different shower types to | ||
// the 4 bits, so that the object easily interfaces with the uGT emulator | ||
mus0_(oneNominalInTime), | ||
mus1_(oneTightInTime), | ||
musOutOfTime0_(false), | ||
musOutOfTime1_(false) {} | ||
|
||
l1t::MuonShower::~MuonShower() {} | ||
|
||
bool l1t::MuonShower::isValid() const { | ||
return isOneNominalInTime_ or isTwoLooseInTime_ or isOneNominalOutOfTime_ or isTwoLooseOutOfTime_; | ||
} | ||
bool l1t::MuonShower::isValid() const { return mus0_ or mus1_ or musOutOfTime0_ or musOutOfTime1_; } | ||
|
||
bool l1t::MuonShower::operator==(const l1t::MuonShower& rhs) const { | ||
return (isTwoLooseInTime_ == rhs.isTwoLooseInTime() and isOneNominalInTime_ == rhs.isOneNominalInTime() and | ||
isTwoLooseOutOfTime_ == rhs.isTwoLooseOutOfTime() and isOneNominalOutOfTime_ == rhs.isOneNominalOutOfTime()); | ||
return (mus0_ == rhs.mus0() and mus1_ == rhs.mus1() and musOutOfTime0_ == rhs.musOutOfTime0() and | ||
musOutOfTime1_ == rhs.musOutOfTime1()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.