33 #include "CLHEP/Units/GlobalSystemOfUnits.h" 34 #include "CLHEP/Units/GlobalPhysicalConstants.h" 59 : recordName_(iConfig.getParameter<
std::
string>(
"recordName")) {
90 ->setComment(
"name of the record to use for the PoolDBOutputService");
91 desc.add<
double>(
"X0")->setComment(
"in cm");
92 desc.add<
double>(
"Y0")->setComment(
"in cm");
93 desc.add<
double>(
"Z0")->setComment(
"in cm");
94 desc.add<
double>(
"SigmaZ")->setComment(
"in cm");
95 desc.add<
double>(
"BetaStar")->setComment(
"in cm");
96 desc.add<
double>(
"Emittance")->setComment(
"in cm");
97 desc.add<
double>(
"Alpha", 0.0)->setComment(
"in radians");
98 desc.add<
double>(
"Phi", 0.0)->setComment(
"in radians");
99 desc.add<
double>(
"TimeOffset", 0.0)->setComment(
"in ns");
~BeamProfile2DBWriter() override=default
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
T getParameter(std::string const &) const
void setPhi(double val)
set Phi, Alpha and TimeOffset
cond::Time_t beginOfTime() const
void setAlpha(double val)
void createOneIOV(const T &payload, cond::Time_t firstSinceTime, const std::string &recordName)
void setBetaStar(double val)
set BetaStar and Emittance
void setSigmaZ(double val)
set sigmaZ
void setEmittance(double val)
#define DEFINE_FWK_MODULE(type)
SimBeamSpotObjects beamSpot_
const std::string recordName_
void setTimeOffset(double val)
void analyze(edm::StreamID, const edm::Event &, const edm::EventSetup &) const override
BeamProfile2DBWriter(const edm::ParameterSet &)
void setX(double val)
set X, Y, Z positions