|
|
Go to the documentation of this file.
48 : changeFrame_(iconf.getParameter<
bool>(
"changeToCMSCoordinates")),
49 theMaxZ(iconf.getParameter<double>(
"maxZ")),
50 theSetSigmaZ(iconf.getParameter<double>(
"setSigmaZ")),
54 theBeamShoutMode(iconf.getUntrackedParameter<unsigned
int>(
"beamMode", 11)) {
58 produces<reco::BeamSpot>();
63 bool shoutMODE =
false;
80 auto result = std::make_unique<reco::BeamSpot>();
84 bool fallBackToDB =
false;
85 if (!handleScaler->empty()) {
87 spotOnline = *(handleScaler->begin());
116 if (spotOnline.
x() == 0 && spotOnline.
y() == 0 && spotOnline.
z() == 0 && spotOnline.
width_x() == 0 &&
120 <<
"Online Beam Spot producer falls back to DB value because the scaler values are zero ";
124 double r2 = spotOnline.
x() * spotOnline.
x() + spotOnline.
y() * spotOnline.
y();
128 <<
"Online Beam Spot producer falls back to DB value because the scaler values are too big to be true :"
129 << spotOnline.
x() <<
" " << spotOnline.
y() <<
" " << spotOnline.
z();
147 for (
int i = 0;
i < 7; ++
i) {
148 for (
int j = 0;
j < 7; ++
j) {
T const * product() const
double GetBeamWidthY() const
get average transverse beam width
double Getdxdz() const
get dxdz slope, crossing angle in XZ
const edm::ESGetToken< BeamSpotObjects, BeamSpotObjectsRcd > beamToken_
void setBeamWidthY(double v)
void setEmittanceY(double v)
double GetSigmaZ() const
get sigma Z, RMS bunch length
const L1GtfeExtWord gtfeWord() const
get / set GTFE word (record) in the GT readout record
double GetZ() const
get Z beam position
float err_sigma_z() const
Log< level::Warning, false > LogWarning
#define DEFINE_FWK_MODULE(type)
double GetCovariance(int i, int j) const
get i,j element of the full covariance matrix 7x7
void setEmittanceX(double v)
const double theSetSigmaZ
double GetBetaStar() const
get beta star
double GetEmittanceX() const
get emittance
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
produce a beam spot class
double GetY() const
get Y beam position
void setbetaStar(double v)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
BeamSpotOnlineProducer(const edm::ParameterSet &iConf)
constructor
math::Error< dimension >::type CovarianceMatrix
const edm::EDGetTokenT< BeamSpotOnlineCollection > scalerToken_
Log< level::Error, false > LogError
double GetBeamWidthX() const
get average transverse beam width
double GetEmittanceY() const
get emittance
double Getdydz() const
get dydz slope, crossing angle in YZ
const edm::EDGetTokenT< L1GlobalTriggerEvmReadoutRecord > l1GtEvmReadoutRecordToken_
std::vector< BeamSpotOnline > BeamSpotOnlineCollection
T getParameter(std::string const &) const
math::XYZPoint Point
point in the space
const unsigned int theBeamShoutMode
void setType(BeamType type)
set beam type
double GetX() const
get X beam position
const cms_uint16_t beamMode() const