58 std::cout <<
" please see plugins/BeamSpotWrite2DB.cc for format of text file." << std::endl;
71 double x,
y,
z,
sigmaZ,
dxdz,
dydz,beamWidthX,beamWidthY,
emittanceX,
emittanceY,betastar;
85 fasciiFile >> tag >> cov[0][0] >> cov[0][1] >> cov[0][2]>> cov[0][3] >> cov[0][4]>> cov[0][5] >> cov[0][6];
86 fasciiFile >> tag >> cov[1][0] >> cov[1][1] >> cov[1][2] >> cov[1][3]>> cov[1][4] >> cov[1][5]>> cov[1][6];
87 fasciiFile >> tag >> cov[2][0] >> cov[2][1] >> cov[2][2] >> cov[2][3]>> cov[2][4] >> cov[2][5]>> cov[2][6];
88 fasciiFile >> tag >> cov[3][0] >> cov[3][1] >> cov[3][2] >> cov[3][3]>> cov[3][4] >> cov[3][5]>> cov[3][6];
89 fasciiFile >> tag >> cov[4][0] >> cov[4][1] >> cov[4][2] >> cov[4][3]>> cov[4][4] >> cov[4][5]>> cov[4][6];
90 fasciiFile >> tag >> cov[5][0] >> cov[5][1] >> cov[5][2] >> cov[5][3]>> cov[5][4] >> cov[5][5]>> cov[5][6];
91 fasciiFile >> tag >> cov[6][0] >> cov[6][1] >> cov[6][2] >> cov[6][3]>> cov[6][4] >> cov[6][5]>> cov[6][6];
109 for (
int i=0;
i<7; ++
i) {
110 for (
int j=0; j<7; ++j) {
115 std::cout <<
" write results to DB..." << std::endl;
119 std::cout <<
"poolDBService available"<<std::endl;
121 std::cout <<
"new tag requested" << std::endl;
123 "BeamSpotObjectsRcd" );
126 std::cout <<
"no new tag requested" << std::endl;
128 "BeamSpotObjectsRcd" );
133 std::cout <<
"[BeamSpotWrite2DB] endJob done \n" << std::endl;
T getUntrackedParameter(std::string const &, T const &) const
std::string fasciiFileName
void SetSigmaZ(double val)
set sigma Z, RMS bunch length
void SetCovariance(int i, int j, double val)
set i,j element of the full covariance matrix 7x7
~BeamSpotWrite2DB() override
void Setdydz(double val)
set dydz slope, crossing angle in XZ
void appendSinceTime(T *payloadObj, cond::Time_t sinceTime, const std::string &recordName, bool withlogging=false)
#define DEFINE_FWK_MODULE(type)
bool isNewTagRequest(const std::string &recordName)
void SetEmittanceX(double val)
set emittance
cond::Time_t beginOfTime() const
void Setdxdz(double val)
set dxdz slope, crossing angle
void createNewIOV(T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
void SetBetaStar(double val)
set beta star
void SetType(int type)
set beam type
void SetEmittanceY(double val)
set emittance
cond::Time_t endOfTime() const
void SetBeamWidthX(double val)
set average transverse beam width X
void SetBeamWidthY(double val)
set average transverse beam width Y
void analyze(const edm::Event &, const edm::EventSetup &) override
cond::Time_t currentTime() const
BeamSpotWrite2DB(const edm::ParameterSet &)
void SetPosition(double x, double y, double z)
set XYZ position