CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
reco::BeamSpot Class Reference

#include <BeamSpot.h>

Public Types

enum  { dimension = 7 }
 
enum  { dim3 = 3 }
 
enum  { resdim = 2 }
 
enum  BeamType { Unknown = -1, Fake = 0, LHC = 1, Tracker = 2 }
 beam spot flags More...
 
typedef math::Error< dim3 >::type Covariance3DMatrix
 
typedef math::Error< dimension >::type CovarianceMatrix
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef math::Error< resdim >::type ResCovMatrix
 

Public Member Functions

 BeamSpot ()
 default constructor More...
 
 BeamSpot (const Point &point, double sigmaZ, double dxdz, double dydz, double BeamWidthX, const CovarianceMatrix &error, BeamType type=Unknown)
 constructor from values More...
 
double beamWidthFromBeta (double z, double e) const
 
double BeamWidthX () const
 beam width X More...
 
double BeamWidthXError () const
 error on beam width X, assume error in X = Y More...
 
double BeamWidthY () const
 beam width Y More...
 
double BeamWidthYError () const
 error on beam width Y, assume error in X = Y More...
 
double betaStar () const
 
double covariance (int i, int j) const
 (i,j)-th element of error matrix More...
 
CovarianceMatrix covariance () const
 return full covariance matrix of dim 7 More...
 
Covariance3DMatrix covariance3D () const
 return only 3D position covariance matrix More...
 
double dxdz () const
 dxdz slope More...
 
double dxdzError () const
 error on dxdz More...
 
double dydz () const
 dydz slope More...
 
double dydzError () const
 error on dydz More...
 
double emittanceX () const
 additional information More...
 
double emittanceY () const
 
const Pointposition () const
 position More...
 
const Point position (const double z) const
 position of the beam spot at a given z value (it takes into account the dxdz and dydz slopes) More...
 
void print (std::stringstream &ss) const
 print information More...
 
Covariance3DMatrix rotatedCovariance3D () const
 
void setBeamWidthX (double v)
 
void setBeamWidthY (double v)
 
void setbetaStar (double v)
 
void setEmittanceX (double v)
 
void setEmittanceY (double v)
 
void setType (BeamType type)
 set beam type More...
 
double sigmaZ () const
 sigma z More...
 
double sigmaZ0Error () const
 error on sigma z More...
 
BeamType type () const
 return beam type More...
 
double x (const double z) const
 x coordinate of the beeam spot position at a given z value (it takes into account the dxdz slope) More...
 
double x0 () const
 x coordinate More...
 
double x0Error () const
 error on x More...
 
double y (const double z) const
 y coordinate of the beeam spot position at a given z value (it takes into account the dydz slope) More...
 
double y0 () const
 y coordinate More...
 
double y0Error () const
 error on y More...
 
double z0 () const
 z coordinate More...
 
double z0Error () const
 error on z More...
 

Private Attributes

Double32_t BeamWidthX_
 
Double32_t BeamWidthY_
 
Double32_t betaStar_
 
Double32_t dxdz_
 
Double32_t dydz_
 
Double32_t emittanceX_
 
Double32_t emittanceY_
 
CovarianceMatrix error_
 errors More...
 
Point position_
 position More...
 
Double32_t sigmaZ_
 
BeamType type_
 

Detailed Description

Reconstructed beam spot object which provides position, error, and width of the beam position.

Author
Francisco Yumiceva, Fermilab (yumic.nosp@m.eva@.nosp@m.fnal..nosp@m.gov)

Definition at line 21 of file BeamSpot.h.

Member Typedef Documentation

◆ Covariance3DMatrix

Definition at line 31 of file BeamSpot.h.

◆ CovarianceMatrix

Definition at line 29 of file BeamSpot.h.

◆ Point

point in the space

Definition at line 27 of file BeamSpot.h.

◆ ResCovMatrix

Definition at line 33 of file BeamSpot.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
dimension 

Definition at line 28 of file BeamSpot.h.

◆ anonymous enum

anonymous enum
Enumerator
dim3 

Definition at line 30 of file BeamSpot.h.

30 { dim3 = 3 };

◆ anonymous enum

anonymous enum
Enumerator
resdim 

Definition at line 32 of file BeamSpot.h.

◆ BeamType

beam spot flags

Enumerator
Unknown 
Fake 
LHC 
Tracker 

Definition at line 24 of file BeamSpot.h.

Constructor & Destructor Documentation

◆ BeamSpot() [1/2]

reco::BeamSpot::BeamSpot ( )

default constructor

Definition at line 23 of file BeamSpot.cc.

References dqmiolumiharvest::j, isotrackApplyRegressor::k, and reco::Unknown.

23  {
24  // initialize
25  position_ = Point(0., 0., 0.);
26  sigmaZ_ = 0.;
27  dxdz_ = 0.;
28  dydz_ = 0.;
29  BeamWidthX_ = 0.;
30  BeamWidthY_ = 0;
31  for (int j = 0; j < 7; j++) {
32  for (int k = j; k < 7; k++) {
33  error_(j, k) = 0.;
34  }
35  }
36  type_ = Unknown;
37  emittanceX_ = 0;
38  emittanceY_ = 0;
39  betaStar_ = 0;
40  }
Double32_t dxdz_
Definition: BeamSpot.h:152
Double32_t emittanceX_
Definition: BeamSpot.h:154
math::XYZPoint Point
point in the space
Definition: BeamSpot.h:27
CovarianceMatrix error_
errors
Definition: BeamSpot.h:147
Double32_t BeamWidthX_
Definition: BeamSpot.h:150
Point position_
position
Definition: BeamSpot.h:145
Double32_t emittanceY_
Definition: BeamSpot.h:155
Double32_t BeamWidthY_
Definition: BeamSpot.h:151
BeamType type_
Definition: BeamSpot.h:158
Double32_t betaStar_
Definition: BeamSpot.h:156
Double32_t sigmaZ_
Definition: BeamSpot.h:149
Double32_t dydz_
Definition: BeamSpot.h:153

◆ BeamSpot() [2/2]

reco::BeamSpot::BeamSpot ( const Point point,
double  sigmaZ,
double  dxdz,
double  dydz,
double  BeamWidthX,
const CovarianceMatrix error,
BeamType  type = Unknown 
)
inline

constructor from values

Definition at line 39 of file BeamSpot.h.

References BeamWidthX(), BeamWidthX_, BeamWidthY_, betaStar_, dxdz(), dxdz_, dydz(), dydz_, emittanceX_, emittanceY_, relativeConstraints::error, error_, point, position_, sigmaZ(), sigmaZ_, type(), and type_.

45  {
46  position_ = point;
47  sigmaZ_ = sigmaZ;
48  dxdz_ = dxdz;
49  dydz_ = dydz;
52  error_ = error;
53  type_ = type;
55  betaStar_ = 0;
56  };
double BeamWidthX() const
beam width X
Definition: BeamSpot.h:82
Double32_t dxdz_
Definition: BeamSpot.h:152
Double32_t emittanceX_
Definition: BeamSpot.h:154
double dydz() const
dydz slope
Definition: BeamSpot.h:80
CovarianceMatrix error_
errors
Definition: BeamSpot.h:147
Double32_t BeamWidthX_
Definition: BeamSpot.h:150
Point position_
position
Definition: BeamSpot.h:145
Double32_t emittanceY_
Definition: BeamSpot.h:155
double sigmaZ() const
sigma z
Definition: BeamSpot.h:76
double dxdz() const
dxdz slope
Definition: BeamSpot.h:78
Double32_t BeamWidthY_
Definition: BeamSpot.h:151
BeamType type_
Definition: BeamSpot.h:158
Double32_t betaStar_
Definition: BeamSpot.h:156
Double32_t sigmaZ_
Definition: BeamSpot.h:149
BeamType type() const
return beam type
Definition: BeamSpot.h:122
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
Double32_t dydz_
Definition: BeamSpot.h:153

Member Function Documentation

◆ beamWidthFromBeta()

double reco::BeamSpot::beamWidthFromBeta ( double  z,
double  e 
) const
inline

Definition at line 132 of file BeamSpot.h.

References betaStar_, MillePedeFileConverter_cfg::e, position_, funct::pow(), and mathSSE::sqrt().

132  {
133  return sqrt(e * betaStar_ * (1 + pow((z - position_.Z()) / betaStar_, 2)));
134  }
Point position_
position
Definition: BeamSpot.h:145
T sqrt(T t)
Definition: SSEVec.h:23
Double32_t betaStar_
Definition: BeamSpot.h:156
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ BeamWidthX()

double reco::BeamSpot::BeamWidthX ( ) const
inline

◆ BeamWidthXError()

double reco::BeamSpot::BeamWidthXError ( ) const
inline

◆ BeamWidthY()

double reco::BeamSpot::BeamWidthY ( ) const
inline

◆ BeamWidthYError()

double reco::BeamSpot::BeamWidthYError ( ) const
inline

◆ betaStar()

double reco::BeamSpot::betaStar ( ) const
inline

Definition at line 131 of file BeamSpot.h.

References betaStar_.

Referenced by beamspot::dumpBeamSpotTxt(), and BeamFitter::dumpTxtFile().

131 { return betaStar_; }
Double32_t betaStar_
Definition: BeamSpot.h:156

◆ covariance() [1/2]

double reco::BeamSpot::covariance ( int  i,
int  j 
) const
inline

(i,j)-th element of error matrix

Definition at line 108 of file BeamSpot.h.

References error_, mps_fire::i, and dqmiolumiharvest::j.

Referenced by beamspot::dumpBeamSpotTxt(), BeamFitter::dumpTxtFile(), BSFitter::Fit(), BeamFitter::runPVandTrkFitter(), and BeamFitter::write2DB().

108 { return error_(i, j); }
CovarianceMatrix error_
errors
Definition: BeamSpot.h:147

◆ covariance() [2/2]

CovarianceMatrix reco::BeamSpot::covariance ( void  ) const
inline

return full covariance matrix of dim 7

Definition at line 110 of file BeamSpot.h.

References error_.

110 { return error_; }
CovarianceMatrix error_
errors
Definition: BeamSpot.h:147

◆ covariance3D()

Covariance3DMatrix reco::BeamSpot::covariance3D ( ) const
inline

return only 3D position covariance matrix

Definition at line 112 of file BeamSpot.h.

References error_, dqmiolumiharvest::j, isotrackApplyRegressor::k, and makeMuonMisalignmentScenario::matrix.

Referenced by PF_PU_AssoMapAlgos::GetCleanedKshort(), PF_PU_AssoMapAlgos::GetCleanedLambda(), and PF_PU_AssoMapAlgos::GetCleanedNI().

112  {
114  for (int j = 0; j < 3; j++) {
115  for (int k = j; k < 3; k++) {
116  matrix(j, k) = error_(j, k);
117  }
118  }
119  return matrix;
120  };
math::Error< dim3 >::type Covariance3DMatrix
Definition: BeamSpot.h:31
CovarianceMatrix error_
errors
Definition: BeamSpot.h:147

◆ dxdz()

double reco::BeamSpot::dxdz ( ) const
inline

◆ dxdzError()

double reco::BeamSpot::dxdzError ( ) const
inline

error on dxdz

Definition at line 94 of file BeamSpot.h.

References error_, and mathSSE::sqrt().

Referenced by AlcaBeamSpotManager::createWeightedPayloads(), BeamFitter::runFitterNoTxt(), and BeamMonitorBx::weight().

94 { return sqrt(error_(4, 4)); }
CovarianceMatrix error_
errors
Definition: BeamSpot.h:147
T sqrt(T t)
Definition: SSEVec.h:23

◆ dydz()

double reco::BeamSpot::dydz ( ) const
inline

◆ dydzError()

double reco::BeamSpot::dydzError ( ) const
inline

error on dydz

Definition at line 96 of file BeamSpot.h.

References error_, and mathSSE::sqrt().

Referenced by AlcaBeamSpotManager::createWeightedPayloads(), BeamFitter::runFitterNoTxt(), and BeamMonitorBx::weight().

96 { return sqrt(error_(5, 5)); }
CovarianceMatrix error_
errors
Definition: BeamSpot.h:147
T sqrt(T t)
Definition: SSEVec.h:23

◆ emittanceX()

double reco::BeamSpot::emittanceX ( ) const
inline

additional information

Definition at line 129 of file BeamSpot.h.

References emittanceX_.

Referenced by beamspot::dumpBeamSpotTxt(), and BeamFitter::dumpTxtFile().

129 { return emittanceX_; }
Double32_t emittanceX_
Definition: BeamSpot.h:154

◆ emittanceY()

double reco::BeamSpot::emittanceY ( ) const
inline

Definition at line 130 of file BeamSpot.h.

References emittanceY_.

Referenced by beamspot::dumpBeamSpotTxt(), and BeamFitter::dumpTxtFile().

130 { return emittanceY_; }
Double32_t emittanceY_
Definition: BeamSpot.h:155

◆ position() [1/2]

const Point& reco::BeamSpot::position ( ) const
inline

position

Definition at line 59 of file BeamSpot.h.

References position_.

Referenced by EwkMuDQM::analyze(), EwkMuLumiMonitorDQM::analyze(), ElectronConversionRejectionValidator::analyze(), HcalRaddamMuon::analyze(), IsoTrackCalibration::analyze(), HcalIsoTrkSimAnalyzer::analyze(), HLTExoticaSubAnalysis::analyze(), IsoTrackCalib::analyze(), HcalIsoTrkAnalyzer::analyze(), IsoTrig::analyze(), IsolatedTracksHcalScale::analyze(), IsolatedTracksNxN::analyze(), TwoBodyDecayVirtualMeasurement::beamSpotPosition(), GsfElectronAlgo::createElectron(), muonisolation::TrackExtractor::deposit(), muonisolation::PixelTrackExtractor::deposit(), reco::TrackBase::dxy(), reco::TrackBase::dxyError(), egHLT::OffHelper::fillHLTData(), WZInterestingEventSelector::filter(), LeptonSkimming::filter(), CSCEfficiency::filter(), PFECALSuperClusterAlgo::finalizeSuperCluster(), ConversionSeedFinder::findLayers(), V0Fitter::fitAll(), PF_PU_AssoMapAlgos::GetCleanedKshort(), PF_PU_AssoMapAlgos::GetCleanedLambda(), PF_PU_AssoMapAlgos::GetCleanedNI(), HLTMuonTrackMassFilter::hltFilter(), HLTMuonL2FromL1TPreFilter::hltFilter(), HLTMuonL2PreFilter::hltFilter(), HLTPMMassFilter::hltFilter(), cms::MuonTCMETValueMapProducer::isGoodMuon(), cms::MuonTCMETValueMapProducer::isGoodTrack(), TCMETAlgo::isGoodTrack(), L3MuonTrajectoryBuilder::makeTkCandCollection(), OutInConversionSeedFinder::makeTrackState(), DQMExample_Step1::MediumEle(), EG9X105XObjectUpdateModifier::modifyObject(), GsfEleConversionVetoCut::operator()(), HIProtoTrackFilter::operator()(), EgammaHLTElectronTrackIsolationProducers::produce(), pat::PATPhotonProducer::produce(), MuIsolatorResultProducer< BT >::produce(), pat::PATElectronProducer::produce(), L1FPGATrackProducer::produce(), BeamFitter::readEvent(), PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::rejectTrack(), CutBasedElectronID::robustSelection(), EgammaHLTPixelMatchElectronAlgo::run(), CosmicTrackSelector::select(), MultiTrackSelector::select(), GsfEleConversionVetoCut::value(), and BeamFitter::write2DB().

59 { return position_; }
Point position_
position
Definition: BeamSpot.h:145

◆ position() [2/2]

const BeamSpot::Point reco::BeamSpot::position ( const double  z) const

position of the beam spot at a given z value (it takes into account the dxdz and dydz slopes)

Definition at line 42 of file BeamSpot.cc.

References x.

42  {
43  Point pos(x(z), y(z), z);
44  return pos;
45  }
double y(const double z) const
y coordinate of the beeam spot position at a given z value (it takes into account the dydz slope) ...
Definition: BeamSpot.h:70
double x(const double z) const
x coordinate of the beeam spot position at a given z value (it takes into account the dxdz slope) ...
Definition: BeamSpot.h:68
Structure Point Contains parameters of Gaussian fits to DMRs.

◆ print()

void reco::BeamSpot::print ( std::stringstream &  ss) const

print information

Definition at line 47 of file BeamSpot.cc.

References simBeamSpotPI::betaStar, dxdz, dydz, BeamSpotFakeParameters_cfi::emittanceX, BeamSpotFakeParameters_cfi::emittanceY, beamSpotPI::sigmaZ, and contentValuesCheck::ss.

47  {
48  ss << "-----------------------------------------------------\n"
49  << " Beam Spot Data\n\n"
50  << " Beam type = " << type() << "\n"
51  << " X0 = " << x0() << " +/- " << x0Error() << " [cm]\n"
52  << " Y0 = " << y0() << " +/- " << y0Error() << " [cm]\n"
53  << " Z0 = " << z0() << " +/- " << z0Error() << " [cm]\n"
54  << " Sigma Z0 = " << sigmaZ() << " +/- " << sigmaZ0Error() << " [cm]\n"
55  << " dxdz = " << dxdz() << " +/- " << dxdzError() << " [radians]\n"
56  << " dydz = " << dydz() << " +/- " << dydzError() << " [radians]\n"
57  << " Beam width X = " << BeamWidthX() << " +/- " << BeamWidthXError() << " [cm]\n"
58  << " Beam width Y = " << BeamWidthY() << " +/- " << BeamWidthYError() << " [cm]\n"
59  << " EmittanceX = " << emittanceX() << " [cm]\n"
60  << " EmittanceY = " << emittanceY() << " [cm]\n"
61  << " beta-star = " << betaStar() << " [cm]\n"
62  << "-----------------------------------------------------\n\n";
63  }
double BeamWidthX() const
beam width X
Definition: BeamSpot.h:82
double BeamWidthYError() const
error on beam width Y, assume error in X = Y
Definition: BeamSpot.h:101
double betaStar() const
Definition: BeamSpot.h:131
double x0Error() const
error on x
Definition: BeamSpot.h:86
double dydz() const
dydz slope
Definition: BeamSpot.h:80
double z0Error() const
error on z
Definition: BeamSpot.h:90
double emittanceY() const
Definition: BeamSpot.h:130
double sigmaZ0Error() const
error on sigma z
Definition: BeamSpot.h:92
double x0() const
x coordinate
Definition: BeamSpot.h:61
double BeamWidthY() const
beam width Y
Definition: BeamSpot.h:84
double y0() const
y coordinate
Definition: BeamSpot.h:63
double BeamWidthXError() const
error on beam width X, assume error in X = Y
Definition: BeamSpot.h:99
double sigmaZ() const
sigma z
Definition: BeamSpot.h:76
double emittanceX() const
additional information
Definition: BeamSpot.h:129
double dxdz() const
dxdz slope
Definition: BeamSpot.h:78
double z0() const
z coordinate
Definition: BeamSpot.h:65
double dydzError() const
error on dydz
Definition: BeamSpot.h:96
double dxdzError() const
error on dxdz
Definition: BeamSpot.h:94
BeamType type() const
return beam type
Definition: BeamSpot.h:122
double y0Error() const
error on y
Definition: BeamSpot.h:88

◆ rotatedCovariance3D()

BeamSpot::Covariance3DMatrix reco::BeamSpot::rotatedCovariance3D ( ) const

Definition at line 73 of file BeamSpot.cc.

References dxdz, dydz, makeMuonMisalignmentScenario::matrix, funct::pow(), idealTransformation::rotation, ALPAKA_ACCELERATOR_NAMESPACE::brokenline::rotationMatrix(), and beamSpotPI::sigmaZ.

Referenced by reco::TrackBase::dxyError(), V0Fitter::fitAll(), and TrajectoryStateClosestToBeamLine::transverseImpactParameter().

73  {
74  AlgebraicVector3 newZ(dxdz(), dydz(), 1.);
75  AlgebraicVector3 globalZ(0., 0., 1.);
76  AlgebraicVector3 rotationAxis = ROOT::Math::Cross(globalZ.Unit(), newZ.Unit());
77  float rotationAngle = -acos(ROOT::Math::Dot(globalZ.Unit(), newZ.Unit()));
78  Basic3DVector<float> aa(rotationAxis[0], rotationAxis[1], rotationAxis[2]);
79  TkRotation<float> rotation(aa, rotationAngle);
81  rotationMatrix(0, 0) = rotation.xx();
82  rotationMatrix(0, 1) = rotation.xy();
83  rotationMatrix(0, 2) = rotation.xz();
84  rotationMatrix(1, 0) = rotation.yx();
85  rotationMatrix(1, 1) = rotation.yy();
86  rotationMatrix(1, 2) = rotation.yz();
87  rotationMatrix(2, 0) = rotation.zx();
88  rotationMatrix(2, 1) = rotation.zy();
89  rotationMatrix(2, 2) = rotation.zz();
90 
91  AlgebraicSymMatrix33 diagError;
92  diagError(0, 0) = pow(BeamWidthX(), 2);
93  diagError(1, 1) = pow(BeamWidthY(), 2);
94  diagError(2, 2) = pow(sigmaZ(), 2);
95 
97  matrix = ROOT::Math::Similarity(rotationMatrix, diagError) + covariance3D();
98  return matrix;
99  }
double BeamWidthX() const
beam width X
Definition: BeamSpot.h:82
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepStd< double, 3, 3 > > AlgebraicMatrix33
math::Error< dim3 >::type Covariance3DMatrix
Definition: BeamSpot.h:31
double dydz() const
dydz slope
Definition: BeamSpot.h:80
Covariance3DMatrix covariance3D() const
return only 3D position covariance matrix
Definition: BeamSpot.h:112
double BeamWidthY() const
beam width Y
Definition: BeamSpot.h:84
ALPAKA_FN_ACC ALPAKA_FN_INLINE riemannFit::Matrix2d rotationMatrix(const TAcc &acc, double slope)
Computes the 2D rotation matrix that transforms the line y=slope*x into the line y=0.
Definition: BrokenLine.h:85
double sigmaZ() const
sigma z
Definition: BeamSpot.h:76
double dxdz() const
dxdz slope
Definition: BeamSpot.h:78
ROOT::Math::SVector< double, 3 > AlgebraicVector3
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ setBeamWidthX()

void reco::BeamSpot::setBeamWidthX ( double  v)
inline

Definition at line 104 of file BeamSpot.h.

References BeamWidthX_, and findQualityFiles::v.

Referenced by PVFitter::runBXFitter(), and PVFitter::runFitter().

104 { BeamWidthX_ = v; }
Double32_t BeamWidthX_
Definition: BeamSpot.h:150

◆ setBeamWidthY()

void reco::BeamSpot::setBeamWidthY ( double  v)
inline

◆ setbetaStar()

void reco::BeamSpot::setbetaStar ( double  v)
inline

Definition at line 138 of file BeamSpot.h.

References betaStar_, and findQualityFiles::v.

Referenced by AlcaBeamSpotFromDB::endLuminosityBlockProduce().

138 { betaStar_ = v; }
Double32_t betaStar_
Definition: BeamSpot.h:156

◆ setEmittanceX()

void reco::BeamSpot::setEmittanceX ( double  v)
inline

Definition at line 136 of file BeamSpot.h.

References emittanceX_, and findQualityFiles::v.

Referenced by AlcaBeamSpotFromDB::endLuminosityBlockProduce().

136 { emittanceX_ = v; }
Double32_t emittanceX_
Definition: BeamSpot.h:154

◆ setEmittanceY()

void reco::BeamSpot::setEmittanceY ( double  v)
inline

Definition at line 137 of file BeamSpot.h.

References emittanceY_, and findQualityFiles::v.

Referenced by AlcaBeamSpotFromDB::endLuminosityBlockProduce().

137 { emittanceY_ = v; }
Double32_t emittanceY_
Definition: BeamSpot.h:155

◆ setType()

void reco::BeamSpot::setType ( BeamType  type)
inline

◆ sigmaZ()

double reco::BeamSpot::sigmaZ ( ) const
inline

◆ sigmaZ0Error()

double reco::BeamSpot::sigmaZ0Error ( ) const
inline

◆ type()

BeamType reco::BeamSpot::type ( ) const
inline

◆ x()

double reco::BeamSpot::x ( const double  z) const
inline

x coordinate of the beeam spot position at a given z value (it takes into account the dxdz slope)

Definition at line 68 of file BeamSpot.h.

References dxdz(), x0(), and z0().

Referenced by svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), geometryXMLparser.Alignable::pos(), ntupleDataFormat._HitObject::r(), and ntupleDataFormat._HitObject::r3D().

68 { return x0() + dxdz() * (z - z0()); }
double x0() const
x coordinate
Definition: BeamSpot.h:61
double dxdz() const
dxdz slope
Definition: BeamSpot.h:78
double z0() const
z coordinate
Definition: BeamSpot.h:65

◆ x0()

double reco::BeamSpot::x0 ( ) const
inline

◆ x0Error()

double reco::BeamSpot::x0Error ( ) const
inline

◆ y()

double reco::BeamSpot::y ( const double  z) const
inline

y coordinate of the beeam spot position at a given z value (it takes into account the dydz slope)

Definition at line 70 of file BeamSpot.h.

References dydz(), y0(), and z0().

Referenced by svgfig.Ellipse::__repr__(), geometryXMLparser.Alignable::pos(), ntupleDataFormat._HitObject::r(), and ntupleDataFormat._HitObject::r3D().

70 { return y0() + dydz() * (z - z0()); }
double dydz() const
dydz slope
Definition: BeamSpot.h:80
double y0() const
y coordinate
Definition: BeamSpot.h:63
double z0() const
z coordinate
Definition: BeamSpot.h:65

◆ y0()

double reco::BeamSpot::y0 ( ) const
inline

◆ y0Error()

double reco::BeamSpot::y0Error ( ) const
inline

◆ z0()

double reco::BeamSpot::z0 ( ) const
inline

◆ z0Error()

double reco::BeamSpot::z0Error ( ) const
inline

Member Data Documentation

◆ BeamWidthX_

Double32_t reco::BeamSpot::BeamWidthX_
private

Definition at line 150 of file BeamSpot.h.

Referenced by BeamSpot(), BeamWidthX(), and setBeamWidthX().

◆ BeamWidthY_

Double32_t reco::BeamSpot::BeamWidthY_
private

Definition at line 151 of file BeamSpot.h.

Referenced by BeamSpot(), BeamWidthY(), and setBeamWidthY().

◆ betaStar_

Double32_t reco::BeamSpot::betaStar_
private

Definition at line 156 of file BeamSpot.h.

Referenced by BeamSpot(), beamWidthFromBeta(), betaStar(), and setbetaStar().

◆ dxdz_

Double32_t reco::BeamSpot::dxdz_
private

Definition at line 152 of file BeamSpot.h.

Referenced by BeamSpot(), and dxdz().

◆ dydz_

Double32_t reco::BeamSpot::dydz_
private

Definition at line 153 of file BeamSpot.h.

Referenced by BeamSpot(), and dydz().

◆ emittanceX_

Double32_t reco::BeamSpot::emittanceX_
private

Definition at line 154 of file BeamSpot.h.

Referenced by BeamSpot(), emittanceX(), and setEmittanceX().

◆ emittanceY_

Double32_t reco::BeamSpot::emittanceY_
private

Definition at line 155 of file BeamSpot.h.

Referenced by BeamSpot(), emittanceY(), and setEmittanceY().

◆ error_

CovarianceMatrix reco::BeamSpot::error_
private

◆ position_

Point reco::BeamSpot::position_
private

position

Definition at line 145 of file BeamSpot.h.

Referenced by BeamSpot(), beamWidthFromBeta(), position(), x0(), y0(), and z0().

◆ sigmaZ_

Double32_t reco::BeamSpot::sigmaZ_
private

Definition at line 149 of file BeamSpot.h.

Referenced by BeamSpot(), and sigmaZ().

◆ type_

BeamType reco::BeamSpot::type_
private