1 #ifndef RecoVertex_BeamSpotProducer_BeamSpotWrite2Txt_h 2 #define RecoVertex_BeamSpotProducer_BeamSpotWrite2Txt_h 25 outFile.open(fileName.c_str());
27 outFile.open(fileName.c_str(), std::ios::app);
29 outFile <<
"Runnumber " << bsContainer.
run << std::endl;
30 outFile <<
"BeginTimeOfFit " << bsContainer.
beginTimeOfFit <<
" " << bsContainer.
reftime[0] << std::endl;
31 outFile <<
"EndTimeOfFit " << bsContainer.
endTimeOfFit <<
" " << bsContainer.
reftime[1] << std::endl;
33 outFile <<
"Type " << bsContainer.
beamspot.
type() << std::endl;
34 outFile <<
"X0 " << bsContainer.
beamspot.
x0() << std::endl;
35 outFile <<
"Y0 " << bsContainer.
beamspot.
y0() << std::endl;
36 outFile <<
"Z0 " << bsContainer.
beamspot.
z0() << std::endl;
37 outFile <<
"sigmaZ0 " << bsContainer.
beamspot.
sigmaZ() << std::endl;
38 outFile <<
"dxdz " << bsContainer.
beamspot.
dxdz() << std::endl;
39 outFile <<
"dydz " << bsContainer.
beamspot.
dydz() << std::endl;
42 for (
int i = 0;
i<6; ++
i) {
43 outFile <<
"Cov("<<
i<<
",j) ";
44 for (
int j=0; j<7; ++j) {
50 outFile <<
"Cov(6,j) 0 0 0 0 0 0 " << bsContainer.
beamspot.
covariance(6,6) << std::endl;
double z0() const
z coordinate
double emittanceX() const
additional information
double dydz() const
dydz slope
double emittanceY() const
double BeamWidthX() const
beam width X
double dxdz() const
dxdz slope
double sigmaZ() const
sigma z
double BeamWidthY() const
beam width Y
double covariance(int i, int j) const
(i,j)-th element of error matrix
void dumpBeamSpotTxt(std::string const &fileName, bool append, BeamSpotContainer const &bsContainer)
double y0() const
y coordinate
BeamType type() const
return beam type
double x0() const
x coordinate