36 #include "CLHEP/Units/GlobalSystemOfUnits.h" 37 #include "CLHEP/Units/GlobalPhysicalConstants.h" 62 ret.fX0 =
p.getParameter<
double>(
"X0") * cm;
63 ret.fY0 =
p.getParameter<
double>(
"Y0") * cm;
64 ret.fZ0 =
p.getParameter<
double>(
"Z0") * cm;
65 ret.fSigmaZ =
p.getParameter<
double>(
"SigmaZ") * cm;
66 ret.fAlpha =
p.getParameter<
double>(
"Alpha") * radian;
67 ret.fPhi =
p.getParameter<
double>(
"Phi") * radian;
68 ret.fbetastar =
p.getParameter<
double>(
"BetaStar") * cm;
69 ret.femittance =
p.getParameter<
double>(
"Emittance") * cm;
70 ret.fTimeOffset =
p.getParameter<
double>(
"TimeOffset") * ns * c_light;
114 desc.add<
double>(
"X0")->setComment(
"in cm");
115 desc.add<
double>(
"Y0")->setComment(
"in cm");
116 desc.add<
double>(
"Z0")->setComment(
"in cm");
117 desc.add<
double>(
"SigmaZ")->setComment(
"in cm");
118 desc.add<
double>(
"BetaStar")->setComment(
"in cm");
119 desc.add<
double>(
"Emittance")->setComment(
"in cm");
120 desc.add<
double>(
"Alpha")->setComment(
"in radians");
121 desc.add<
double>(
"Phi")->setComment(
"in radians");
122 desc.add<
double>(
"TimeOffset")->setComment(
"in ns");
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ret
prodAgent to be discontinued
#define DEFINE_FWK_MODULE(type)
~BeamProfile2DB() override
cond::Time_t beginOfTime() const
void createOneIOV(const T &payload, cond::Time_t firstSinceTime, const std::string &recordName)
SimBeamSpotObjects beamSpot_
void addDefault(ParameterSetDescription const &psetDescription)
void analyze(edm::StreamID, const edm::Event &, const edm::EventSetup &) const override
BeamProfile2DB(const edm::ParameterSet &)