|
|
Go to the documentation of this file.
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]);
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &key, const edm::IOVSyncValue &syncValue, edm::ValidityInterval &oValidity) override
BeamSpotFakeConditions(const edm::ParameterSet ¶ms)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
ReturnType produce(const BeamSpotObjectsRcd &record)
edm::FileInPath inputFilename_
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
std::unique_ptr< BeamSpotObjects > ReturnType
~BeamSpotFakeConditions() override
static const IOVSyncValue & endOfTime()
std::pair< Time_t, Time_t > ValidityInterval
static const IOVSyncValue & beginOfTime()
Power< A, B >::type pow(const A &a, const B &b)
std::string fullPath() const