Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:22:35

0001 // CaloConfigHelper.h
0002 //
0003 // Wrapper class for CaloConfig
0004 
0005 #ifndef CALO_CONFIG_HELPER_H__
0006 #define CALO_CONFIG_HELPER_H__
0007 
0008 #include "CondFormats/L1TObjects/interface/CaloConfig.h"
0009 
0010 namespace l1t {
0011 
0012   class CaloConfigHelper {
0013   public:
0014     CaloConfigHelper(CaloConfig& db, unsigned fwv, std::string epoch);
0015     CaloConfigHelper(const CaloConfig& db);
0016     CaloConfigHelper();
0017     void UpdatePayload(const CaloConfig* db) { db_ = db; }
0018     unsigned fwv() const { return db_->uconfig_[0]; }
0019 
0020   private:
0021     const CaloConfig* db_;  // We do not own this pointer...
0022   };
0023 }  // namespace l1t
0024 
0025 #endif