33 desc.add<
bool>(
"incldt",
true);
34 desc.add<
bool>(
"inclcsc",
true);
35 desc.add<
bool>(
"incltrack",
false);
36 desc.addUntracked<
bool>(
"debug",
false);
37 desc.add<
double>(
"rangestrips", 4.);
38 desc.add<
double>(
"rangestripsRB4", 4.);
39 desc.add<
double>(
"MinCosAng", 0.85);
40 desc.add<
double>(
"MaxD", 80.0);
41 desc.add<
double>(
"MaxDrb4", 150.0);
42 desc.add<
double>(
"ExtrapolatedRegion", 0.5);
46 desc.add<
int>(
"minBX", -2);
47 desc.add<
int>(
"maxBX", 2);
49 descNested.
add<
bool>(
"DoPredictionsOnly",
false);
50 descNested.add<
std::string>(
"Fitter",
"KFFitterForRefitInsideOut");
51 descNested.add<
std::string>(
"TrackerRecHitBuilder",
"WithTrackAngle");
52 descNested.add<
std::string>(
"Smoother",
"KFSmootherForRefitInsideOut");
53 descNested.add<
std::string>(
"MuonRecHitBuilder",
"MuonRecHitBuilder");
54 descNested.add<
std::string>(
"RefitDirection",
"alongMomentum");
55 descNested.add<
bool>(
"RefitRPCHits",
false);
56 descNested.add<
std::string>(
"Propagator",
"SmartPropagatorAnyRKOpposite");
59 descriptions.
add(
"rpcPointProducer",
desc);
63 :
incldt(iConfig.getParameter<
bool>(
"incldt")),
65 incltrack(iConfig.getParameter<
bool>(
"incltrack")),
66 debug(iConfig.getUntrackedParameter<
bool>(
"debug")),
67 MinCosAng(iConfig.getParameter<double>(
"MinCosAng")),
68 MaxD(iConfig.getParameter<double>(
"MaxD")),
69 MaxDrb4(iConfig.getParameter<double>(
"MaxDrb4")),
70 ExtrapolatedRegion(iConfig.getParameter<double>(
"ExtrapolatedRegion")) {
73 dtSegtoRPC = std::make_unique<DTSegtoRPC>(consumesCollector(), iConfig);
77 cscSegtoRPC = std::make_unique<CSCSegtoRPC>(consumesCollector(), iConfig);
86 produces<RPCRecHitCollection>(
"RPCDTExtrapolatedPoints");
87 produces<RPCRecHitCollection>(
"RPCCSCExtrapolatedPoints");
88 produces<RPCRecHitCollection>(
"RPCTrackExtrapolatedPoints");
97 "RPCDTExtrapolatedPoints");
100 LogDebug(
"RPCPointProducer") <<
"RPCHLT Invalid DTSegments collection" << std::endl;
107 if (allCSCSegments.
isValid()) {
109 "RPCCSCExtrapolatedPoints");
112 LogDebug(
"RPCPointProducer") <<
"RPCHLT Invalid CSCSegments collection" << std::endl;
118 if (!(alltracks->empty())) {
122 LogDebug(
"RPCPointProducer") <<
"RPCHLT Invalid Tracks collection" << std::endl;
const double ExtrapolatedRegion
T getParameter(std::string const &) const
std::unique_ptr< TracktoRPC > tracktoRPC
void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< CSCSegmentCollection > cscSegments
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< DTRecSegment4DCollection > dt4DSegments
T const * product() const
std::unique_ptr< CSCSegtoRPC > cscSegtoRPC
ParameterDescriptionBase * add(U const &iLabel, T const &value)
RPCPointProducer(const edm::ParameterSet &)
edm::EDGetTokenT< reco::TrackCollection > tracks
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::unique_ptr< DTSegtoRPC > dtSegtoRPC