38 double x,
y,
z,
sigmaZ,
dxdz,
dydz,
beamWidthX,
beamWidthY,
emittanceX,
emittanceY,
betastar;
46 findingRecord<BeamSpotObjectsRcd>();
48 if (getDataFromFile_) {
52 fasciiFile >>
tag >>
x;
53 fasciiFile >>
tag >>
y;
54 fasciiFile >>
tag >>
z;
61 fasciiFile >>
tag >> cov[1][0] >> cov[1][1] >> cov[1][2] >> cov[1][3] >> cov[1][4] >> cov[1][5] >> cov[1][6];
62 fasciiFile >>
tag >> cov[2][0] >> cov[2][1] >> cov[2][2] >> cov[2][3] >> cov[2][4] >> cov[2][5] >> cov[2][6];
63 fasciiFile >>
tag >> cov[3][0] >> cov[3][1] >> cov[3][2] >> cov[3][3] >> cov[3][4] >> cov[3][5] >> cov[3][6];
64 fasciiFile >>
tag >> cov[4][0] >> cov[4][1] >> cov[4][2] >> cov[4][3] >> cov[4][4] >> cov[4][5] >> cov[4][6];
65 fasciiFile >>
tag >> cov[5][0] >> cov[5][1] >> cov[5][2] >> cov[5][3] >> cov[5][4] >> cov[5][5] >> cov[5][6];
66 fasciiFile >>
tag >> cov[6][0] >> cov[6][1] >> cov[6][2] >> cov[6][3] >> cov[6][4] >> cov[6][5] >> cov[6][6];
87 for (
int i = 0;
i < 7;
i++) {
88 for (
int j = 0;
j < 7;
j++)
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_
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()
tuple key
prepare the HTCondor submission files and eventually submit them
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
T getParameter(std::string const &) const
BeamSpotFakeConditions(const edm::ParameterSet ¶ms)
std::string fullPath() const
~BeamSpotFakeConditions() override
Power< A, B >::type pow(const A &a, const B &b)
ReturnType produce(const BeamSpotObjectsRcd &record)