33 #include <CLHEP/Units/SystemOfUnits.h> 34 #include <CLHEP/Units/GlobalPhysicalConstants.h> 59 : recordName_(iConfig.getParameter<
std::
string>(
"recordName")) {
95 ->setComment(
"name of the record to use for the PoolDBOutputService");
96 desc.add<
double>(
"X0", 0.0)->setComment(
"in cm");
97 desc.add<
double>(
"Y0", 0.0)->setComment(
"in cm");
98 desc.add<
double>(
"Z0", 0.0)->setComment(
"in cm");
99 desc.add<
double>(
"MeanX", 0.0)->setComment(
"in cm");
100 desc.add<
double>(
"MeanY", 0.0)->setComment(
"in cm");
101 desc.add<
double>(
"MeanZ", 0.0)->setComment(
"in cm");
102 desc.add<
double>(
"SigmaX", -1.0)->setComment(
"in cm");
103 desc.add<
double>(
"SigmaY", -1.0)->setComment(
"in cm");
104 desc.add<
double>(
"SigmaZ", 0.0)->setComment(
"in cm");
105 desc.add<
double>(
"BetaStar", 0.0)->setComment(
"in cm");
106 desc.add<
double>(
"Emittance", 0.0)->setComment(
"in cm");
107 desc.add<
double>(
"Alpha", 0.0)->setComment(
"in radians");
108 desc.add<
double>(
"Phi", 0.0)->setComment(
"in radians");
109 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)
void setMeanZ(double val)
void setEmittance(double val)
#define DEFINE_FWK_MODULE(type)
SimBeamSpotObjects beamSpot_
const std::string recordName_
void setSigmaY(double val)
void setMeanX(double val)
set meanX, meanY, meanZ
void setTimeOffset(double val)
void analyze(edm::StreamID, const edm::Event &, const edm::EventSetup &) const override
BeamProfile2DBWriter(const edm::ParameterSet &)
void setSigmaX(double val)
set sigmaX, sigmaY, sigmaZ
void setX(double val)
set X, Y, Z positions
void setMeanY(double val)