1 #ifndef BTRANSITIONANALYZER_H
2 #define BTRANSITIONANALYZER_H
16 template <
class T,
class R>
21 #ifdef __INTEL_COMPILER
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