|
|
Go to the documentation of this file.
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;
115 desc.add<
double>(
"X0")->setComment(
"in cm");
116 desc.add<
double>(
"Y0")->setComment(
"in cm");
117 desc.add<
double>(
"Z0")->setComment(
"in cm");
118 desc.add<
double>(
"SigmaZ")->setComment(
"in cm");
119 desc.add<
double>(
"BetaStar")->setComment(
"in cm");
120 desc.add<
double>(
"Emittance")->setComment(
"in cm");
121 desc.add<
double>(
"Alpha")->setComment(
"in radians");
122 desc.add<
double>(
"Phi")->setComment(
"in radians");
123 desc.add<
double>(
"TimeOffset")->setComment(
"in ns");
ret
prodAgent to be discontinued
cond::Time_t beginOfTime() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void analyze(edm::StreamID, const edm::Event &, const edm::EventSetup &) const override
#define DEFINE_FWK_MODULE(type)
void createNewIOV(const T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t, const std::string &recordName)
BeamProfile2DB(const edm::ParameterSet &)
~BeamProfile2DB() override
cond::Time_t endOfTime() const
SimBeamSpotObjects beamSpot_
void addDefault(ParameterSetDescription const &psetDescription)