-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45227 from quinnanm/axol1tl_scoresaving_pr
Saving score as part of AXOL1TL Emulator
- Loading branch information
Showing
13 changed files
with
295 additions
and
1 deletion.
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
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; } | ||
|
||
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 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 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
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.