CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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)

Definition at line 21 of file BeamSpot.h.

Member Typedef Documentation

Definition at line 31 of file BeamSpot.h.

Definition at line 29 of file BeamSpot.h.

point in the space

Definition at line 27 of file BeamSpot.h.

Definition at line 33 of file BeamSpot.h.

Member Enumeration Documentation

anonymous enum
Enumerator
dimension 

Definition at line 28 of file BeamSpot.h.

anonymous enum
Enumerator
dim3 

Definition at line 30 of file BeamSpot.h.

30 { dim3 = 3 };
anonymous enum
Enumerator
resdim 

Definition at line 32 of file BeamSpot.h.

32 { resdim = 2 };

beam spot flags

Enumerator
Unknown 
Fake 
LHC 
Tracker 

Definition at line 24 of file BeamSpot.h.

Constructor & Destructor Documentation

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
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  };
Double32_t dxdz_
Definition: BeamSpot.h:152
Double32_t emittanceX_
Definition: BeamSpot.h:154
CovarianceMatrix error_
errors
Definition: BeamSpot.h:147
Double32_t BeamWidthX_
Definition: BeamSpot.h:150
double dydz() const
dydz slope
Definition: BeamSpot.h:80
Point position_
position
Definition: BeamSpot.h:145
Double32_t emittanceY_
Definition: BeamSpot.h:155
double BeamWidthX() const
beam width X
Definition: BeamSpot.h:82
double dxdz() const
dxdz slope
Definition: BeamSpot.h:78
double sigmaZ() const
sigma z
Definition: BeamSpot.h:76
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
*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:122
Double32_t dydz_
Definition: BeamSpot.h:153

Member Function Documentation

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

Definition at line 132 of file BeamSpot.h.

References betaStar_, 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:19
Double32_t betaStar_
Definition: BeamSpot.h:156
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29
double reco::BeamSpot::BeamWidthX ( ) const
inline

beam width X

Definition at line 82 of file BeamSpot.h.

References BeamWidthX_.

Referenced by PrimaryVertexMonitor::analyze(), MuonMiniAOD::analyze(), RecoMuonValidator::analyze(), MuonKinVsEtaAnalyzer::analyze(), DiMuonHistograms::analyze(), EfficiencyAnalyzer::analyze(), TriggerMatchMonitor::analyze(), MuonRecoOneHLT::analyze(), BeamSpot(), BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit(), AlcaBeamSpotManager::createWeightedPayloads(), beamspot::dumpBeamSpotTxt(), BeamFitter::dumpBWTxtFile(), BeamFitter::dumpTxtFile(), TwoBodyDecayVirtualMeasurement::extractBeamSpotError(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), BeamSpotHistogramMaker::fill(), DAClusterizerInZ::fill(), DAClusterizerInZ_vect::fill(), DAClusterizerInZT_vect::fill(), TrackingNtuple::fillBeamSpot(), BeamMonitorBx::FillTables(), PrimaryVertexValidation::fillTrackHistos(), ApeEstimator::fillTrackVariables(), BeamMonitorBx::FillTrendHistos(), BSFitter::Fit(), BeamMonitor::FitAndFill(), FakeBeamMonitor::FitAndFill(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), KFBasedPixelFitter::MyBeamSpotHit::MyBeamSpotHit(), HIBestVertexProducer::produce(), AlCaGammaJetProducer::produce(), AlCaHBHEMuonProducer::produce(), BeamSpotToCUDA::produce(), BeamFitter::runFitterNoTxt(), BeamFitter::runPVandTrkFitter(), HIProtoTrackSelector::select(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), BeamMonitorBx::weight(), and BeamFitter::write2DB().

82 { return BeamWidthX_; }
Double32_t BeamWidthX_
Definition: BeamSpot.h:150
double reco::BeamSpot::BeamWidthXError ( ) const
inline
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 101 of file BeamSpot.h.

References error_, and mathSSE::sqrt().

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

101 { return sqrt(error_(6, 6)); }
CovarianceMatrix error_
errors
Definition: BeamSpot.h:147
T sqrt(T t)
Definition: SSEVec.h:19
double reco::BeamSpot::betaStar ( ) const
inline
double reco::BeamSpot::covariance ( int  i,
int  j 
) const
inline
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
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 pat::PATElectronProducer::embedHighLevel().

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
double reco::BeamSpot::dxdz ( ) const
inline
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(), BeamMonitor::FitAndFill(), FakeBeamMonitor::FitAndFill(), 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:19
double reco::BeamSpot::dydz ( ) const
inline
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(), BeamMonitor::FitAndFill(), FakeBeamMonitor::FitAndFill(), 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:19
double reco::BeamSpot::emittanceX ( ) const
inline

additional information

Definition at line 129 of file BeamSpot.h.

References emittanceX_.

Referenced by beamspot::dumpBeamSpotTxt(), BeamFitter::dumpTxtFile(), BeamMonitor::FitAndFill(), FakeBeamMonitor::FitAndFill(), and BeamSpotToCUDA::produce().

129 { return emittanceX_; }
Double32_t emittanceX_
Definition: BeamSpot.h:154
double reco::BeamSpot::emittanceY ( ) const
inline
const Point& reco::BeamSpot::position ( ) const
inline

position

Definition at line 59 of file BeamSpot.h.

References position_.

Referenced by ElectronGeneralAnalyzer::analyze(), ElectronTagProbeAnalyzer::analyze(), MuonMiniAOD::analyze(), RecoMuonValidator::analyze(), ElectronMcFakeValidator::analyze(), DiMuonHistograms::analyze(), EfficiencyAnalyzer::analyze(), MuonKinVsEtaAnalyzer::analyze(), ElectronAnalyzer::analyze(), TriggerMatchMonitor::analyze(), tadqm::TrackAnalyzer::analyze(), MuonRecoOneHLT::analyze(), DQMAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), GsfElectronDataAnalyzer::analyze(), V0Monitor::analyze(), HLTExoticaSubAnalysis::analyze(), HLTMuonL3PreFilter::applySelection(), TwoBodyDecayVirtualMeasurement::beamSpotPosition(), PFECALSuperClusterAlgo::buildSuperCluster(), GsfElectronAlgo::createElectron(), reco::TrackBase::dxy(), reco::TrackBase::dxyError(), pat::PATMuonProducer::embedHighLevel(), pat::PATElectronProducer::embedHighLevel(), TrackToTrackComparisonHists::fill_generic_tracks_histos(), TrackToTrackComparisonHists::fill_matching_tracks_histos(), GsfTrackProducerBase::fillMode(), TrackingNtuple::fillSeeds(), PrimaryVertexValidation::fillTrackHistos(), TrackingNtuple::fillTrackingParticles(), TrackingNtuple::fillTracks(), WZInterestingEventSelector::filter(), CSCEfficiency::filter(), ConversionSeedFinder::findLayers(), V0Fitter::fitAll(), HLTMuonL3SimplePreFilter::hltFilter(), HLTMuonDimuonL2FromL1TFilter::hltFilter(), HLTMuonDimuonL2Filter::hltFilter(), HLTMuonL1toL3TkPreFilter::hltFilter(), HLTMuonL1TtoL3TkPreFilter::hltFilter(), L3MuonTrajectoryBuilder::makeTkCandCollection(), OutInConversionSeedFinder::makeTrackState(), DQMExample_Step1::MediumEle(), HIProtoTrackFilter::operator()(), TSCBLBuilderNoMaterial::operator()(), TSCBLBuilderWithPropagator::operator()(), MultiTrackSelector::processMVA(), HIBestVertexProducer::produce(), TrackRefitter::produce(), PixelVertexProducerFromSoA::produce(), VertexFromTrackProducer::produce(), AlCaGammaJetProducer::produce(), PixelVertexProducer::produce(), pat::PATConversionProducer::produce(), TrackAlgoCompareUtil::produce(), AlCaHBHEMuonProducer::produce(), PrimaryVertexProducer::produce(), SoftPFElectronTagInfoProducer::produce(), TriggerMatcherToHLTDebug::produce(), BeamFitter::readEvent(), CutBasedElectronID::robustSelection(), MuonAlignmentFromReference::run(), ElectronSeedGenerator::seedsFromThisCluster(), CosmicTrackSelector::select(), HIProtoTrackSelector::select(), MultiTrackSelector::select(), HIMultiTrackSelector::select(), HLTMuonMatchAndPlot::selectedMuons(), GsfElectronAlgo::setCutBasedPreselectionFlag(), EgammaCutBasedEleId::TestWP(), QcdUeDQM::trackSelection(), and BeamFitter::write2DB().

59 { return position_; }
Point position_
position
Definition: BeamSpot.h:145
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.

42  {
43  Point pos(x(z), y(z), z);
44  return pos;
45  }
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
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
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
void reco::BeamSpot::print ( std::stringstream &  ss) const

print information

Definition at line 47 of file BeamSpot.cc.

References BeamSpotPI::dxdz, BeamSpotPI::dydz, and BeamSpotPI::sigmaZ.

Referenced by reco::operator<<().

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 z0() const
z coordinate
Definition: BeamSpot.h:65
double sigmaZ0Error() const
error on sigma z
Definition: BeamSpot.h:92
double dydzError() const
error on dydz
Definition: BeamSpot.h:96
double emittanceX() const
additional information
Definition: BeamSpot.h:129
double betaStar() const
Definition: BeamSpot.h:131
double dydz() const
dydz slope
Definition: BeamSpot.h:80
double emittanceY() const
Definition: BeamSpot.h:130
double dxdzError() const
error on dxdz
Definition: BeamSpot.h:94
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 BeamWidthXError() const
error on beam width X, assume error in X = Y
Definition: BeamSpot.h:99
double z0Error() const
error on z
Definition: BeamSpot.h:90
double dxdz() const
dxdz slope
Definition: BeamSpot.h:78
double x0Error() const
error on x
Definition: BeamSpot.h:86
double y0Error() const
error on y
Definition: BeamSpot.h:88
double sigmaZ() const
sigma z
Definition: BeamSpot.h:76
double BeamWidthY() const
beam width Y
Definition: BeamSpot.h:84
double y0() const
y coordinate
Definition: BeamSpot.h:63
BeamType type() const
return beam type
Definition: BeamSpot.h:122
double x0() const
x coordinate
Definition: BeamSpot.h:61
BeamSpot::Covariance3DMatrix reco::BeamSpot::rotatedCovariance3D ( ) const

Definition at line 73 of file BeamSpot.cc.

References BeamSpotPI::dxdz, BeamSpotPI::dydz, makeMuonMisalignmentScenario::matrix, funct::pow(), idealTransformation::rotation, brokenline::rotationMatrix(), BeamSpotPI::sigmaZ, 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(), reco::TrackBase::dxyError(), pat::PATMuonProducer::embedHighLevel(), V0Fitter::fitAll(), PixelVertexProducerFromSoA::produce(), PixelVertexProducer::produce(), PrimaryVertexProducer::produce(), 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  }
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepStd< double, 3, 3 > > AlgebraicMatrix33
Covariance3DMatrix covariance3D() const
return only 3D position covariance matrix
Definition: BeamSpot.h:112
math::Error< dim3 >::type Covariance3DMatrix
Definition: BeamSpot.h:31
double dydz() const
dydz slope
Definition: BeamSpot.h:80
double BeamWidthX() const
beam width X
Definition: BeamSpot.h:82
double dxdz() const
dxdz slope
Definition: BeamSpot.h:78
__host__ __device__ riemannFit::Matrix2d rotationMatrix(double slope)
Computes the 2D rotation matrix that transforms the line y=slope*x into the line y=0.
Definition: BrokenLine.h:77
double sigmaZ() const
sigma z
Definition: BeamSpot.h:76
double BeamWidthY() const
beam width Y
Definition: BeamSpot.h:84
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
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
void reco::BeamSpot::setBeamWidthY ( double  v)
inline
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
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
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
void reco::BeamSpot::setType ( BeamType  type)
inline
double reco::BeamSpot::sigmaZ ( ) const
inline
double reco::BeamSpot::sigmaZ0Error ( ) const
inline
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 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 z0() const
z coordinate
Definition: BeamSpot.h:65
double dxdz() const
dxdz slope
Definition: BeamSpot.h:78
double x0() const
x coordinate
Definition: BeamSpot.h:61
double reco::BeamSpot::x0 ( ) const
inline

x coordinate

Definition at line 61 of file BeamSpot.h.

References position_.

Referenced by SiPixelPhase1MonitorVertexSoA::analyze(), PrimaryVertexMonitor::analyze(), TrackBuildingAnalyzer::analyze(), BPHMonitor::analyze(), HLTExoticaSubAnalysis::analyze(), GeneralPurposeTrackAnalyzer::analyze(), DMRChecker::analyze(), HLTMuonDimuonL3Filter::applyMuonSelection(), HLTMuonL3PreFilter::applySelection(), BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit(), FWBeamSpotProxyBuilder::build(), TrackProducerAlgorithm< reco::Track >::buildTrack(), TrackProducerAlgorithm< reco::GsfTrack >::buildTrack(), PhotonIsolationCalculator::calculateTrackIso(), TrackerSeedCleaner::clean(), GsfConstraintAtVertex::constrainAtBeamSpot(), ReferenceTrajectory::construct(), AlcaBeamSpotManager::createWeightedPayloads(), beamspot::dumpBeamSpotTxt(), BeamFitter::dumpTxtFile(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), BeamSpotHistogramMaker::fill(), TrackingNtuple::fillBeamSpot(), BeamMonitorBx::FillTables(), PrimaryVertexValidation::fillTrackHistos(), ApeEstimator::fillTrackVariables(), BeamMonitorBx::FillTrendHistos(), BSFitter::Fit(), BeamMonitor::FitAndFill(), FakeBeamMonitor::FitAndFill(), getVertexD0(), HLTDisplacedmumuFilter::hltFilter(), HLTDisplacedmumumuFilter::hltFilter(), HLTDisplacedtktkFilter::hltFilter(), HLTDisplacedtktktkFilter::hltFilter(), HLTmumutkFilter::hltFilter(), HLTmumutktkFilter::hltFilter(), HLTMuonL3SimplePreFilter::hltFilter(), HLTMuonTrimuonL3Filter::hltFilter(), HLTmmkFilter::hltFilter(), HLTmmkkFilter::hltFilter(), L2TauNNProducer::impactParameter(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), LowPtConversion::match(), HIBestVertexProducer::produce(), HIProtoTrackFilterProducer::produce(), PixelVertexProducerFromSoA::produce(), MuonSeedGenerator::produce(), SiPixelRecHitSoAFromLegacy::produce(), SETMuonSeedProducer::produce(), PixelVertexProducer::produce(), BeamSpotToCUDA::produce(), SteppingHelixPropagator::propagateWithPath(), GlobalTrackingRegionProducerFromBeamSpot::regions(), TrackingRegionsFromBeamSpotAndL2Tau::regions(), GlobalTrackingRegionWithVerticesProducer::regions(), HITrackingRegionForPrimaryVtxProducer::regions(), BeamFitter::runFitterNoTxt(), BeamFitter::runPVandTrkFitter(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), QcdUeDQM::trackSelection(), MuonUpdatorAtVertex::update(), PrimaryVertexMonitor::vertexPlots(), BeamMonitorBx::weight(), BSvsPVHistogramMaker::x(), x(), and FWBeamSpot::x0().

61 { return position_.X(); }
Point position_
position
Definition: BeamSpot.h:145
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 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 z0() const
z coordinate
Definition: BeamSpot.h:65
double dydz() const
dydz slope
Definition: BeamSpot.h:80
double y0() const
y coordinate
Definition: BeamSpot.h:63
double reco::BeamSpot::y0 ( ) const
inline

y coordinate

Definition at line 63 of file BeamSpot.h.

References position_.

Referenced by SiPixelPhase1MonitorVertexSoA::analyze(), PrimaryVertexMonitor::analyze(), TrackBuildingAnalyzer::analyze(), BPHMonitor::analyze(), HLTExoticaSubAnalysis::analyze(), GeneralPurposeTrackAnalyzer::analyze(), DMRChecker::analyze(), HLTMuonDimuonL3Filter::applyMuonSelection(), HLTMuonL3PreFilter::applySelection(), BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit(), FWBeamSpotProxyBuilder::build(), TrackProducerAlgorithm< reco::Track >::buildTrack(), TrackProducerAlgorithm< reco::GsfTrack >::buildTrack(), PhotonIsolationCalculator::calculateTrackIso(), TrackerSeedCleaner::clean(), GsfConstraintAtVertex::constrainAtBeamSpot(), ReferenceTrajectory::construct(), AlcaBeamSpotManager::createWeightedPayloads(), beamspot::dumpBeamSpotTxt(), BeamFitter::dumpTxtFile(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), BeamSpotHistogramMaker::fill(), TrackingNtuple::fillBeamSpot(), BeamMonitorBx::FillTables(), PrimaryVertexValidation::fillTrackHistos(), ApeEstimator::fillTrackVariables(), BeamMonitorBx::FillTrendHistos(), BSFitter::Fit(), BeamMonitor::FitAndFill(), FakeBeamMonitor::FitAndFill(), getVertexD0(), HLTDisplacedmumuFilter::hltFilter(), HLTDisplacedmumumuFilter::hltFilter(), HLTDisplacedtktkFilter::hltFilter(), HLTDisplacedtktktkFilter::hltFilter(), HLTmumutkFilter::hltFilter(), HLTmumutktkFilter::hltFilter(), HLTMuonL3SimplePreFilter::hltFilter(), HLTMuonTrimuonL3Filter::hltFilter(), HLTmmkFilter::hltFilter(), HLTmmkkFilter::hltFilter(), L2TauNNProducer::impactParameter(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), LowPtConversion::match(), HIBestVertexProducer::produce(), HIProtoTrackFilterProducer::produce(), PixelVertexProducerFromSoA::produce(), MuonSeedGenerator::produce(), SiPixelRecHitSoAFromLegacy::produce(), SETMuonSeedProducer::produce(), PixelVertexProducer::produce(), BeamSpotToCUDA::produce(), SteppingHelixPropagator::propagateWithPath(), GlobalTrackingRegionProducerFromBeamSpot::regions(), TrackingRegionsFromBeamSpotAndL2Tau::regions(), GlobalTrackingRegionWithVerticesProducer::regions(), HITrackingRegionForPrimaryVtxProducer::regions(), BeamFitter::runFitterNoTxt(), BeamFitter::runPVandTrkFitter(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), QcdUeDQM::trackSelection(), MuonUpdatorAtVertex::update(), PrimaryVertexMonitor::vertexPlots(), BeamMonitorBx::weight(), BSvsPVHistogramMaker::y(), y(), and FWBeamSpot::y0().

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

z coordinate

Definition at line 65 of file BeamSpot.h.

References position_.

Referenced by SiPixelPhase1MonitorVertexSoA::analyze(), PrimaryVertexMonitor::analyze(), TrackBuildingAnalyzer::analyze(), BPHMonitor::analyze(), GeneralPurposeTrackAnalyzer::analyze(), DMRChecker::analyze(), HLTMuonDimuonL3Filter::applyMuonSelection(), HLTMuonL3PreFilter::applySelection(), BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit(), FWBeamSpotProxyBuilder::build(), TrackProducerAlgorithm< reco::Track >::buildTrack(), TrackProducerAlgorithm< reco::GsfTrack >::buildTrack(), PhotonIsolationCalculator::calculateTrackIso(), TrackerSeedCleaner::clean(), GsfConstraintAtVertex::constrainAtBeamSpot(), ReferenceTrajectory::construct(), AlcaBeamSpotManager::createWeightedPayloads(), beamspot::dumpBeamSpotTxt(), BeamFitter::dumpTxtFile(), MuonVPlusJetsIDSelectionFunctor::fall10Cuts(), BeamSpotHistogramMaker::fill(), BSvsPVHistogramMaker::fill(), BeamMonitorBx::FillTables(), ApeEstimator::fillTrackVariables(), BeamMonitorBx::FillTrendHistos(), QcdUeDQM::fillVtxPlots(), BSFitter::Fit(), BeamMonitor::FitAndFill(), FakeBeamMonitor::FitAndFill(), HLTmumutkFilter::hltFilter(), HLTDisplacedmumuFilter::hltFilter(), HLTDisplacedmumumuFilter::hltFilter(), HLTDisplacedtktkFilter::hltFilter(), HLTDisplacedtktktkFilter::hltFilter(), HLTmumutktkFilter::hltFilter(), HLTMuonL3SimplePreFilter::hltFilter(), HLTMuonTrimuonL3Filter::hltFilter(), HLTmmkkFilter::hltFilter(), HLTmmkFilter::hltFilter(), L2TauNNProducer::impactParameter(), MuonVPlusJetsIDSelectionFunctor::kitQCDCuts(), HIProtoTrackFilterProducer::produce(), PixelVertexProducerFromSoA::produce(), MuonSeedGenerator::produce(), SiPixelRecHitSoAFromLegacy::produce(), SETMuonSeedProducer::produce(), PixelVertexProducer::produce(), BeamSpotToCUDA::produce(), SteppingHelixPropagator::propagateWithPath(), GlobalTrackingRegionProducerFromBeamSpot::regions(), TrackingRegionsFromBeamSpotAndL2Tau::regions(), GlobalTrackingRegionWithVerticesProducer::regions(), HITrackingRegionForPrimaryVtxProducer::regions(), BeamFitter::runFitterNoTxt(), BeamFitter::runPVandTrkFitter(), MuonVPlusJetsIDSelectionFunctor::spring10Cuts(), QcdUeDQM::trackSelection(), MuonUpdatorAtVertex::update(), PrimaryVertexMonitor::vertexPlots(), BeamMonitorBx::weight(), BSvsPVHistogramMaker::x(), x(), BSvsPVHistogramMaker::y(), y(), and FWBeamSpot::z0().

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

Member Data Documentation

Double32_t reco::BeamSpot::BeamWidthX_
private

Definition at line 150 of file BeamSpot.h.

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

Double32_t reco::BeamSpot::BeamWidthY_
private

Definition at line 151 of file BeamSpot.h.

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

Double32_t reco::BeamSpot::betaStar_
private

Definition at line 156 of file BeamSpot.h.

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

Double32_t reco::BeamSpot::dxdz_
private

Definition at line 152 of file BeamSpot.h.

Referenced by BeamSpot(), and dxdz().

Double32_t reco::BeamSpot::dydz_
private

Definition at line 153 of file BeamSpot.h.

Referenced by BeamSpot(), and dydz().

Double32_t reco::BeamSpot::emittanceX_
private

Definition at line 154 of file BeamSpot.h.

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

Double32_t reco::BeamSpot::emittanceY_
private

Definition at line 155 of file BeamSpot.h.

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

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

position

Definition at line 145 of file BeamSpot.h.

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

Double32_t reco::BeamSpot::sigmaZ_
private

Definition at line 149 of file BeamSpot.h.

Referenced by BeamSpot(), and sigmaZ().

BeamType reco::BeamSpot::type_
private