38 double x,
y,
z,
sigmaZ,
dxdz,
dydz,
beamWidthX,
beamWidthY,
emittanceX,
emittanceY,
betastar;
46 findingRecord<BeamSpotObjectsRcd>();
52 fasciiFile >>
tag >>
x;
53 fasciiFile >>
tag >>
y;
54 fasciiFile >>
tag >>
z;
74 x =
params.getParameter<
double>(
"X0");
75 y =
params.getParameter<
double>(
"Y0");
76 z =
params.getParameter<
double>(
"Z0");
87 for (
int i = 0;
i < 7;
i++) {
88 for (
int j = 0;
j < 7;
j++)
93 cov[0][0] =
pow(
params.getParameter<
double>(
"errorX0"), 2);
94 cov[1][1] =
pow(
params.getParameter<
double>(
"errorY0"), 2);
95 cov[2][2] =
pow(
params.getParameter<
double>(
"errorZ0"), 2);
96 cov[3][3] =
pow(
params.getParameter<
double>(
"errorSigmaZ"), 2);
97 cov[4][4] =
pow(
params.getParameter<
double>(
"errordxdz"), 2);
98 cov[5][5] =
pow(
params.getParameter<
double>(
"errordydz"), 2);
99 cov[6][6] =
pow(
params.getParameter<
double>(
"errorWidth"), 2);
106 ReturnType adummy = std::make_unique<BeamSpotObjects>();
108 adummy->setPosition(
x,
y,
z);
109 adummy->setSigmaZ(
sigmaZ);
110 adummy->setdxdz(
dxdz);
111 adummy->setdydz(
dydz);
114 for (
int i = 0;
i < 7;
i++) {
115 for (
int j = 0;
j < 7;
j++) {
116 adummy->setCovariance(
i,
j,
cov[
i][
j]);
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
std::unique_ptr< BeamSpotObjects > ReturnType
edm::FileInPath inputFilename_
std::string fullPath() const
static const IOVSyncValue & endOfTime()
std::pair< Time_t, Time_t > ValidityInterval
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &key, const edm::IOVSyncValue &syncValue, edm::ValidityInterval &oValidity) override
static const IOVSyncValue & beginOfTime()
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
BeamSpotFakeConditions(const edm::ParameterSet ¶ms)
~BeamSpotFakeConditions() override
ReturnType produce(const BeamSpotObjectsRcd &record)