CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
Version
Id:
BeamSpot.h,v 1.12 2011/04/06 20:31:35 venturia Exp

Definition at line 23 of file BeamSpot.h.

Member Typedef Documentation

Definition at line 34 of file BeamSpot.h.

Definition at line 32 of file BeamSpot.h.

point in the space

Definition at line 30 of file BeamSpot.h.

Definition at line 36 of file BeamSpot.h.

Member Enumeration Documentation

anonymous enum
Enumerator
dimension 

Definition at line 31 of file BeamSpot.h.

anonymous enum
Enumerator
dim3 

Definition at line 33 of file BeamSpot.h.

33 { dim3 = 3 };
anonymous enum
Enumerator
resdim 

Definition at line 35 of file BeamSpot.h.

35 { resdim = 2 };

beam spot flags

Enumerator
Unknown 
Fake 
LHC 
Tracker 

Definition at line 27 of file BeamSpot.h.

Constructor & Destructor Documentation

reco::BeamSpot::BeamSpot ( )

default constructor

Definition at line 25 of file BeamSpot.cc.

References j, gen::k, and Unknown.

25  {
26  // initialize
27  position_ = Point(0.,0.,0.);
28  sigmaZ_ = 0.;
29  dxdz_ = 0.;
30  dydz_ = 0.;
31  BeamWidthX_ = 0.; BeamWidthY_ = 0;
32  for (int j=0; j<7; j++) {
33  for (int k=j; k<7; k++) {
34  error_(j,k) = 0.;
35  }
36  }
37  type_ = Unknown;
38  emittanceX_ = 0;
39  emittanceY_ = 0;
40  betaStar_ = 0;
41  }
Double32_t dxdz_
Definition: BeamSpot.h:160
Double32_t emittanceX_
Definition: BeamSpot.h:162
math::XYZPoint Point
point in the space
Definition: BeamSpot.h:30
CovarianceMatrix error_
errors
Definition: BeamSpot.h:155
Double32_t BeamWidthX_
Definition: BeamSpot.h:158
Point position_
position
Definition: BeamSpot.h:153
Double32_t emittanceY_
Definition: BeamSpot.h:163
int j
Definition: DBlmapReader.cc:9
int k[5][pyjets_maxn]
Double32_t BeamWidthY_
Definition: BeamSpot.h:159
BeamType type_
Definition: BeamSpot.h:166
Double32_t betaStar_
Definition: BeamSpot.h:164
Double32_t sigmaZ_
Definition: BeamSpot.h:157
Double32_t dydz_
Definition: BeamSpot.h:161
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 42 of file BeamSpot.h.

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

48  {
49  position_ = point;
50  sigmaZ_ = sigmaZ;
51  dxdz_ = dxdz;
52  dydz_ = dydz;
55  error_ = error;
56  type_ = type;
58  betaStar_ = 0;
59  };
Double32_t dxdz_
Definition: BeamSpot.h:160
Double32_t emittanceX_
Definition: BeamSpot.h:162
CovarianceMatrix error_
errors
Definition: BeamSpot.h:155
Double32_t BeamWidthX_
Definition: BeamSpot.h:158
double dydz() const
dydz slope
Definition: BeamSpot.h:85
Point position_
position
Definition: BeamSpot.h:153
Double32_t emittanceY_
Definition: BeamSpot.h:163
double BeamWidthX() const
beam width X
Definition: BeamSpot.h:87
double dxdz() const
dxdz slope
Definition: BeamSpot.h:83
double sigmaZ() const
sigma z
Definition: BeamSpot.h:81
Double32_t BeamWidthY_
Definition: BeamSpot.h:159
BeamType type_
Definition: BeamSpot.h:166
Double32_t betaStar_
Definition: BeamSpot.h:164
Double32_t sigmaZ_
Definition: BeamSpot.h:157
*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
BeamType type() const
return beam type
Definition: BeamSpot.h:130
Double32_t dydz_
Definition: BeamSpot.h:161

Member Function Documentation

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

Definition at line 140 of file BeamSpot.h.

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

140  {
141  return sqrt( e*betaStar_*(1 + pow((z-position_.Z())/betaStar_,2) ) );
142  }
float float float z
Point position_
position
Definition: BeamSpot.h:153
T sqrt(T t)
Definition: SSEVec.h:48
Double32_t betaStar_
Definition: BeamSpot.h:164
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
double reco::BeamSpot::BeamWidthX ( ) const
inline
double reco::BeamSpot::BeamWidthXError ( ) const
inline

error on beam width X, assume error in X = Y

Definition at line 104 of file BeamSpot.h.

References error_, and mathSSE::sqrt().

Referenced by BeamFitter::dumpBWTxtFile(), BeamMonitorBx::FillTables(), BeamMonitorBx::FillTrendHistos(), BeamMonitor::FitAndFill(), BeamFitter::runFitterNoTxt(), and BeamMonitorBx::weight().

104 { return sqrt ( error_(6,6) );}
CovarianceMatrix error_
errors
Definition: BeamSpot.h:155
T sqrt(T t)
Definition: SSEVec.h:48
double reco::BeamSpot::BeamWidthY ( ) const
inline
double reco::BeamSpot::BeamWidthYError ( ) const
inline

error on beam width Y, assume error in X = Y

Definition at line 106 of file BeamSpot.h.

References error_, and mathSSE::sqrt().

Referenced by BeamMonitorBx::FillTables(), BeamMonitorBx::FillTrendHistos(), BeamMonitor::FitAndFill(), BeamFitter::runFitterNoTxt(), and BeamMonitorBx::weight().

106 { return sqrt ( error_(6,6) );}
CovarianceMatrix error_
errors
Definition: BeamSpot.h:155
T sqrt(T t)
Definition: SSEVec.h:48
double reco::BeamSpot::betaStar ( ) const
inline

Definition at line 139 of file BeamSpot.h.

References betaStar_.

Referenced by BeamFitter::dumpTxtFile().

139 { return betaStar_; }
Double32_t betaStar_
Definition: BeamSpot.h:164
double reco::BeamSpot::covariance ( int  i,
int  j 
) const
inline

(i,j)-th element of error matrix

Definition at line 113 of file BeamSpot.h.

References error_.

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

113  {
114  return error_(i,j);
115  }
int i
Definition: DBlmapReader.cc:9
CovarianceMatrix error_
errors
Definition: BeamSpot.h:155
int j
Definition: DBlmapReader.cc:9
CovarianceMatrix reco::BeamSpot::covariance ( void  ) const
inline

return full covariance matrix of dim 7

Definition at line 117 of file BeamSpot.h.

References error_.

117 { return error_; }
CovarianceMatrix error_
errors
Definition: BeamSpot.h:155
Covariance3DMatrix reco::BeamSpot::covariance3D ( ) const
inline

return only 3D position covariance matrix

Definition at line 119 of file BeamSpot.h.

References error_, j, gen::k, and makeMuonMisalignmentScenario::matrix.

Referenced by pat::PATElectronProducer::embedHighLevel().

119  {
120 
122  for (int j=0; j<3; j++) {
123  for (int k=j; k<3; k++) {
124  matrix(j,k) = error_(j,k);
125  }
126  }
127  return matrix;
128  };
math::Error< dim3 >::type Covariance3DMatrix
Definition: BeamSpot.h:34
CovarianceMatrix error_
errors
Definition: BeamSpot.h:155
int j
Definition: DBlmapReader.cc:9
int k[5][pyjets_maxn]
double reco::BeamSpot::dxdz ( ) const
inline
double reco::BeamSpot::dxdzError ( ) const
inline

error on dxdz

Definition at line 99 of file BeamSpot.h.

References error_, and mathSSE::sqrt().

Referenced by BeamMonitor::FitAndFill(), BeamFitter::runFitterNoTxt(), and BeamMonitorBx::weight().

99 { return sqrt ( error_(4,4) ); }
CovarianceMatrix error_
errors
Definition: BeamSpot.h:155
T sqrt(T t)
Definition: SSEVec.h:48
double reco::BeamSpot::dydz ( ) const
inline
double reco::BeamSpot::dydzError ( ) const
inline

error on dydz

Definition at line 101 of file BeamSpot.h.

References error_, and mathSSE::sqrt().

Referenced by BeamMonitor::FitAndFill(), BeamFitter::runFitterNoTxt(), and BeamMonitorBx::weight().

101 { return sqrt ( error_(5,5) ); }
CovarianceMatrix error_
errors
Definition: BeamSpot.h:155
T sqrt(T t)
Definition: SSEVec.h:48
double reco::BeamSpot::emittanceX ( ) const
inline

additional information

Definition at line 137 of file BeamSpot.h.

References emittanceX_.

Referenced by BeamFitter::dumpTxtFile().

137 { return emittanceX_; }
Double32_t emittanceX_
Definition: BeamSpot.h:162
double reco::BeamSpot::emittanceY ( ) const
inline

Definition at line 138 of file BeamSpot.h.

References emittanceY_.

Referenced by BeamFitter::dumpTxtFile().

138 { return emittanceY_; }
Double32_t emittanceY_
Definition: BeamSpot.h:163
const Point& reco::BeamSpot::position ( ) const
inline

position

Definition at line 63 of file BeamSpot.h.

References position_.

Referenced by ElectronMcFakeValidator::analyze(), ElectronGeneralAnalyzer::analyze(), ElectronAnalyzer::analyze(), ElectronTagProbeAnalyzer::analyze(), TrackerSeedValidator::analyze(), TrackAnalyzer::analyze(), RecoMuonValidator::analyze(), DiMuonHistograms::analyze(), EfficiencyAnalyzer::analyze(), MuonRecoOneHLT::analyze(), MuonKinVsEtaAnalyzer::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), DQMAnalyzer::analyze(), GenPurposeSkimmerData::analyze(), TwoBodyDecayVirtualMeasurement::beamSpotPosition(), GsfElectronAlgo::beginEvent(), GsfElectronAlgo::createElectron(), KalmanAlignmentTrackRefitter::debugTrackData(), reco::TrackBase::dxy(), pat::PATMuonProducer::embedHighLevel(), pat::PATElectronProducer::embedHighLevel(), GsfTrackProducerBase::fillMode(), PrimaryVertexAnalyzer4PU::fillTrackHistos(), WZInterestingEventSelector::filter(), CSCEfficiency::filter(), ElectronSeedProducer::filterClusters(), ConversionSeedFinder::findLayers(), HLTMuonDimuonL2Filter::hltFilter(), HLTMuonL1toL3TkPreFilter::hltFilter(), HLTMuonL3PreFilter::hltFilter(), OutInConversionSeedFinder::makeTrackState(), HIProtoTrackFilter::operator()(), RecoTrackSelector::operator()(), HIBestVertexProducer::produce(), SoftPFElectronTagInfoProducer::produce(), PixelVertexProducer::produce(), VertexFromTrackProducer::produce(), pat::PATConversionProducer::produce(), PrimaryVertexProducer::produce(), TrackAlgoCompareUtil::produce(), EgammaHLTGsfTrackVarProducer::produce(), TriggerMatcherToHLTDebug::produce(), BeamFitter::readEvent(), CutBasedElectronID::robustSelection(), MuonAlignmentFromReference::run(), HIProtoTrackSelector::select(), reco::modules::CosmicTrackSelector::select(), reco::modules::MultiTrackSelector::select(), HLTMuonMatchAndPlot::selectedMuons(), GsfElectronAlgo::setAmbiguityData(), GsfElectronAlgo::setCutBasedPreselectionFlag(), reco::modules::TrackMultiSelector::testVtx(), QcdUeDQM::trackSelection(), and BeamFitter::write2DB().

63 { return position_; }
Point position_
position
Definition: BeamSpot.h:153
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 43 of file BeamSpot.cc.

References pos, x, and detailsBasic3DVector::y.

43  {
44 
45  Point pos(x(z),y(z),z);
46  return pos;
47 
48  }
float float float z
math::XYZPoint Point
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:72
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:74
void reco::BeamSpot::print ( std::stringstream &  ss) const

print information

Definition at line 51 of file BeamSpot.cc.

Referenced by reco::operator<<().

51  {
52 
53  ss << "-----------------------------------------------------\n"
54  << " Beam Spot Data\n\n"
55  << " Beam type = " << type() << "\n"
56  << " X0 = " << x0() << " +/- " << x0Error() << " [cm]\n"
57  << " Y0 = " << y0() << " +/- " << y0Error() << " [cm]\n"
58  << " Z0 = " << z0() << " +/- " << z0Error() << " [cm]\n"
59  << " Sigma Z0 = " << sigmaZ() << " +/- " << sigmaZ0Error() << " [cm]\n"
60  << " dxdz = " << dxdz() << " +/- " << dxdzError() << " [radians]\n"
61  << " dydz = " << dydz() << " +/- " << dydzError() << " [radians]\n"
62  << " Beam width X = " << BeamWidthX() << " +/- " << BeamWidthXError() << " [cm]\n"
63  << " Beam width Y = " << BeamWidthY() << " +/- " << BeamWidthYError() << " [cm]\n"
64  << " EmittanceX = " << emittanceX() << " [cm]\n"
65  << " EmittanceY = " << emittanceY() << " [cm]\n"
66  << " beta-star = " << betaStar() << " [cm]\n"
67  << "-----------------------------------------------------\n\n";
68 
69  }
double z0() const
z coordinate
Definition: BeamSpot.h:69
double sigmaZ0Error() const
error on sigma z
Definition: BeamSpot.h:97
double dydzError() const
error on dydz
Definition: BeamSpot.h:101
double emittanceX() const
additional information
Definition: BeamSpot.h:137
double betaStar() const
Definition: BeamSpot.h:139
double dydz() const
dydz slope
Definition: BeamSpot.h:85
double emittanceY() const
Definition: BeamSpot.h:138
double dxdzError() const
error on dxdz
Definition: BeamSpot.h:99
double BeamWidthX() const
beam width X
Definition: BeamSpot.h:87
double BeamWidthYError() const
error on beam width Y, assume error in X = Y
Definition: BeamSpot.h:106
double BeamWidthXError() const
error on beam width X, assume error in X = Y
Definition: BeamSpot.h:104
double z0Error() const
error on z
Definition: BeamSpot.h:95
double dxdz() const
dxdz slope
Definition: BeamSpot.h:83
double x0Error() const
error on x
Definition: BeamSpot.h:91
double y0Error() const
error on y
Definition: BeamSpot.h:93
double sigmaZ() const
sigma z
Definition: BeamSpot.h:81
double BeamWidthY() const
beam width Y
Definition: BeamSpot.h:89
double y0() const
y coordinate
Definition: BeamSpot.h:67
BeamType type() const
return beam type
Definition: BeamSpot.h:130
double x0() const
x coordinate
Definition: BeamSpot.h:65
BeamSpot::Covariance3DMatrix reco::BeamSpot::rotatedCovariance3D ( ) const

Definition at line 79 of file BeamSpot.cc.

References makeMuonMisalignmentScenario::matrix, funct::pow(), idealTransformation::rotation, TkRotation< T >::xx(), TkRotation< T >::xy(), TkRotation< T >::xz(), TkRotation< T >::yx(), TkRotation< T >::yy(), TkRotation< T >::yz(), TkRotation< T >::zx(), TkRotation< T >::zy(), and TkRotation< T >::zz().

Referenced by GsfConstraintAtVertex::constrainAtBeamSpot(), pat::PATMuonProducer::embedHighLevel(), PixelVertexProducer::produce(), PrimaryVertexProducer::produce(), and TrajectoryStateClosestToBeamLine::transverseImpactParameter().

80  {
81  AlgebraicVector3 newZ(dxdz(), dydz(), 1.);
82  AlgebraicVector3 globalZ(0.,0.,1.);
83  AlgebraicVector3 rotationAxis = ROOT::Math::Cross(globalZ.Unit(), newZ.Unit());
84  float rotationAngle = -acos( ROOT::Math::Dot(globalZ.Unit(),newZ.Unit()));
85  Basic3DVector<float> aa(rotationAxis[0],rotationAxis[1],rotationAxis[2]);
86  TkRotation<float> rotation(aa ,rotationAngle);
87  AlgebraicMatrix33 rotationMatrix;
88  rotationMatrix(0,0) = rotation.xx();
89  rotationMatrix(0,1) = rotation.xy();
90  rotationMatrix(0,2) = rotation.xz();
91  rotationMatrix(1,0) = rotation.yx();
92  rotationMatrix(1,1) = rotation.yy();
93  rotationMatrix(1,2) = rotation.yz();
94  rotationMatrix(2,0) = rotation.zx();
95  rotationMatrix(2,1) = rotation.zy();
96  rotationMatrix(2,2) = rotation.zz();
97 
98  AlgebraicSymMatrix33 diagError ;
99  diagError(0,0) = pow(BeamWidthX(),2);
100  diagError(1,1) = pow(BeamWidthY(),2);
101  diagError(2,2) = pow(sigmaZ(),2);
102 
104  matrix = ROOT::Math::Similarity(rotationMatrix, diagError) + covariance3D();
105  return matrix;
106  }
Covariance3DMatrix covariance3D() const
return only 3D position covariance matrix
Definition: BeamSpot.h:119
math::Error< dim3 >::type Covariance3DMatrix
Definition: BeamSpot.h:34
double dydz() const
dydz slope
Definition: BeamSpot.h:85
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33
ROOT::Math::SVector< double, 3 > AlgebraicVector3
double BeamWidthX() const
beam width X
Definition: BeamSpot.h:87
double dxdz() const
dxdz slope
Definition: BeamSpot.h:83
double sigmaZ() const
sigma z
Definition: BeamSpot.h:81
double BeamWidthY() const
beam width Y
Definition: BeamSpot.h:89
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepStd< double, 3, 3 > > AlgebraicMatrix33
void reco::BeamSpot::setBeamWidthX ( double  v)
inline

Definition at line 109 of file BeamSpot.h.

References BeamWidthX_, and findQualityFiles::v.

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

109 { BeamWidthX_ = v; }
Double32_t BeamWidthX_
Definition: BeamSpot.h:158
void reco::BeamSpot::setBeamWidthY ( double  v)
inline
void reco::BeamSpot::setbetaStar ( double  v)
inline
void reco::BeamSpot::setEmittanceX ( double  v)
inline
void reco::BeamSpot::setEmittanceY ( double  v)
inline
void reco::BeamSpot::setType ( BeamType  type)
inline
double reco::BeamSpot::sigmaZ ( ) const
inline
double reco::BeamSpot::sigmaZ0Error ( ) const
inline

error on sigma z

Definition at line 97 of file BeamSpot.h.

References error_, and mathSSE::sqrt().

Referenced by BeamMonitorBx::FillTables(), BeamMonitorBx::FillTrendHistos(), BeamMonitor::FitAndFill(), BeamFitter::runFitterNoTxt(), and BeamMonitorBx::weight().

97 { return sqrt ( error_(3,3) ); }
CovarianceMatrix error_
errors
Definition: BeamSpot.h:155
T sqrt(T t)
Definition: SSEVec.h:48
BeamType reco::BeamSpot::type ( ) const
inline
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 72 of file BeamSpot.h.

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

Referenced by svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), geometryXMLparser.Alignable::pos(), and Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget().

72 { return x0() + dxdz() * (z - z0()); }
double z0() const
z coordinate
Definition: BeamSpot.h:69
float float float z
double dxdz() const
dxdz slope
Definition: BeamSpot.h:83
double x0() const
x coordinate
Definition: BeamSpot.h:65
double reco::BeamSpot::x0 ( ) const
inline

x coordinate

Definition at line 65 of file BeamSpot.h.

References position_.

Referenced by PrimaryVertexMonitor::analyze(), TrackBuildingAnalyzer::analyze(), PrimaryVertexAnalyzer4PU::analyze(), PrimaryVertexAnalyzer4PU::analyzeVertexCollection(), GCC11_FINAL< T, TOPO >::BeamSpotTransientTrackingRecHit(), FWBeamSpotProxyBuilder::build(), TrackProducerAlgorithm< reco::Track >::buildTrack(), TrackProducerAlgorithm< reco::GsfTrack >::buildTrack(), PhotonIsolationCalculator::calculateTrackIso(), TrackerSeedCleaner::clean(), GsfConstraintAtVertex::constrainAtBeamSpot(), ReferenceTrajectory::construct(), BeamFitter::dumpTxtFile(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), BeamSpotHistogramMaker::fill(), BeamMonitorBx::FillTables(), PrimaryVertexAnalyzer4PU::fillTrackHistos(), BeamMonitorBx::FillTrendHistos(), BSFitter::Fit(), BeamMonitor::FitAndFill(), getVertexD0(), HLTDisplacedmumumuFilter::hltFilter(), HLTDisplacedmumuFilter::hltFilter(), HLTMuonDimuonL3Filter::hltFilter(), HLTMuonTrimuonL3Filter::hltFilter(), HLTMuonL3PreFilter::hltFilter(), HLTmmkFilter::hltFilter(), HLTmmkkFilter::hltFilter(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), HIBestVertexProducer::produce(), MuonSeedGenerator::produce(), PixelVertexProducer::produce(), SETMuonSeedProducer::produce(), pat::PATMuonProducer::produce(), pat::PATElectronProducer::produce(), MuonTrackingRegionBuilder::region(), GlobalTrackingRegionProducerFromBeamSpot::regions(), GlobalTrackingRegionWithVerticesProducer::regions(), TrackingRegionsFromBeamSpotAndL2Tau::regions(), HITrackingRegionForPrimaryVtxProducer::regions(), BeamFitter::runFitterNoTxt(), BeamFitter::runPVandTrkFitter(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), QcdUeDQM::trackSelection(), HIProtoTrackFilter::update(), MuonUpdatorAtVertex::update(), PrimaryVertexMonitor::vertexPlots(), BeamMonitorBx::weight(), BSvsPVHistogramMaker::x(), x(), and FWBeamSpot::x0().

65 { return position_.X(); }
Point position_
position
Definition: BeamSpot.h:153
double reco::BeamSpot::x0Error ( ) const
inline
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 74 of file BeamSpot.h.

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

Referenced by svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), geometryXMLparser.Alignable::pos(), and Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget().

74 { return y0() + dydz() * (z - z0()); }
double z0() const
z coordinate
Definition: BeamSpot.h:69
float float float z
double dydz() const
dydz slope
Definition: BeamSpot.h:85
double y0() const
y coordinate
Definition: BeamSpot.h:67
double reco::BeamSpot::y0 ( ) const
inline

y coordinate

Definition at line 67 of file BeamSpot.h.

References position_.

Referenced by PrimaryVertexMonitor::analyze(), TrackBuildingAnalyzer::analyze(), PrimaryVertexAnalyzer4PU::analyze(), PrimaryVertexAnalyzer4PU::analyzeVertexCollection(), GCC11_FINAL< T, TOPO >::BeamSpotTransientTrackingRecHit(), FWBeamSpotProxyBuilder::build(), TrackProducerAlgorithm< reco::Track >::buildTrack(), TrackProducerAlgorithm< reco::GsfTrack >::buildTrack(), PhotonIsolationCalculator::calculateTrackIso(), TrackerSeedCleaner::clean(), GsfConstraintAtVertex::constrainAtBeamSpot(), ReferenceTrajectory::construct(), BeamFitter::dumpTxtFile(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), BeamSpotHistogramMaker::fill(), BeamMonitorBx::FillTables(), PrimaryVertexAnalyzer4PU::fillTrackHistos(), BeamMonitorBx::FillTrendHistos(), BSFitter::Fit(), BeamMonitor::FitAndFill(), getVertexD0(), HLTDisplacedmumumuFilter::hltFilter(), HLTDisplacedmumuFilter::hltFilter(), HLTMuonDimuonL3Filter::hltFilter(), HLTMuonTrimuonL3Filter::hltFilter(), HLTMuonL3PreFilter::hltFilter(), HLTmmkFilter::hltFilter(), HLTmmkkFilter::hltFilter(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), HIBestVertexProducer::produce(), MuonSeedGenerator::produce(), PixelVertexProducer::produce(), SETMuonSeedProducer::produce(), pat::PATMuonProducer::produce(), pat::PATElectronProducer::produce(), MuonTrackingRegionBuilder::region(), GlobalTrackingRegionProducerFromBeamSpot::regions(), GlobalTrackingRegionWithVerticesProducer::regions(), TrackingRegionsFromBeamSpotAndL2Tau::regions(), HITrackingRegionForPrimaryVtxProducer::regions(), BeamFitter::runFitterNoTxt(), BeamFitter::runPVandTrkFitter(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), QcdUeDQM::trackSelection(), HIProtoTrackFilter::update(), MuonUpdatorAtVertex::update(), PrimaryVertexMonitor::vertexPlots(), BeamMonitorBx::weight(), BSvsPVHistogramMaker::y(), y(), and FWBeamSpot::y0().

67 { return position_.Y(); }
Point position_
position
Definition: BeamSpot.h:153
double reco::BeamSpot::y0Error ( ) const
inline
double reco::BeamSpot::z0 ( ) const
inline

z coordinate

Definition at line 69 of file BeamSpot.h.

References position_.

Referenced by PrimaryVertexMonitor::analyze(), TrackBuildingAnalyzer::analyze(), PrimaryVertexAnalyzer4PU::analyze(), PrimaryVertexAnalyzer4PU::analyzeVertexCollection(), GCC11_FINAL< T, TOPO >::BeamSpotTransientTrackingRecHit(), FWBeamSpotProxyBuilder::build(), TrackProducerAlgorithm< reco::Track >::buildTrack(), TrackProducerAlgorithm< reco::GsfTrack >::buildTrack(), PhotonIsolationCalculator::calculateTrackIso(), TrackerSeedCleaner::clean(), GsfConstraintAtVertex::constrainAtBeamSpot(), ReferenceTrajectory::construct(), BeamFitter::dumpTxtFile(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), BeamSpotHistogramMaker::fill(), BSvsPVHistogramMaker::fill(), BeamMonitorBx::FillTables(), BeamMonitorBx::FillTrendHistos(), QcdUeDQM::fillVtxPlots(), BSFitter::Fit(), BeamMonitor::FitAndFill(), HLTDisplacedmumuFilter::hltFilter(), HLTDisplacedmumumuFilter::hltFilter(), HLTMuonTrimuonL3Filter::hltFilter(), HLTMuonDimuonL3Filter::hltFilter(), HLTMuonL3PreFilter::hltFilter(), HLTmmkFilter::hltFilter(), HLTmmkkFilter::hltFilter(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), MuonSeedGenerator::produce(), PixelVertexProducer::produce(), SETMuonSeedProducer::produce(), pat::PATMuonProducer::produce(), pat::PATElectronProducer::produce(), MuonTrackingRegionBuilder::region(), GlobalTrackingRegionProducerFromBeamSpot::regions(), GlobalTrackingRegionWithVerticesProducer::regions(), TrackingRegionsFromBeamSpotAndL2Tau::regions(), HITrackingRegionForPrimaryVtxProducer::regions(), BeamFitter::runFitterNoTxt(), BeamFitter::runPVandTrkFitter(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), QcdUeDQM::trackSelection(), HIProtoTrackFilter::update(), MuonUpdatorAtVertex::update(), PrimaryVertexMonitor::vertexPlots(), BeamMonitorBx::weight(), BSvsPVHistogramMaker::x(), x(), BSvsPVHistogramMaker::y(), y(), and FWBeamSpot::z0().

69 { return position_.Z(); }
Point position_
position
Definition: BeamSpot.h:153
double reco::BeamSpot::z0Error ( ) const
inline

Member Data Documentation

Double32_t reco::BeamSpot::BeamWidthX_
private

Definition at line 158 of file BeamSpot.h.

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

Double32_t reco::BeamSpot::BeamWidthY_
private

Definition at line 159 of file BeamSpot.h.

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

Double32_t reco::BeamSpot::betaStar_
private

Definition at line 164 of file BeamSpot.h.

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

Double32_t reco::BeamSpot::dxdz_
private

Definition at line 160 of file BeamSpot.h.

Referenced by BeamSpot(), and dxdz().

Double32_t reco::BeamSpot::dydz_
private

Definition at line 161 of file BeamSpot.h.

Referenced by BeamSpot(), and dydz().

Double32_t reco::BeamSpot::emittanceX_
private

Definition at line 162 of file BeamSpot.h.

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

Double32_t reco::BeamSpot::emittanceY_
private

Definition at line 163 of file BeamSpot.h.

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

CovarianceMatrix reco::BeamSpot::error_
private
Point reco::BeamSpot::position_
private

position

Definition at line 153 of file BeamSpot.h.

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

Double32_t reco::BeamSpot::sigmaZ_
private

Definition at line 157 of file BeamSpot.h.

Referenced by BeamSpot(), and sigmaZ().

BeamType reco::BeamSpot::type_
private