56 std::unique_ptr<CTPPSBeamParameters> fillBeamParameters();
78 : setBeamPars_(iConfig.getParameter<
bool>(
"setBeamPars")),
109 findingRecord<CTPPSBeamParametersRcd>();
118 edm::LogInfo(
"CTPPSBeamParametersESSource::produce") <<
"\n" << *bp;
157 auto p = std::make_unique<CTPPSBeamParameters>();
200 <<
">> CTPPSBeamParametersESSource::setIntervalFor(" <<
key.name() <<
")\n" 211 desc.add<
bool>(
"setBeamPars",
true);
213 desc.add<
double>(
"beamMom45", 6500.);
214 desc.add<
double>(
"beamMom56", 6500.);
216 desc.add<
double>(
"betaStarX45", 30.);
217 desc.add<
double>(
"betaStarY45", 30.);
218 desc.add<
double>(
"betaStarX56", 30.);
219 desc.add<
double>(
"betaStarY56", 30.);
221 desc.add<
double>(
"beamDivX45", 0.1);
222 desc.add<
double>(
"beamDivY45", 0.1);
223 desc.add<
double>(
"beamDivX56", 0.1);
224 desc.add<
double>(
"beamDivY56", 0.1);
226 desc.add<
double>(
"halfXangleX45", 80.e-6);
227 desc.add<
double>(
"halfXangleY45", 80.e-6);
228 desc.add<
double>(
"halfXangleX56", 80.e-6);
229 desc.add<
double>(
"halfXangleY56", 80.e-6);
231 desc.add<
double>(
"vtxOffsetX45", 1.e-2);
232 desc.add<
double>(
"vtxOffsetY45", 1.e-2);
233 desc.add<
double>(
"vtxOffsetZ45", 1.e-2);
234 desc.add<
double>(
"vtxOffsetT45", 1.e-2);
235 desc.add<
double>(
"vtxOffsetX56", 1.e-2);
236 desc.add<
double>(
"vtxOffsetY56", 1.e-2);
237 desc.add<
double>(
"vtxOffsetZ56", 1.e-2);
238 desc.add<
double>(
"vtxOffsetT56", 1.e-2);
240 desc.add<
double>(
"vtxStddevX", 2.e-2);
241 desc.add<
double>(
"vtxStddevY", 2.e-2);
242 desc.add<
double>(
"vtxStddevZ", 2.e-2);
243 desc.add<
double>(
"vtxStddevT", 2.e-2);
245 descriptions.
add(
"ctppsBeamParametersESSource",
desc);
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
T getParameter(std::string const &) const
static const IOVSyncValue & endOfTime()
CTPPSBeamParametersESSource(const edm::ParameterSet &)
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
sets infinite validity of this data
static const IOVSyncValue & beginOfTime()
key
prepare the HTCondor submission files and eventually submit them
Log< level::Info, false > LogInfo
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const EventID & eventID() const
std::unique_ptr< CTPPSBeamParameters > produce(const CTPPSBeamParametersRcd &)
std::unique_ptr< CTPPSBeamParameters > fillBeamParameters()
Fill CTPPSBeamParameters object with BP.
void setBeamParameters(const edm::ParameterSet &)
Set BP to their values from config.
EventNumber_t event() const
Loads CTPPSBeamParameters from a config file.