45 : useNewLHCInfo_(iConfig.getParameter<
bool>(
"useNewLHCInfo")) {
72 auto lhcInfoCombined =
79 const auto beamMom = lhcInfoCombined.energy;
80 const auto betaStar = lhcInfoCombined.betaStarX * 1E2;
81 const auto xangle = lhcInfoCombined.crossingAngle() * 1E-6;
83 bp->setBeamMom45(beamMom);
84 bp->setBeamMom56(beamMom);
91 bp->setHalfXangleX45(
xangle);
92 bp->setHalfXangleX56(
xangle);
93 bp->setHalfXangleY45(
xangle);
94 bp->setHalfXangleY56(
xangle);
107 desc.add<
bool>(
"useNewLHCInfo",
false);
110 desc.add<
double>(
"beamDivX45", 0.1);
111 desc.add<
double>(
"beamDivY45", 0.1);
112 desc.add<
double>(
"beamDivX56", 0.1);
113 desc.add<
double>(
"beamDivY56", 0.1);
116 desc.add<
double>(
"vtxOffsetX45", 1.e-2);
117 desc.add<
double>(
"vtxOffsetY45", 1.e-2);
118 desc.add<
double>(
"vtxOffsetZ45", 1.e-2);
119 desc.add<
double>(
"vtxOffsetX56", 1.e-2);
120 desc.add<
double>(
"vtxOffsetY56", 1.e-2);
121 desc.add<
double>(
"vtxOffsetZ56", 1.e-2);
124 desc.add<
double>(
"vtxStddevX", 2.e-2);
125 desc.add<
double>(
"vtxStddevY", 2.e-2);
126 desc.add<
double>(
"vtxStddevZ", 2.e-2);
128 descriptions.
add(
"ctppsBeamParametersFromLHCInfoESSourceDefault",
desc);
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
T getParameter(std::string const &) const
edm::ESGetToken< LHCInfoPerFill, LHCInfoPerFillRcd > lhcInfoPerFillToken_
edm::ESGetToken< LHCInfoPerLS, LHCInfoPerLSRcd > lhcInfoPerLSToken_
static void fillDescriptions(edm::ConfigurationDescriptions &)
void setBeamDivergenceY45(double div)
uint32_t cc[maxCellsPerHit]
std::unique_ptr< CTPPSBeamParameters > produce(const CTPPSBeamParametersRcd &)
void setVtxStddevX(double stddev)
void setVtxStddevZ(double stddev)
CTPPSBeamParametersFromLHCInfoESSource(const edm::ParameterSet &)
void setVtxOffsetY56(double offset)
const bool useNewLHCInfo_
void setBeamDivergenceX56(double div)
void setBeamDivergenceX45(double div)
void setVtxOffsetZ56(double offset)
edm::ESGetToken< LHCInfo, LHCInfoRcd > lhcInfoToken_
void setVtxStddevY(double stddev)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void setVtxOffsetX45(double offset)
void setBeamDivergenceY56(double div)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void setVtxOffsetY45(double offset)
~CTPPSBeamParametersFromLHCInfoESSource() override=default
CTPPSBeamParameters defaultParameters_
void setVtxOffsetZ45(double offset)
void setVtxOffsetX56(double offset)
static LHCInfoCombined createLHCInfoCombined(const edm::eventsetup::DependentRecordImplementation< RecordT, ListT > &iRecord, const edm::ESGetToken< LHCInfoPerLS, LHCInfoPerLSRcd > &tokenInfoPerLS, const edm::ESGetToken< LHCInfoPerFill, LHCInfoPerFillRcd > &tokenInfoPerFill, const edm::ESGetToken< LHCInfo, LHCInfoRcd > &tokenInfo, bool useNewLHCInfo)