45 if (
p.getParameter<
std::string>(
"EnergyLossUpdator") !=
"GsfBetheHeitlerUpdator") {
46 return std::optional<BetheHeitlerInit>();
48 return std::make_optional<BetheHeitlerInit>(
p.getParameter<
std::string>(
"BetheHeitlerParametrization"),
49 p.getParameter<
int>(
"BetheHeitlerCorrection"));
60 : betheHeitlerInit_(doInit(
p)),
61 mass_(
p.getParameter<double>(
"Mass")),
62 useMultipleScattering_(
p.getParameter<
std::
string>(
"MultipleScatteringUpdator") ==
"GsfMultipleScatteringUpdator")
71 std::unique_ptr<GsfMaterialEffectsUpdator> msUpdator;
73 msUpdator = std::make_unique<GsfMultipleScatteringUpdator>(
mass_);
78 std::unique_ptr<GsfMaterialEffectsUpdator> elUpdator;
85 auto updator = std::make_unique<GsfCombinedMaterialEffectsUpdator>(*msUpdator, *elUpdator);
94 desc.add<
double>(
"Mass");
const bool useMultipleScattering_
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
std::optional< BetheHeitlerInit > betheHeitlerInit_
std::unique_ptr< GsfMaterialEffectsUpdator > produce(const TrackingComponentsRecord &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void addDefault(ParameterSetDescription const &psetDescription)
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
BetheHeitlerInit(std::string iName, int iCorrection)
std::optional< BetheHeitlerInit > doInit(const edm::ParameterSet &p)
GsfMaterialEffectsESProducer(const edm::ParameterSet &p)
MultipleScatteringUpdator