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;
123 for (
int i=0;
i<7;
i++ ) {
124 for (
int j=0;
j<7;
j++) {
T getParameter(std::string const &) const
edm::FileInPath inputFilename_
void SetSigmaZ(double val)
set sigma Z, RMS bunch length
static const IOVSyncValue & endOfTime()
std::pair< Time_t, Time_t > ValidityInterval
void SetCovariance(int i, int j, double val)
set i,j element of the full covariance matrix 7x7
void Setdydz(double val)
set dydz slope, crossing angle in XZ
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()
void SetEmittanceX(double val)
set emittance
void Setdxdz(double val)
set dxdz slope, crossing angle
virtual ~BeamSpotFakeConditions()
void SetBetaStar(double val)
set beta star
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
void SetEmittanceY(double val)
set emittance
void SetBeamWidthX(double val)
set average transverse beam width X
void SetBeamWidthY(double val)
set average transverse beam width Y
std::shared_ptr< BeamSpotObjects > ReturnType
BeamSpotFakeConditions(const edm::ParameterSet ¶ms)
std::string fullPath() const
Power< A, B >::type pow(const A &a, const B &b)
ReturnType produce(const BeamSpotObjectsRcd &record)
void SetPosition(double x, double y, double z)
set XYZ position