1 #ifndef BTRANSITIONANALYZER_H 2 #define BTRANSITIONANALYZER_H 16 template <
class T,
class R>
20 :
m_currentThreshold(pset.getUntrackedParameter<double>(
"currentThreshold", 18000.)) {}
21 #ifdef __INTEL_COMPILER 33 eventSetup.get<
RunInfoRcd>().
get(runInfoHandle);
35 double current_default = -1;
39 LogDebug(
"BTransitionAnalyzer") <<
"Comparing value of magnet current: " << avg_current
40 <<
" A for run: " <<
run.run()
44 bFieldLabel = bOffLabel;
46 <<
"The magnet was " << (bFieldLabel == bOnLabel ?
"ON" :
"OFF") <<
" during run " <<
run.run()
47 <<
".\nLoading the product for the corrisponding label " << bFieldLabel << std::endl;
48 eventSetup.get<
R>().
get(bFieldLabel, payloadHandle);
49 eventSetup.get<
R>().
get(payloadRefHandle);
54 <<
"Exporting payload corresponding to the calibrations for magnetic field " 55 << (bFieldLabel == bOnLabel ?
"ON" :
"OFF") <<
" starting from run number: " <<
run.run() << std::endl;
58 edm::LogInfo(
"BTransitionAnalyzer") <<
"The payload corresponding to the calibrations for magnetic field " 59 << (bFieldLabel == bOnLabel ?
"ON" :
"OFF") <<
" is still valid for run " 60 <<
run.run() <<
".\nNo transfer needed." << std::endl;
63 edm::LogError(
"BTransitionAnalyzer") <<
"PoolDBOutputService unavailable";
73 #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
void beginRun(edm::Run const &, edm::EventSetup const &) final
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
T const * product() const