1 #ifndef BTRANSITIONANALYZER_H 2 #define BTRANSITIONANALYZER_H 16 template <
class T,
class R>
25 #ifdef __INTEL_COMPILER 38 double current_default = -1;
42 LogDebug(
"BTransitionAnalyzer") <<
"Comparing value of magnet current: " << avg_current
43 <<
" A for run: " <<
run.run()
47 bFieldLabel = bOffLabel;
53 <<
"The magnet was " << (bFieldLabel == bOnLabel ?
"ON" :
"OFF") <<
" during run " <<
run.run()
54 <<
".\nLoading the product for the corrisponding label " << bFieldLabel << std::endl;
60 <<
"Exporting payload corresponding to the calibrations for magnetic field " 61 << (bFieldLabel == bOnLabel ?
"ON" :
"OFF") <<
" starting from run number: " <<
run.run() << std::endl;
64 edm::LogInfo(
"BTransitionAnalyzer") <<
"The payload corresponding to the calibrations for magnetic field " 65 << (bFieldLabel == bOnLabel ?
"ON" :
"OFF") <<
" is still valid for run " 66 <<
run.run() <<
".\nNo transfer needed." << std::endl;
69 edm::LogError(
"BTransitionAnalyzer") <<
"PoolDBOutputService unavailable";
83 #endif //BTRANSITIONANALYZER_H void analyze(edm::Event const &, edm::EventSetup const &) final
double m_currentThreshold
void endRun(edm::Run const &run, edm::EventSetup const &eventSetup) final
BTransitionAnalyzer(const edm::ParameterSet &pset)
virtual bool equalPayloads(edm::ESHandle< T > const &payloadHandle, edm::ESHandle< T > const &payloadRefHandle)=0
Log< level::Error, false > LogError
T const * product() const
void beginRun(edm::Run const &, edm::EventSetup const &) final
Hash writeOneIOV(const T &payload, Time_t time, const std::string &recordName)
const edm::ESGetToken< T, R > m_ESTokenB38T
Log< level::Info, false > LogInfo
const edm::ESGetToken< RunInfo, RunInfoRcd > m_RunInfoToken
const edm::ESGetToken< T, R > m_ESToken
const edm::ESGetToken< T, R > m_ESTokenB0T