Skip to content

Commit

Permalink
Merge pull request #42197 from CTPPS/jc_lhcInfo_split_PopCon_PR_BACKPORT
Browse files Browse the repository at this point in the history
[13_0_X] lhcInfo split: per fill and per LS PopCon
  • Loading branch information
cmsbuild authored Jul 7, 2023
2 parents a8adbc7 + 8f81525 commit 297524b
Show file tree
Hide file tree
Showing 10 changed files with 1,682 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CondTools/RunInfo/interface/OMSAccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ namespace cond {
unsigned long int_val = from_string_impl<unsigned long, &s_to_ul>(attributeValue, 0);
return (unsigned short)int_val;
}
inline unsigned long long s_to_ull(const std::string& val) { return std::stoull(val); }
template <>
inline unsigned long long from_string(const std::string& attributeValue) {
unsigned long long int_val = from_string_impl<unsigned long long, &s_to_ull>(attributeValue, 0);
return int_val;
}

inline boost::posix_time::ptime s_to_time(const std::string& val) {
boost::posix_time::time_input_facet* facet = new boost::posix_time::time_input_facet(OMS_TIME_FMT);
Expand Down Expand Up @@ -147,6 +153,9 @@ namespace cond {
OMSServiceResultIterator begin() const;
OMSServiceResultIterator end() const;

OMSServiceResultRef front() const;
OMSServiceResultRef back() const;

// parse json returned from curl, filling the property tree
size_t parseData(const std::string& data);

Expand Down
20 changes: 20 additions & 0 deletions CondTools/RunInfo/plugins/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,26 @@

<library file="L1TriggerScalerESAnalyzer.cc" name="CondToolsL1TriggerScalerESAnalyzer">
<flags EDM_PLUGIN="1"/>
</library>

<library file="LHCInfoPerLSAnalyzer.cc" name="LHCInfoPerLSAnalyzer">
<flags EDM_PLUGIN="1"/>
</library>

<library file="LHCInfoPerFillWriter.cc" name="LHCInfoPerFillWriter">
<flags EDM_PLUGIN="1"/>
</library>

<library file="LHCInfoPerFillAnalyzer.cc" name="LHCInfoPerFillAnalyzer">
<flags EDM_PLUGIN="1"/>
</library>

<library file="LHCInfoPerLSPopConAnalyzer.cc" name="CondToolsLHCInfoPerLSPopConAnalyzer">
<flags EDM_PLUGIN="1"/>
</library>

<library file="LHCInfoPerFillPopConAnalyzer.cc" name="CondToolsLHCInfoPerFillPopConAnalyzer">
<flags EDM_PLUGIN="1"/>
</library>

<library file="LHCInfoPerLSWriter.cc" name="LHCInfoPerLSWriter">
Expand Down
Loading

0 comments on commit 297524b

Please sign in to comment.