11 #include <boost/shared_ptr.hpp>
37 double x,
y,
z,
sigmaZ,
dxdz,
dydz,
beamWidthX,
beamWidthY,
emittanceX,
emittanceY,
betastar;
47 findingRecord<BeamSpotObjectsRcd>();
49 if (getDataFromFile_) {
53 fasciiFile >>
tag >>
x;
54 fasciiFile >>
tag >>
y;
55 fasciiFile >>
tag >>
z;
63 fasciiFile >>
tag >> cov[1][0] >> cov[1][1] >> cov[1][2] >> cov[1][3]>> cov[1][4] >> cov[1][5]>> cov[1][6]
65 fasciiFile >>
tag >> cov[2][0] >> cov[2][1] >> cov[2][2] >> cov[2][3]>> cov[2][4] >> cov[2][5]>> cov[2][6
67 fasciiFile >>
tag >> cov[3][0] >> cov[3][1] >> cov[3][2] >> cov[3][3]>> cov[3][4] >> cov[3][5]>> cov[3][6
69 fasciiFile >>
tag >> cov[4][0] >> cov[4][1] >> cov[4][2] >> cov[4][3]>> cov[4][4] >> cov[4][5]>> cov[4][6]
71 fasciiFile >>
tag >> cov[5][0] >> cov[5][1] >> cov[5][2] >> cov[5][3]>> cov[5][4] >> cov[5][5]>> cov[5][6]
73 fasciiFile >>
tag >> cov[6][0] >> cov[6][1] >> cov[6][2] >> cov[6][3]>> cov[6][4] >> cov[6][5]>> cov[6][6]
95 for (
int i=0;
i<7;
i++ ) {
96 for (
int j=0;
j<7;
j++)
cov[
i][
j] = 0.0;
125 for (
int i=0;
i<7;
i++ ) {
126 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
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
virtual ~BeamSpotFakeConditions()
void SetBetaStar(double val)
set beta star
boost::shared_ptr< BeamSpotObjects > ReturnType
#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
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