-
Notifications
You must be signed in to change notification settings - Fork 4.6k
L1T ZDC and uGT Emulator to CMSSW_13_3_X #42634
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -43,6 +43,8 @@ namespace l1t { | |
| gtCentrality6, | ||
| gtCentrality7, | ||
| gtExternal, | ||
| gtZDCP, | ||
| gtZDCM, | ||
| ObjNull | ||
| }; | ||
|
|
||
|
|
||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -52,6 +52,8 @@ namespace l1t { | |
| kAsymHt, | ||
| kAsymEtHF, | ||
| kAsymHtHF, | ||
| kZDCP, | ||
| kZDCM, | ||
| kUninitialized | ||
| }; | ||
|
|
||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| #ifndef L1Trigger_L1TGlobal_EnergySumZdcCondition_h | ||
| #define L1Trigger_L1TGlobal_EnergySumZdcCondition_h | ||
|
|
||
| /** | ||
| * \class EnergySumZdcCondition | ||
| * | ||
| * | ||
| * Description: evaluation of a CondEnergySumZdc condition. | ||
| * | ||
| * Implementation: | ||
| * <TODO: enter implementation details> | ||
| * | ||
| * \author: Vasile Mihai Ghete - HEPHY Vienna | ||
| * | ||
| * | ||
| */ | ||
|
|
||
| // system include files | ||
| #include <iosfwd> | ||
| #include <string> | ||
|
|
||
| // user include files | ||
| // base classes | ||
| #include "L1Trigger/L1TGlobal/interface/ConditionEvaluation.h" | ||
|
|
||
| // forward declarations | ||
| class GlobalCondition; | ||
| class EnergySumZdcTemplate; | ||
|
|
||
| namespace l1t { | ||
|
|
||
| class L1Candidate; | ||
|
|
||
| class GlobalBoard; | ||
|
|
||
| // class declaration | ||
| class EnergySumZdcCondition : public ConditionEvaluation { | ||
| public: | ||
| /// constructors | ||
| /// default | ||
| EnergySumZdcCondition(); | ||
|
|
||
| /// from base template condition (from event setup usually) | ||
| EnergySumZdcCondition(const GlobalCondition*, const GlobalBoard*); | ||
|
|
||
| // copy constructor | ||
| EnergySumZdcCondition(const EnergySumZdcCondition&); | ||
|
|
||
| // destructor | ||
| ~EnergySumZdcCondition() override; | ||
|
|
||
| // assign operator | ||
| EnergySumZdcCondition& operator=(const EnergySumZdcCondition&); | ||
|
|
||
| public: | ||
| /// the core function to check if the condition matches | ||
| const bool evaluateCondition(const int bxEval) const override; | ||
|
|
||
| /// print condition | ||
| void print(std::ostream& myCout) const override; | ||
|
|
||
| public: | ||
| /// get / set the pointer to a L1GtCondition | ||
| inline const EnergySumZdcTemplate* gtEnergySumZdcTemplate() const { return m_gtEnergySumZdcTemplate; } | ||
|
|
||
| void setGtEnergySumZdcTemplate(const EnergySumZdcTemplate*); | ||
|
|
||
| /// get / set the pointer to uGt GlobalBoard | ||
| inline const GlobalBoard* getuGtB() const { return m_uGtB; } | ||
|
|
||
| void setuGtB(const GlobalBoard*); | ||
|
|
||
| private: | ||
| /// copy function for copy constructor and operator= | ||
| void copy(const EnergySumZdcCondition& cp); | ||
|
|
||
| private: | ||
| /// pointer to a EnergySumZdcTemplate | ||
| const EnergySumZdcTemplate* m_gtEnergySumZdcTemplate; | ||
|
|
||
| /// pointer to uGt GlobalBoard, to be able to get the trigger objects | ||
| const GlobalBoard* m_uGtB; | ||
| }; | ||
|
|
||
| } // namespace l1t | ||
| #endif |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| #ifndef L1Trigger_L1TGlobal_EnergySumZdcTemplate_h | ||
| #define L1Trigger_L1TGlobal_EnergySumZdcTemplate_h | ||
|
|
||
| /** | ||
| * \class EnergySumZdcTemplate | ||
| * | ||
| * | ||
| * Description: L1 Global Trigger energy-sum template. | ||
| * | ||
| * Implementation: | ||
| * <TODO: enter implementation details> | ||
| * | ||
| * \author: Vasile Mihai Ghete - HEPHY Vienna | ||
| * | ||
| * $Date$ | ||
| * $Revision$ | ||
| * | ||
| */ | ||
|
|
||
| // system include files | ||
| #include <string> | ||
| #include <iosfwd> | ||
|
|
||
| // user include files | ||
|
|
||
| // base class | ||
| #include "L1Trigger/L1TGlobal/interface/GlobalCondition.h" | ||
|
|
||
| // forward declarations | ||
|
|
||
| // class declaration | ||
| class EnergySumZdcTemplate : public GlobalCondition { | ||
| public: | ||
| // constructor | ||
| EnergySumZdcTemplate(); | ||
|
|
||
| // constructor | ||
| EnergySumZdcTemplate(const std::string&); | ||
|
|
||
| // constructor | ||
| EnergySumZdcTemplate(const std::string&, const l1t::GtConditionType&); | ||
|
|
||
| // copy constructor | ||
| EnergySumZdcTemplate(const EnergySumZdcTemplate&); | ||
|
|
||
| // destructor | ||
| ~EnergySumZdcTemplate() override; | ||
|
|
||
| // assign operator | ||
| EnergySumZdcTemplate& operator=(const EnergySumZdcTemplate&); | ||
|
|
||
| public: | ||
| struct ObjectParameter { | ||
| unsigned int etLowThreshold; | ||
| unsigned int etHighThreshold; | ||
| }; | ||
|
|
||
| public: | ||
| inline const std::vector<ObjectParameter>* objectParameter() const { return &m_objectParameter; } | ||
|
|
||
| /// set functions | ||
| void setConditionParameter(const std::vector<ObjectParameter>&); | ||
|
|
||
| /// print the condition | ||
| void print(std::ostream& myCout) const override; | ||
|
|
||
| /// output stream operator | ||
| friend std::ostream& operator<<(std::ostream&, const EnergySumZdcTemplate&); | ||
|
|
||
| private: | ||
| /// copy function for copy constructor and operator= | ||
| void copy(const EnergySumZdcTemplate& cp); | ||
|
|
||
| private: | ||
| /// variables containing the parameters | ||
| std::vector<ObjectParameter> m_objectParameter; | ||
| }; | ||
|
|
||
| #endif |
This file contains hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.