Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-07 06:12:39

0001 #ifndef CondTools_RunInfo_LHCInfoHelper_h
0002 #define CondTools_RunInfo_LHCInfoHelper_h
0003 
0004 #include "CondCore/CondDB/interface/Time.h"
0005 #include "CondTools/RunInfo/interface/OMSAccess.h"
0006 
0007 namespace cond {
0008 
0009   namespace lhcInfoHelper {
0010 
0011     // Large number of LS for the OMS query, covering around 25 hours
0012     static constexpr unsigned int kLumisectionsQueryLimit = 4000;
0013 
0014     // last Run number and LS number of the specified Fill
0015     std::pair<int, unsigned short> getFillLastRunAndLS(const cond::OMSService& oms, unsigned short fillId);
0016 
0017     // Returns lumi-type IOV from last LS of last Run of the specified Fill
0018     cond::Time_t getFillLastLumiIOV(const cond::OMSService& oms, unsigned short fillId);
0019 
0020   }  // namespace lhcInfoHelper
0021 
0022 }  // namespace cond
0023 
0024 #endif