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...
 
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 x0 () const
 x coordinate More...
 
double x0Error () const
 error on x 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.10 2009/09/01 21:50:17 yumiceva 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:150
Double32_t emittanceX_
Definition: BeamSpot.h:152
math::XYZPoint Point
point in the space
Definition: BeamSpot.h:30
CovarianceMatrix error_
errors
Definition: BeamSpot.h:145
Double32_t BeamWidthX_
Definition: BeamSpot.h:148
Point position_
position
Definition: BeamSpot.h:143
Double32_t emittanceY_
Definition: BeamSpot.h:153
int j
Definition: DBlmapReader.cc:9
int k[5][pyjets_maxn]
Double32_t BeamWidthY_
Definition: BeamSpot.h:149
BeamType type_
Definition: BeamSpot.h:156
Double32_t betaStar_
Definition: BeamSpot.h:154
Double32_t sigmaZ_
Definition: BeamSpot.h:147
Double32_t dydz_
Definition: BeamSpot.h:151
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:150
Double32_t emittanceX_
Definition: BeamSpot.h:152
CovarianceMatrix error_
errors
Definition: BeamSpot.h:145
Double32_t BeamWidthX_
Definition: BeamSpot.h:148
double dydz() const
dydz slope
Definition: BeamSpot.h:75
Point position_
position
Definition: BeamSpot.h:143
Double32_t emittanceY_
Definition: BeamSpot.h:153
double BeamWidthX() const
beam width X
Definition: BeamSpot.h:77
double dxdz() const
dxdz slope
Definition: BeamSpot.h:73
double sigmaZ() const
sigma z
Definition: BeamSpot.h:71
Double32_t BeamWidthY_
Definition: BeamSpot.h:149
BeamType type_
Definition: BeamSpot.h:156
Double32_t betaStar_
Definition: BeamSpot.h:154
Double32_t sigmaZ_
Definition: BeamSpot.h:147
*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:120
Double32_t dydz_
Definition: BeamSpot.h:151

Member Function Documentation

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

Definition at line 130 of file BeamSpot.h.

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

130  {
131  return sqrt( e*betaStar_*(1 + pow((z-position_.Z())/betaStar_,2) ) );
132  }
Definition: DDAxes.h:10
Point position_
position
Definition: BeamSpot.h:143
T sqrt(T t)
Definition: SSEVec.h:28
Double32_t betaStar_
Definition: BeamSpot.h:154
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 94 of file BeamSpot.h.

References error_, and mathSSE::sqrt().

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

94 { return sqrt ( error_(6,6) );}
CovarianceMatrix error_
errors
Definition: BeamSpot.h:145
T sqrt(T t)
Definition: SSEVec.h:28
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 96 of file BeamSpot.h.

References error_, and mathSSE::sqrt().

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

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

Definition at line 129 of file BeamSpot.h.

References betaStar_.

Referenced by BeamFitter::dumpTxtFile().

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

(i,j)-th element of error matrix

Definition at line 103 of file BeamSpot.h.

References error_.

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

103  {
104  return error_(i,j);
105  }
int i
Definition: DBlmapReader.cc:9
CovarianceMatrix error_
errors
Definition: BeamSpot.h:145
int j
Definition: DBlmapReader.cc:9
CovarianceMatrix reco::BeamSpot::covariance ( void  ) const
inline

return full covariance matrix of dim 7

Definition at line 107 of file BeamSpot.h.

References error_.

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

return only 3D position covariance matrix

Definition at line 109 of file BeamSpot.h.

References error_, j, and gen::k.

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

109  {
110 
111  Covariance3DMatrix matrix;
112  for (int j=0; j<3; j++) {
113  for (int k=j; k<3; k++) {
114  matrix(j,k) = error_(j,k);
115  }
116  }
117  return matrix;
118  };
math::Error< dim3 >::type Covariance3DMatrix
Definition: BeamSpot.h:34
CovarianceMatrix error_
errors
Definition: BeamSpot.h:145
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 89 of file BeamSpot.h.

References error_, and mathSSE::sqrt().

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

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

error on dydz

Definition at line 91 of file BeamSpot.h.

References error_, and mathSSE::sqrt().

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

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

additional information

Definition at line 127 of file BeamSpot.h.

References emittanceX_.

Referenced by BeamFitter::dumpTxtFile().

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

Definition at line 128 of file BeamSpot.h.

References emittanceY_.

Referenced by BeamFitter::dumpTxtFile().

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

position

Definition at line 63 of file BeamSpot.h.

References position_.

Referenced by ElectronMcFakeValidator::analyze(), ElectronAnalyzer::analyze(), ElectronGeneralAnalyzer::analyze(), ElectronTagProbeAnalyzer::analyze(), TrackAnalyzer::analyze(), HLTMuonDQMSource::analyze(), DQMAnalyzer::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), GenPurposeSkimmerData::analyze(), TrackAssociatorByChi2::associateRecoToSim(), TrackAssociatorByChi2::associateSimToReco(), GsfElectronAlgo::beginEvent(), FWBeamSpotProxyBuilder::build(), ElectronEnergyCorrector::correct(), GsfElectronAlgo::createElectron(), KalmanAlignmentTrackRefitter::debugTrackData(), pat::PATMuonProducer::embedHighLevel(), GsfTrackProducerBase::fillMode(), PrimaryVertexAnalyzer4PU::fillTrackHistos(), HLTMuonDimuonL2Filter::filter(), HLTMuonDimuonL3Filter::filter(), HLTMuonL3PreFilter::filter(), HLTMuonL1toL3TkPreFilter::filter(), WZInterestingEventSelector::filter(), CSCEfficiency::filter(), ElectronSeedProducer::filterClusters(), ConversionSeedFinder::findLayers(), OutInConversionSeedFinder::makeTrackState(), HIProtoTrackFilter::operator()(), RecoTrackSelector::operator()(), HIBestVertexProducer::produce(), TrackAlgoCompareUtil::produce(), BeamFitter::readEvent(), CutBasedElectronID::robustSelection(), HIProtoTrackSelector::select(), reco::modules::CosmicTrackSelector::select(), reco::modules::AnalyticalTrackSelector::select(), GsfElectronAlgo::setAmbiguityData(), GsfElectronAlgo::setCutBasedPreselectionFlag(), reco::modules::TrackMultiSelector::testVtx(), QcdUeDQM::trackSelection(), and BeamFitter::write2DB().

63 { return position_; }
Point position_
position
Definition: BeamSpot.h:143
void reco::BeamSpot::print ( std::stringstream &  ss) const

print information

Definition at line 43 of file BeamSpot.cc.

Referenced by reco::operator<<().

43  {
44 
45  ss << "-----------------------------------------------------\n"
46  << " Beam Spot Data\n\n"
47  << " Beam type = " << type() << "\n"
48  << " X0 = " << x0() << " +/- " << x0Error() << " [cm]\n"
49  << " Y0 = " << y0() << " +/- " << y0Error() << " [cm]\n"
50  << " Z0 = " << z0() << " +/- " << z0Error() << " [cm]\n"
51  << " Sigma Z0 = " << sigmaZ() << " +/- " << sigmaZ0Error() << " [cm]\n"
52  << " dxdz = " << dxdz() << " +/- " << dxdzError() << " [radians]\n"
53  << " dydz = " << dydz() << " +/- " << dydzError() << " [radians]\n"
54  << " Beam width X = " << BeamWidthX() << " +/- " << BeamWidthXError() << " [cm]\n"
55  << " Beam width Y = " << BeamWidthY() << " +/- " << BeamWidthYError() << " [cm]\n"
56  << " EmittanceX = " << emittanceX() << " [cm]\n"
57  << " EmittanceY = " << emittanceY() << " [cm]\n"
58  << " beta-star = " << betaStar() << " [cm]\n"
59  << "-----------------------------------------------------\n\n";
60 
61  }
double z0() const
z coordinate
Definition: BeamSpot.h:69
double sigmaZ0Error() const
error on sigma z
Definition: BeamSpot.h:87
double dydzError() const
error on dydz
Definition: BeamSpot.h:91
double emittanceX() const
additional information
Definition: BeamSpot.h:127
double betaStar() const
Definition: BeamSpot.h:129
double dydz() const
dydz slope
Definition: BeamSpot.h:75
double emittanceY() const
Definition: BeamSpot.h:128
double dxdzError() const
error on dxdz
Definition: BeamSpot.h:89
double BeamWidthX() const
beam width X
Definition: BeamSpot.h:77
double BeamWidthYError() const
error on beam width Y, assume error in X = Y
Definition: BeamSpot.h:96
double BeamWidthXError() const
error on beam width X, assume error in X = Y
Definition: BeamSpot.h:94
double z0Error() const
error on z
Definition: BeamSpot.h:85
double dxdz() const
dxdz slope
Definition: BeamSpot.h:73
double x0Error() const
error on x
Definition: BeamSpot.h:81
double y0Error() const
error on y
Definition: BeamSpot.h:83
double sigmaZ() const
sigma z
Definition: BeamSpot.h:71
double BeamWidthY() const
beam width Y
Definition: BeamSpot.h:79
double y0() const
y coordinate
Definition: BeamSpot.h:67
BeamType type() const
return beam type
Definition: BeamSpot.h:120
double x0() const
x coordinate
Definition: BeamSpot.h:65
BeamSpot::Covariance3DMatrix reco::BeamSpot::rotatedCovariance3D ( ) const

Definition at line 71 of file BeamSpot.cc.

References a, asHepVector(), funct::pow(), 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().

72  {
73  AlgebraicVector3 newZ(dxdz(), dydz(), 1.);
74  AlgebraicVector3 globalZ(0.,0.,1.);
75  AlgebraicVector3 rotationAxis = ROOT::Math::Cross(globalZ.Unit(), newZ.Unit());
76  float rotationAngle = -acos( ROOT::Math::Dot(globalZ.Unit(),newZ.Unit()));
77  AlgebraicVector a = asHepVector(rotationAxis);
78  Basic3DVector<float> aa(a[0], a[1], a[2]);
79  TkRotation<float> rotation(aa ,rotationAngle);
80  AlgebraicMatrix33 rotationMatrix;
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 
96  Covariance3DMatrix matrix;
97  matrix = ROOT::Math::Similarity(rotationMatrix, diagError) + covariance3D();
98  return matrix;
99  }
Covariance3DMatrix covariance3D() const
return only 3D position covariance matrix
Definition: BeamSpot.h:109
math::Error< dim3 >::type Covariance3DMatrix
Definition: BeamSpot.h:34
double dydz() const
dydz slope
Definition: BeamSpot.h:75
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:77
double dxdz() const
dxdz slope
Definition: BeamSpot.h:73
CLHEP::HepVector AlgebraicVector
double sigmaZ() const
sigma z
Definition: BeamSpot.h:71
double BeamWidthY() const
beam width Y
Definition: BeamSpot.h:79
double a
Definition: hdecay.h:121
CLHEP::HepVector asHepVector(const ROOT::Math::SVector< double, N > &v)
Definition: Migration.h:43
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 99 of file BeamSpot.h.

References BeamWidthX_, and v.

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

99 { BeamWidthX_ = v; }
Double32_t BeamWidthX_
Definition: BeamSpot.h:148
mathSSE::Vec4< T > v
void reco::BeamSpot::setBeamWidthY ( double  v)
inline
void reco::BeamSpot::setbetaStar ( double  v)
inline

Definition at line 136 of file BeamSpot.h.

References betaStar_, and v.

Referenced by AlcaBeamSpotFromDB::endLuminosityBlock(), and BeamSpotOnlineProducer::produce().

136 { betaStar_ = v; }
Double32_t betaStar_
Definition: BeamSpot.h:154
mathSSE::Vec4< T > v
void reco::BeamSpot::setEmittanceX ( double  v)
inline

Definition at line 134 of file BeamSpot.h.

References emittanceX_, and v.

Referenced by AlcaBeamSpotFromDB::endLuminosityBlock(), and BeamSpotOnlineProducer::produce().

134 { emittanceX_ = v; }
Double32_t emittanceX_
Definition: BeamSpot.h:152
mathSSE::Vec4< T > v
void reco::BeamSpot::setEmittanceY ( double  v)
inline

Definition at line 135 of file BeamSpot.h.

References emittanceY_, and v.

Referenced by AlcaBeamSpotFromDB::endLuminosityBlock(), and BeamSpotOnlineProducer::produce().

135 { emittanceY_ = v; }
Double32_t emittanceY_
Definition: BeamSpot.h:153
mathSSE::Vec4< T > v
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 87 of file BeamSpot.h.

References error_, and mathSSE::sqrt().

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

87 { return sqrt ( error_(3,3) ); }
CovarianceMatrix error_
errors
Definition: BeamSpot.h:145
T sqrt(T t)
Definition: SSEVec.h:28
BeamType reco::BeamSpot::type ( ) const
inline
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(), BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit(), TrackProducerAlgorithm< reco::Track >::buildTrack(), TrackProducerAlgorithm< reco::GsfTrack >::buildTrack(), PhotonIsolationCalculator::calculateTrackIso(), TrackerSeedCleaner::clean(), GsfConstraintAtVertex::constrainAtBeamSpot(), ReferenceTrajectory::construct(), BeamFitter::dumpTxtFile(), BeamMonitorBx::FillTables(), PrimaryVertexAnalyzer4PU::fillTrackHistos(), BeamMonitorBx::FillTrendHistos(), HLTDisplacedmumuFilter::filter(), HLTmmkFilter::filter(), BSFitter::Fit(), BeamMonitor::FitAndFill(), getVertexD0(), HIBestVertexProducer::produce(), MuonSeedGenerator::produce(), PixelVertexProducer::produce(), SETMuonSeedProducer::produce(), pat::PATMuonProducer::produce(), pat::PATElectronProducer::produce(), SteppingHelixPropagator::propagateWithPath(), MuonTrackingRegionBuilder::region(), GlobalTrackingRegionProducerFromBeamSpot::regions(), GlobalTrackingRegionWithVerticesProducer::regions(), HITrackingRegionForPrimaryVtxProducer::regions(), BeamFitter::runFitterNoTxt(), BeamFitter::runPVandTrkFitter(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), QcdUeDQM::trackSelection(), HIProtoTrackFilter::update(), MuonUpdatorAtVertex::update(), PrimaryVertexMonitor::vertexPlots(), BeamMonitorBx::weight(), and FWBeamSpot::x0().

65 { return position_.X(); }
Point position_
position
Definition: BeamSpot.h:143
double reco::BeamSpot::x0Error ( ) const
inline

error on x

Definition at line 81 of file BeamSpot.h.

References error_, and mathSSE::sqrt().

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

81 { return sqrt( error_(0,0) ); }
CovarianceMatrix error_
errors
Definition: BeamSpot.h:145
T sqrt(T t)
Definition: SSEVec.h:28
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(), BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit(), TrackProducerAlgorithm< reco::Track >::buildTrack(), TrackProducerAlgorithm< reco::GsfTrack >::buildTrack(), PhotonIsolationCalculator::calculateTrackIso(), TrackerSeedCleaner::clean(), GsfConstraintAtVertex::constrainAtBeamSpot(), ReferenceTrajectory::construct(), BeamFitter::dumpTxtFile(), BeamMonitorBx::FillTables(), PrimaryVertexAnalyzer4PU::fillTrackHistos(), BeamMonitorBx::FillTrendHistos(), HLTDisplacedmumuFilter::filter(), HLTmmkFilter::filter(), BSFitter::Fit(), BeamMonitor::FitAndFill(), getVertexD0(), HIBestVertexProducer::produce(), MuonSeedGenerator::produce(), PixelVertexProducer::produce(), SETMuonSeedProducer::produce(), pat::PATMuonProducer::produce(), pat::PATElectronProducer::produce(), SteppingHelixPropagator::propagateWithPath(), MuonTrackingRegionBuilder::region(), GlobalTrackingRegionProducerFromBeamSpot::regions(), GlobalTrackingRegionWithVerticesProducer::regions(), HITrackingRegionForPrimaryVtxProducer::regions(), BeamFitter::runFitterNoTxt(), BeamFitter::runPVandTrkFitter(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), QcdUeDQM::trackSelection(), HIProtoTrackFilter::update(), MuonUpdatorAtVertex::update(), PrimaryVertexMonitor::vertexPlots(), BeamMonitorBx::weight(), and FWBeamSpot::y0().

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

error on y

Definition at line 83 of file BeamSpot.h.

References error_, and mathSSE::sqrt().

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

83 { return sqrt( error_(1,1) ); }
CovarianceMatrix error_
errors
Definition: BeamSpot.h:145
T sqrt(T t)
Definition: SSEVec.h:28
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(), BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit(), TrackProducerAlgorithm< reco::Track >::buildTrack(), TrackProducerAlgorithm< reco::GsfTrack >::buildTrack(), PhotonIsolationCalculator::calculateTrackIso(), TrackerSeedCleaner::clean(), GsfConstraintAtVertex::constrainAtBeamSpot(), ReferenceTrajectory::construct(), BeamFitter::dumpTxtFile(), BeamMonitorBx::FillTables(), BeamMonitorBx::FillTrendHistos(), HLTDisplacedmumuFilter::filter(), HLTmmkFilter::filter(), BSFitter::Fit(), BeamMonitor::FitAndFill(), MuonSeedGenerator::produce(), PixelVertexProducer::produce(), SETMuonSeedProducer::produce(), pat::PATMuonProducer::produce(), pat::PATElectronProducer::produce(), SteppingHelixPropagator::propagateWithPath(), MuonTrackingRegionBuilder::region(), GlobalTrackingRegionProducerFromBeamSpot::regions(), GlobalTrackingRegionWithVerticesProducer::regions(), HITrackingRegionForPrimaryVtxProducer::regions(), BeamFitter::runFitterNoTxt(), BeamFitter::runPVandTrkFitter(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), QcdUeDQM::trackSelection(), HIProtoTrackFilter::update(), MuonUpdatorAtVertex::update(), PrimaryVertexMonitor::vertexPlots(), BeamMonitorBx::weight(), and FWBeamSpot::z0().

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

error on z

Definition at line 85 of file BeamSpot.h.

References error_, and mathSSE::sqrt().

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

85 { return sqrt( error_(2,2) ); }
CovarianceMatrix error_
errors
Definition: BeamSpot.h:145
T sqrt(T t)
Definition: SSEVec.h:28

Member Data Documentation

Double32_t reco::BeamSpot::BeamWidthX_
private

Definition at line 148 of file BeamSpot.h.

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

Double32_t reco::BeamSpot::BeamWidthY_
private

Definition at line 149 of file BeamSpot.h.

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

Double32_t reco::BeamSpot::betaStar_
private

Definition at line 154 of file BeamSpot.h.

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

Double32_t reco::BeamSpot::dxdz_
private

Definition at line 150 of file BeamSpot.h.

Referenced by BeamSpot(), and dxdz().

Double32_t reco::BeamSpot::dydz_
private

Definition at line 151 of file BeamSpot.h.

Referenced by BeamSpot(), and dydz().

Double32_t reco::BeamSpot::emittanceX_
private

Definition at line 152 of file BeamSpot.h.

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

Double32_t reco::BeamSpot::emittanceY_
private

Definition at line 153 of file BeamSpot.h.

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

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

position

Definition at line 143 of file BeamSpot.h.

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

Double32_t reco::BeamSpot::sigmaZ_
private

Definition at line 147 of file BeamSpot.h.

Referenced by BeamSpot(), and sigmaZ().

BeamType reco::BeamSpot::type_
private