|
|
Go to the documentation of this file.
74 if (iConfig.
exists(
"IOVStartRun") && iConfig.
exists(
"IOVStartLumi")) {
109 double x,
y,
z,
sigmaZ,
dxdz,
dydz, beamWidthX, beamWidthY,
emittanceX,
emittanceY, betastar;
111 int type, lastAnalyzedLumi, firstAnalyzedLumi, lastAnalyzedRun, lastAnalyzedFill;
128 fasciiFile >>
tag >> cov[0][0] >> cov[0][1] >> cov[0][2] >> cov[0][3] >> cov[0][4] >> cov[0][5] >> cov[0][6];
129 fasciiFile >>
tag >> cov[1][0] >> cov[1][1] >> cov[1][2] >> cov[1][3] >> cov[1][4] >> cov[1][5] >> cov[1][6];
130 fasciiFile >>
tag >> cov[2][0] >> cov[2][1] >> cov[2][2] >> cov[2][3] >> cov[2][4] >> cov[2][5] >> cov[2][6];
131 fasciiFile >>
tag >> cov[3][0] >> cov[3][1] >> cov[3][2] >> cov[3][3] >> cov[3][4] >> cov[3][5] >> cov[3][6];
132 fasciiFile >>
tag >> cov[4][0] >> cov[4][1] >> cov[4][2] >> cov[4][3] >> cov[4][4] >> cov[4][5] >> cov[4][6];
133 fasciiFile >>
tag >> cov[5][0] >> cov[5][1] >> cov[5][2] >> cov[5][3] >> cov[5][4] >> cov[5][5] >> cov[5][6];
134 fasciiFile >>
tag >> cov[6][0] >> cov[6][1] >> cov[6][2] >> cov[6][3] >> cov[6][4] >> cov[6][5] >> cov[6][6];
139 lastAnalyzedFill = -999;
141 std::cout <<
"---- Parsed these parameters from input txt file ----" << std::endl;
142 std::cout <<
" lastAnalyzedRun : " << lastAnalyzedRun << std::endl;
143 std::cout <<
" lastAnalyzedFill : " << lastAnalyzedFill << std::endl;
144 std::cout <<
" firstAnalyzedLumi : " << firstAnalyzedLumi << std::endl;
145 std::cout <<
" lastAnalyzedLumi : " << lastAnalyzedLumi << std::endl;
153 std::cout <<
" beamWidthX : " << beamWidthX << std::endl;
154 std::cout <<
" beamWidthY : " << beamWidthY << std::endl;
155 std::cout <<
" Cov(0,j) : " << cov[0][0] <<
" " << cov[0][1] <<
" " << cov[0][2] <<
" " << cov[0][3] <<
" "
156 << cov[0][4] <<
" " << cov[0][5] <<
" " << cov[0][6] << std::endl;
157 std::cout <<
" Cov(1,j) : " << cov[1][0] <<
" " << cov[1][1] <<
" " << cov[1][2] <<
" " << cov[1][3] <<
" "
158 << cov[1][4] <<
" " << cov[1][5] <<
" " << cov[1][6] << std::endl;
159 std::cout <<
" Cov(2,j) : " << cov[2][0] <<
" " << cov[2][1] <<
" " << cov[2][2] <<
" " << cov[2][3] <<
" "
160 << cov[2][4] <<
" " << cov[2][5] <<
" " << cov[2][6] << std::endl;
161 std::cout <<
" Cov(3,j) : " << cov[3][0] <<
" " << cov[3][1] <<
" " << cov[3][2] <<
" " << cov[3][3] <<
" "
162 << cov[3][4] <<
" " << cov[3][5] <<
" " << cov[3][6] << std::endl;
163 std::cout <<
" Cov(4,j) : " << cov[4][0] <<
" " << cov[4][1] <<
" " << cov[4][2] <<
" " << cov[4][3] <<
" "
164 << cov[4][4] <<
" " << cov[4][5] <<
" " << cov[4][6] << std::endl;
165 std::cout <<
" Cov(5,j) : " << cov[5][0] <<
" " << cov[5][1] <<
" " << cov[5][2] <<
" " << cov[5][3] <<
" "
166 << cov[5][4] <<
" " << cov[5][5] <<
" " << cov[5][6] << std::endl;
167 std::cout <<
" Cov(6,j) : " << cov[6][0] <<
" " << cov[6][1] <<
" " << cov[6][2] <<
" " << cov[6][3] <<
" "
168 << cov[6][4] <<
" " << cov[6][5] <<
" " << cov[6][6] << std::endl;
171 std::cout <<
" betastar : " << betastar << std::endl;
172 std::cout <<
"-----------------------------------------------------" << std::endl;
190 for (
int i = 0;
i < 7; ++
i) {
191 for (
int j = 0;
j < 7; ++
j) {
196 std::cout <<
" Writing results to DB..." << std::endl;
200 std::cout <<
"poolDBService available" << std::endl;
202 std::cout <<
"new tag requested" << std::endl;
209 abeam, poolDbService->
beginOfTime(), poolDbService->
endOfTime(),
"BeamSpotOnlineHLTObjectsRcd");
211 std::cout <<
"no new tag requested" << std::endl;
217 abeam, poolDbService->
currentTime(),
"BeamSpotOnlineHLTObjectsRcd");
221 std::cout <<
"[BeamSpotOnlineHLTRcdWriter] endJob done \n" << std::endl;
std::string fasciiFileName
void SetBetaStar(double val)
set beta star
cond::Time_t beginOfTime() const
void appendSinceTime(const T *payloadObj, cond::Time_t sinceTime, const std::string &recordName)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void SetBeamWidthY(double val)
set average transverse beam width Y
T getUntrackedParameter(std::string const &, T const &) const
void SetSigmaZ(double val)
set sigma Z, RMS bunch length
#define DEFINE_FWK_MODULE(type)
void createNewIOV(const T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t, const std::string &recordName)
void SetEmittanceY(double val)
set emittance
void analyze(const edm::Event &, const edm::EventSetup &) override
void SetPosition(double x, double y, double z)
set XYZ position
bool exists(std::string const ¶meterName) const
checks if a parameter exists
void SetType(int type)
set beam type
void SetEmittanceX(double val)
set emittance
void SetCovariance(int i, int j, double val)
set i,j element of the full covariance matrix 7x7
unsigned long long Time_t
void Setdxdz(double val)
set dxdz slope, crossing angle
cond::Time_t pack(uint32_t, uint32_t)
void SetLastAnalyzedFill(int val)
cond::Time_t endOfTime() const
void SetLastAnalyzedLumi(int val)
Setters Methods.
void SetBeamWidthX(double val)
set average transverse beam width X
BeamSpotOnlineHLTRcdWriter(const edm::ParameterSet &)
bool isNewTagRequest(const std::string &recordName)
unsigned long long uint64_t
void SetLastAnalyzedRun(int val)
void addDefault(ParameterSetDescription const &psetDescription)
void Setdydz(double val)
set dydz slope, crossing angle in XZ
~BeamSpotOnlineHLTRcdWriter() override
cond::Time_t currentTime() const