Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-07-16 02:42:43

0001 #ifndef DataFormats_L1TGlobal_AXOL1TLScore_h
0002 #define DataFormats_L1TGlobal_AXOL1TLScore_h
0003 
0004 /**
0005 * \class AXOL1TLScore
0006 *
0007 *
0008 * Description: L1 micro Global Trigger - Extra NN score emulation information for AXOL1TL.
0009 * 
0010 *
0011 * \author: Melissa Quinnan - UC San Diego
0012 *
0013 *
0014 */
0015 
0016 // system include files
0017 #include <vector>
0018 #include <iostream>
0019 #include <iomanip>
0020 
0021 // user include files
0022 #include "FWCore/Utilities/interface/typedefs.h"
0023 #include "DataFormats/L1Trigger/interface/L1Candidate.h"
0024 #include "DataFormats/L1Trigger/interface/BXVector.h"
0025 #include "DataFormats/L1Trigger/interface/L1TObjComparison.h"
0026 
0027 // forward declarations
0028 
0029 // namespace l1t {
0030 class AXOL1TLScore;
0031 typedef BXVector<AXOL1TLScore> AXOL1TLScoreBxCollection;
0032 
0033 typedef l1t::ObjectRef<AXOL1TLScore> AXOL1TLScoreRef;
0034 typedef l1t::ObjectRefBxCollection<AXOL1TLScore> AXOL1TLScoreRefBxCollection;
0035 // typedef l1t::ObjectRefPair<AXOL1TLScore> AXOL1TLScoreRefPair;
0036 // typedef l1t::ObjectRefPairBxCollection<AXOL1TLScore> AXOL1TLScoreRefPairBxCollection; //dont think pair part is needed
0037 
0038 // class interface
0039 class AXOL1TLScore {
0040 public:
0041   /// constructors
0042   AXOL1TLScore();  //empty constructor
0043 
0044   AXOL1TLScore(int bxInEvent);
0045 
0046   AXOL1TLScore(int bxInEvent, float score);
0047 
0048   /// destructor
0049   virtual ~AXOL1TLScore();
0050 
0051   ///set/get axo score and other simple members
0052   void setAXOScore(float score) { axoscore_ = score; }
0053   void setbxInEventNr(int bxNr) { m_bxInEvent = bxNr; }
0054 
0055   inline float const& getAXOScore() const { return axoscore_; }
0056   inline const int getbxInEventNr() const { return m_bxInEvent; }
0057 
0058   void reset();
0059 
0060 private:
0061   /// bunch cross in the GT event record (E,F,0,1,2)
0062   int m_bxInEvent;
0063 
0064   //axo score value
0065   float axoscore_;
0066 
0067   //store version or type of network?
0068   // std::string nnversion;
0069 };
0070 //} l1t namespace
0071 #endif /*DataFormats_L1TGlobal_AXOL1TLScore_h*/