1 #ifndef RecoVertex_BeamSpotProducer_BeamSpotWrite2Txt_h 2 #define RecoVertex_BeamSpotProducer_BeamSpotWrite2Txt_h 22 outFile <<
"Runnumber " << bsContainer.
run << std::endl;
23 outFile <<
"BeginTimeOfFit " << bsContainer.
beginTimeOfFit <<
" " << bsContainer.
reftime[0] << std::endl;
24 outFile <<
"EndTimeOfFit " << bsContainer.
endTimeOfFit <<
" " << bsContainer.
reftime[1] << std::endl;
26 outFile <<
"Type " << bsContainer.
beamspot.
type() << std::endl;
27 outFile <<
"X0 " << bsContainer.
beamspot.
x0() << std::endl;
28 outFile <<
"Y0 " << bsContainer.
beamspot.
y0() << std::endl;
29 outFile <<
"Z0 " << bsContainer.
beamspot.
z0() << std::endl;
30 outFile <<
"sigmaZ0 " << bsContainer.
beamspot.
sigmaZ() << std::endl;
31 outFile <<
"dxdz " << bsContainer.
beamspot.
dxdz() << std::endl;
32 outFile <<
"dydz " << bsContainer.
beamspot.
dydz() << std::endl;
35 for (
int i = 0;
i<6; ++
i) {
36 outFile <<
"Cov("<<
i<<
",j) ";
37 for (
int j=0; j<7; ++j) {
43 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
double y0() const
y coordinate
void dumpBeamSpotTxt(std::ofstream &outFile, BeamSpotContainer const &bsContainer)
BeamType type() const
return beam type
double x0() const
x coordinate