35 double x,
y,
z,
sigmaZ,
dxdz,
dydz,
beamWidthX,
beamWidthY,
emittanceX,
emittanceY,
betastar;
45 findingRecord<BeamSpotObjectsRcd>();
47 if (getDataFromFile_) {
51 fasciiFile >>
tag >>
x;
52 fasciiFile >>
tag >>
y;
53 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]
63 fasciiFile >>
tag >> cov[2][0] >> cov[2][1] >> cov[2][2] >> cov[2][3]>> cov[2][4] >> cov[2][5]>> cov[2][6
65 fasciiFile >>
tag >> cov[3][0] >> cov[3][1] >> cov[3][2] >> cov[3][3]>> cov[3][4] >> cov[3][5]>> cov[3][6
67 fasciiFile >>
tag >> cov[4][0] >> cov[4][1] >> cov[4][2] >> cov[4][3]>> cov[4][4] >> cov[4][5]>> cov[4][6]
69 fasciiFile >>
tag >> cov[5][0] >> cov[5][1] >> cov[5][2] >> cov[5][3]>> cov[5][4] >> cov[5][5]>> cov[5][6]
71 fasciiFile >>
tag >> cov[6][0] >> cov[6][1] >> cov[6][2] >> cov[6][3]>> cov[6][4] >> cov[6][5]>> cov[6][6]
93 for (
int i=0;
i<7;
i++ ) {
94 for (
int j=0; j<7; j++)
cov[
i][j] = 0.0;
115 ReturnType adummy = std::make_unique<BeamSpotObjects>();
117 adummy->SetPosition(
x,
y ,
z );
118 adummy->SetSigmaZ(
sigmaZ);
119 adummy->Setdxdz(
dxdz );
120 adummy->Setdydz(
dydz );
123 for (
int i=0;
i<7;
i++ ) {
124 for (
int j=0; j<7; j++) {
126 adummy->SetCovariance(
i, j,
cov[
i][j] );
T getParameter(std::string const &) const
std::unique_ptr< BeamSpotObjects > ReturnType
edm::FileInPath inputFilename_
static const IOVSyncValue & endOfTime()
std::pair< Time_t, Time_t > ValidityInterval
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
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)
std::string fullPath() const
~BeamSpotFakeConditions() override
Power< A, B >::type pow(const A &a, const B &b)
ReturnType produce(const BeamSpotObjectsRcd &record)