35 const float EPS = 1E-4;
36 assert(lhcInfoPerFill.fillNumber() == 3);
37 assert(lhcInfoPerFill.bunchesInBeam1() == 10);
38 assert(lhcInfoPerFill.bunchesInBeam2() == 8);
39 assert(lhcInfoPerFill.collidingBunches() == 5);
40 assert(lhcInfoPerFill.targetBunches() == 4);
41 assert(lhcInfoPerFill.fillType() == lhcInfoPerFill.PROTONS);
42 assert(lhcInfoPerFill.particleTypeForBeam1() == lhcInfoPerFill.PROTON);
43 assert(lhcInfoPerFill.particleTypeForBeam2() == lhcInfoPerFill.PROTON);
44 assert(
abs(lhcInfoPerFill.intensityForBeam1() - 1016.5) <
EPS);
45 assert(
abs(lhcInfoPerFill.intensityForBeam2() - 1096.66) <
EPS);
51 assert(lhcInfoPerFill.createTime() == 6561530930997627120);
52 assert(lhcInfoPerFill.beginTime() == 6561530930997627120);
53 assert(lhcInfoPerFill.endTime() == 6561530930997627120);
54 assert(lhcInfoPerFill.injectionScheme() ==
"None");
55 assert(lhcInfoPerFill.lumiPerBX().size() == 2);
56 assert(
abs(lhcInfoPerFill.lumiPerBX()[0] - 0.000114139) <
EPS);
57 assert(
abs(lhcInfoPerFill.lumiPerBX()[1] - 0.000114139) <
EPS);
58 assert(lhcInfoPerFill.lhcState() ==
"some lhcState");
59 assert(lhcInfoPerFill.lhcComment() ==
"some lhcComment");
60 assert(lhcInfoPerFill.ctppsStatus() ==
"some ctppsStatus");
61 edm::LogInfo(
"LHCInfoPerFillAnalyzer") <<
"LHCInfoPerFill retrieved:\n" << lhcInfoPerFill;
LHCInfoPerFillAnalyzer(const edm::ParameterSet &)
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Abs< T >::type abs(const T &t)
#define DEFINE_FWK_MODULE(type)
edm::ESGetToken< LHCInfoPerFill, LHCInfoPerFillRcd > tokenInfoPerFill_
Log< level::Info, false > LogInfo
void analyze(const edm::Event &, const edm::EventSetup &) override
bool check(const edm::EventSetup &iSetup)
edm::ESWatcher< LHCInfoPerFillRcd > infoPerFillWatcher_