43 setWhatProduced(this).consumes(edm::
ESInputTag(
"", iConfig.getParameter<std::
string>(
"lhcInfoLabel")))) {
69 const auto beamMom = lhcInfo.
energy();
70 const auto betaStar = lhcInfo.
betaStar() * 1E2;
73 bp->setBeamMom45(beamMom);
74 bp->setBeamMom56(beamMom);
76 bp->setBetaStarX45(betaStar);
77 bp->setBetaStarX56(betaStar);
78 bp->setBetaStarY45(betaStar);
79 bp->setBetaStarY56(betaStar);
81 bp->setHalfXangleX45(xangle);
82 bp->setHalfXangleX56(xangle);
83 bp->setHalfXangleY45(xangle);
84 bp->setHalfXangleY56(xangle);
97 desc.
add<
double>(
"beamDivX45", 0.1);
98 desc.
add<
double>(
"beamDivY45", 0.1);
99 desc.
add<
double>(
"beamDivX56", 0.1);
100 desc.
add<
double>(
"beamDivY56", 0.1);
103 desc.
add<
double>(
"vtxOffsetX45", 1.e-2);
104 desc.
add<
double>(
"vtxOffsetY45", 1.e-2);
105 desc.
add<
double>(
"vtxOffsetZ45", 1.e-2);
106 desc.
add<
double>(
"vtxOffsetX56", 1.e-2);
107 desc.
add<
double>(
"vtxOffsetY56", 1.e-2);
108 desc.
add<
double>(
"vtxOffsetZ56", 1.e-2);
111 desc.
add<
double>(
"vtxStddevX", 2.e-2);
112 desc.
add<
double>(
"vtxStddevY", 2.e-2);
113 desc.
add<
double>(
"vtxStddevZ", 2.e-2);
115 descriptions.
add(
"ctppsBeamParametersFromLHCInfoESSource", desc);
static void fillDescriptions(edm::ConfigurationDescriptions &)
void setBeamDivergenceY45(double div)
std::unique_ptr< CTPPSBeamParameters > produce(const CTPPSBeamParametersRcd &)
void setVtxStddevX(double stddev)
void setVtxStddevZ(double stddev)
CTPPSBeamParametersFromLHCInfoESSource(const edm::ParameterSet &)
void setVtxOffsetY56(double offset)
float const crossingAngle() const
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
void setBeamDivergenceX56(double div)
void setBeamDivergenceX45(double div)
void setVtxOffsetZ56(double offset)
void setVtxStddevY(double stddev)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void setVtxOffsetX45(double offset)
void setBeamDivergenceY56(double div)
const edm::ESGetToken< LHCInfo, LHCInfoRcd > lhcInfoToken_
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void setVtxOffsetY45(double offset)
float const betaStar() const
float const energy() const
~CTPPSBeamParametersFromLHCInfoESSource() override=default
CTPPSBeamParameters defaultParameters_
void setVtxOffsetZ45(double offset)
void setVtxOffsetX56(double offset)