59 std::unique_ptr<CTPPSBeamParameters> fillBeamParameters();
80 setBeamPars_( iConfig.getParameter<
bool>(
"setBeamPars" ) ),
81 beamMom45_( 0. ), beamMom56_( 0. ),
82 betaStarX45_( 0. ), betaStarY45_( 0. ), betaStarX56_( 0. ), betaStarY56_( 0. ),
83 beamDivX45_( 0. ), beamDivY45_( 0. ), beamDivX56_( 0. ), beamDivY56_( 0. ),
84 halfXangleX45_( 0. ), halfXangleY45_( 0. ),
85 halfXangleX56_( 0. ), halfXangleY56_( 0. ),
86 vtxOffsetX45_( 0. ), vtxOffsetY45_( 0. ), vtxOffsetZ45_( 0. ),
87 vtxOffsetX56_( 0. ), vtxOffsetY56_( 0. ), vtxOffsetZ56_( 0. ),
88 vtxStddevX_( 0. ), vtxStddevY_( 0. ), vtxStddevZ_( 0. )
94 findingRecord<CTPPSBeamParametersRcd>();
99 std::unique_ptr<CTPPSBeamParameters>
105 : std::make_unique<CTPPSBeamParameters>();
107 edm::LogInfo(
"CTPPSBeamParametersESSource::produce") <<
"\n" << *bp;
144 std::unique_ptr<CTPPSBeamParameters>
147 auto p = std::make_unique<CTPPSBeamParameters>();
188 <<
">> CTPPSBeamParametersESSource::setIntervalFor(" << key.
name() <<
")\n" 201 desc.
add<
bool>(
"setBeamPars",
true );
203 desc.
add<
double>(
"beamMom45", 6500. );
204 desc.
add<
double>(
"beamMom56", 6500. );
206 desc.
add<
double>(
"betaStarX45", 30. );
207 desc.
add<
double>(
"betaStarY45", 30. );
208 desc.
add<
double>(
"betaStarX56", 30. );
209 desc.
add<
double>(
"betaStarY56", 30. );
211 desc.
add<
double>(
"beamDivX45", 0.1 );
212 desc.
add<
double>(
"beamDivY45", 0.1 );
213 desc.
add<
double>(
"beamDivX56", 0.1 );
214 desc.
add<
double>(
"beamDivY56", 0.1 );
216 desc.
add<
double>(
"halfXangleX45", 80.e-6 );
217 desc.
add<
double>(
"halfXangleY45", 80.e-6 );
218 desc.
add<
double>(
"halfXangleX56", 80.e-6 );
219 desc.
add<
double>(
"halfXangleY56", 80.e-6 );
221 desc.
add<
double>(
"vtxOffsetX45", 1.e-2 );
222 desc.
add<
double>(
"vtxOffsetY45", 1.e-2 );
223 desc.
add<
double>(
"vtxOffsetZ45", 1.e-2 );
224 desc.
add<
double>(
"vtxOffsetX56", 1.e-2 );
225 desc.
add<
double>(
"vtxOffsetY56", 1.e-2 );
226 desc.
add<
double>(
"vtxOffsetZ56", 1.e-2 );
228 desc.
add<
double>(
"vtxStddevX", 2.e-2 );
229 desc.
add<
double>(
"vtxStddevY", 2.e-2 );
230 desc.
add<
double>(
"vtxStddevZ", 2.e-2 );
232 descriptions.
add(
"ctppsBeamParametersESSource", desc );
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
EventNumber_t event() const
const EventID & eventID() 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()
const char * name() const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::unique_ptr< CTPPSBeamParameters > produce(const CTPPSBeamParametersRcd &)
std::unique_ptr< CTPPSBeamParameters > fillBeamParameters()
Fill CTPPSBeamParameters object with BP.
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
void setBeamParameters(const edm::ParameterSet &)
Set BP to their values from config.
Loads CTPPSBeamParameters from a config file.