Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:22

0001 //
0002 //   \class ScaleRecordHelper
0003 //
0004 //   Description:  A helper class to extract L1 trigger scales from the database
0005 //
0006 //
0007 //   Author :
0008 //   Thomas Themel
0009 //
0010 //--------------------------------------------------
0011 #ifndef L1ScalesProducers_ScaleRecordHelper_h
0012 #define L1ScalesProducers_ScaleRecordHelper_h
0013 
0014 // system include files
0015 #include <memory>
0016 #include <vector>
0017 #include <string>
0018 
0019 #include "CondTools/L1Trigger/interface/OMDSReader.h"
0020 
0021 class ScaleRecordHelper {
0022 public:
0023   ScaleRecordHelper(const std::string& binPrefix, unsigned int maxBin);
0024 
0025   void pushColumnNames(std::vector<std::string>& columns);
0026 
0027   void extractScales(l1t::OMDSReader::QueryResults& record, std::vector<double>& destScales);
0028 
0029 protected:
0030   const std::string columnName(unsigned int bin);
0031 
0032 private:
0033   std::string binPrefix_;
0034   unsigned int maxBin_;
0035 };
0036 
0037 #endif