-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Saving score as part of AXOL1TL Emulator #45227
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
Show all changes
8 commits
Select commit
Hold shift + click to select a range
89d84c2
initial commit
quinnanm 6a13102
code format
quinnanm 9ee1dd8
removed previous checksums, removed class intitialization with ibxInE…
quinnanm f289385
minor requested changes
quinnanm 1072662
Update L1Trigger/L1TGlobal/plugins/L1TGlobalProducer.cc
quinnanm f97126e
Update L1Trigger/L1TGlobal/plugins/L1TGlobalProducer.h
quinnanm 26d8b07
last suggested changes
quinnanm d4cba30
produceAXOL1TLScore not saveAXOscore
quinnanm 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 |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| #ifndef DataFormats_L1TGlobal_AXOL1TLScore_h | ||
| #define DataFormats_L1TGlobal_AXOL1TLScore_h | ||
|
|
||
| /** | ||
| * \class AXOL1TLScore | ||
| * | ||
| * | ||
| * Description: L1 micro Global Trigger - Extra NN score emulation information for AXOL1TL. | ||
| * | ||
| * | ||
| * \author: Melissa Quinnan - UC San Diego | ||
| * | ||
| * | ||
| */ | ||
|
|
||
| // system include files | ||
| #include <vector> | ||
| #include <iostream> | ||
| #include <iomanip> | ||
|
|
||
| // user include files | ||
| #include "FWCore/Utilities/interface/typedefs.h" | ||
| #include "DataFormats/L1Trigger/interface/L1Candidate.h" | ||
| #include "DataFormats/L1Trigger/interface/BXVector.h" | ||
| #include "DataFormats/L1Trigger/interface/L1TObjComparison.h" | ||
|
|
||
| // forward declarations | ||
|
|
||
| // namespace l1t { | ||
| class AXOL1TLScore; | ||
| typedef BXVector<AXOL1TLScore> AXOL1TLScoreBxCollection; | ||
|
|
||
| typedef l1t::ObjectRef<AXOL1TLScore> AXOL1TLScoreRef; | ||
| typedef l1t::ObjectRefBxCollection<AXOL1TLScore> AXOL1TLScoreRefBxCollection; | ||
| // typedef l1t::ObjectRefPair<AXOL1TLScore> AXOL1TLScoreRefPair; | ||
| // typedef l1t::ObjectRefPairBxCollection<AXOL1TLScore> AXOL1TLScoreRefPairBxCollection; //dont think pair part is needed | ||
|
|
||
| // class interface | ||
| class AXOL1TLScore { | ||
| public: | ||
| /// constructors | ||
| AXOL1TLScore(); //empty constructor | ||
|
|
||
| AXOL1TLScore(int bxInEvent); | ||
|
|
||
| AXOL1TLScore(int bxInEvent, float score); | ||
|
|
||
| /// destructor | ||
| virtual ~AXOL1TLScore(); | ||
|
|
||
| ///set/get axo score and other simple members | ||
| void setAXOScore(float score) { axoscore_ = score; } | ||
| void setbxInEventNr(int bxNr) { m_bxInEvent = bxNr; } | ||
|
|
||
| inline float const& getAXOScore() const { return axoscore_; } | ||
| inline const int getbxInEventNr() const { return m_bxInEvent; } | ||
quinnanm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| void reset(); | ||
|
|
||
| private: | ||
| /// bunch cross in the GT event record (E,F,0,1,2) | ||
| int m_bxInEvent; | ||
|
|
||
| //axo score value | ||
| float axoscore_; | ||
|
|
||
| //store version or type of network? | ||
| // std::string nnversion; | ||
| }; | ||
| //} l1t namespace | ||
| #endif /*DataFormats_L1TGlobal_AXOL1TLScore_h*/ | ||
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,28 @@ | ||
| /** | ||
| * \class AXOL1TLScore | ||
| * | ||
| * | ||
| * | ||
| * \author: Melissa Quinnan -- UC San Diego | ||
| * | ||
| * | ||
| */ | ||
|
|
||
| // this class header | ||
| #include "DataFormats/L1TGlobal/interface/AXOL1TLScore.h" | ||
|
|
||
| void AXOL1TLScore::reset() { | ||
| axoscore_ = 0.0; | ||
| m_bxInEvent = 0; | ||
| } | ||
|
|
||
| AXOL1TLScore::AXOL1TLScore() { reset(); } | ||
|
|
||
| AXOL1TLScore::AXOL1TLScore(int bxInEvent) : m_bxInEvent(bxInEvent) { axoscore_ = 0.0; } | ||
|
|
||
| AXOL1TLScore::AXOL1TLScore(int bxInEvent, float score) : m_bxInEvent(bxInEvent), axoscore_(score) {} | ||
|
|
||
| //destructor | ||
| AXOL1TLScore::~AXOL1TLScore() { | ||
| //empty | ||
| } |
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
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
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.