55 outputFile_(iConfig.getParameter<
string>(
"outputFile")),
57 h_beamEnergy_(new TH1D(
"h_beamEnergy",
";beam energy (GeV)", 81, -50., 8050.)),
58 h_xangle_(new TH1D(
"h_xangle",
";(half) crossing angle (#murad)", 201, -0.5, 200.5)),
59 h_betaStar_(new TH1D(
"h_betaStar",
";#beta^{*} (m)", 101, -0.005, 1.005)),
60 h2_betaStar_vs_xangle_(new TH2D(
"h2_betaStar_vs_xangle",
61 ";(half) crossing angle (#murad);#beta^{*} (m)",
69 h_fill_(new TH1D(
"h_fill",
";fill", 4001, 3999.5, 8000.5)),
70 h_run_(new TH1D(
"h_run",
";run", 6000, 270E3, 330E3)) {}
77 desc.add<
std::string>(
"lhcInfoLabel",
"")->setComment(
"label of the LHCInfo record");
80 descriptions.
add(
"ctppsLHCInfoPlotter",
desc);
93 h_fill_->Fill(lhcInfo.fillNumber());
100 auto f_out = std::make_unique<TFile>(
outputFile_.c_str(),
"recreate");
void analyze(const edm::Event &, const edm::EventSetup &) override
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
CTPPSLHCInfoPlotter(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
TH2D * h2_betaStar_vs_xangle_
edm::ESGetToken< LHCInfo, LHCInfoRcd > lhcInfoESToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)