|
|
Go to the documentation of this file.
39 std::optional<edm::ESGetToken<StripClusterParameterEstimator, TkStripCPERecord>>
spToken_;
40 std::optional<edm::ESGetToken<PixelClusterParameterEstimator, TkPixelCPERecord>>
ppToken_;
41 std::optional<edm::ESGetToken<SiStripRecHitMatcher, TkStripCPERecord>>
mpToken_;
48 template <
typename T,
typename R>
59 : computeCoarseLocalPositionFromDisk_(
p.getParameter<
bool>(
"ComputeCoarseLocalPositionFromDisk")) {
65 if (sname !=
"Fake") {
70 if (
pname !=
"Fake") {
74 auto const mname =
p.getParameter<
std::string>(
"Matcher");
75 if (mname !=
"Fake") {
79 auto const P2otname =
p.getParameter<
std::string>(
"Phase2StripCPE");
80 if (!P2otname.empty()) {
104 <<
" The tracking rec hit positions and errors are not a persistent in data formats.\n"
105 <<
" They are not available from disk.\n"
106 <<
" However, TkTransientTrackingRecHitBuilderESProducer::ComputeCoarseLocalPositionFromDisk=True \n"
107 <<
" will make the coarse estimation of this position/error available without track refit.\n"
108 <<
" Position/error obtained from rechit with already defined position/error are not recomputed.\n"
109 <<
" Position/error obtained from track refit are precise.";
115 return std::make_unique<TkTransientTrackingRecHitBuilder>(&
dd,
pp, &iRecord.
get(*
p2OTToken_));
124 desc.
add<
bool>(
"ComputeCoarseLocalPositionFromDisk");
125 desc.
add<
std::string>(
"StripCPE")->setComment(
"Using \"Fake\" disables use of StripCPE");
126 desc.
add<
std::string>(
"PixelCPE")->setComment(
"Using \"Fake\" disables use of PixelCPE");
127 desc.
add<
std::string>(
"Matcher")->setComment(
"Using \"Fake\" disables use of SiStripRecHitMatcher");
128 desc.
add<
std::string>(
"Phase2StripCPE",
"")->setComment(
"Using empty string disables use of Phase2StripCPE");
std::optional< edm::ESGetToken< PixelClusterParameterEstimator, TkPixelCPERecord > > ppToken_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::optional< edm::ESGetToken< StripClusterParameterEstimator, TkStripCPERecord > > spToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomToken_
const bool computeCoarseLocalPositionFromDisk_
TkTransientTrackingRecHitBuilderESProducer(const edm::ParameterSet &p)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
std::optional< edm::ESGetToken< ClusterParameterEstimator< Phase2TrackerCluster1D >, TkStripCPERecord > > p2OTToken_
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
std::optional< edm::ESGetToken< SiStripRecHitMatcher, TkStripCPERecord > > mpToken_
auto consumesFrom(ESInputTag const &tag)
std::unique_ptr< TransientTrackingRecHitBuilder > produce(const TransientRecHitRecord &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void addDefault(ParameterSetDescription const &psetDescription)