Skip to content

Commit

Permalink
Rename MuonTrackingRegionBuilder::fillDescriptions2() to fillDescript…
Browse files Browse the repository at this point in the history
…ionsOffline()
  • Loading branch information
makortel committed Nov 18, 2016
1 parent 6d9695d commit 886beb8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion RecoHI/HiMuonAlgos/plugins/HIMuonTrackingRegionProducer.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class HIMuonTrackingRegionProducer : public TrackingRegionProducer {
desc.add<edm::InputTag>("MuonSrc", edm::InputTag(""));

edm::ParameterSetDescription descRegion;
MuonTrackingRegionBuilder::fillDescriptions2(descRegion);
MuonTrackingRegionBuilder::fillDescriptionsOffline(descRegion);
desc.add("MuonTrackingRegionBuilder", descRegion);

edm::ParameterSetDescription descService;
Expand Down
15 changes: 4 additions & 11 deletions RecoMuon/GlobalTrackingTools/interface/MuonTrackingRegionBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,10 @@ class MuonTrackingRegionBuilder : public TrackingRegionProducer {
/// Add Fill Descriptions
static void fillDescriptions(edm::ParameterSetDescription& descriptions);

// 2016-08-10 MK: I'm pretty sure the fillDescriptions() above is
// not used in practice by any EDModule (it's called by
// L3MuonTrajectoryBuilder::fillDescriptions(), which itself is
// not called by anybody). I'm mainly confused that the
// fillDescriptions() above adds two PSets
// ("MuonTrackingRegionBuilder" and
// "hltMuonTrackingRegionBuilder") to the argument PSet, while to
// me it would make most sense to just fill the PSet (although I
// could be missing something). This is the behaviour of this
// fillDescriptions2() below.
static void fillDescriptions2(edm::ParameterSetDescription& descriptions);
// Separating the offline part of the fillDescriptions() above
// TODO: make similar fillDescriptionsHLT, and switch the
// fillDescriptions() above take edm::ConfigurationDescriptions&
static void fillDescriptionsOffline(edm::ParameterSetDescription& descriptions);

private:

Expand Down
4 changes: 2 additions & 2 deletions RecoMuon/GlobalTrackingTools/src/MuonTrackingRegionBuilder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ std::unique_ptr<RectangularEtaPhiTrackingRegion> MuonTrackingRegionBuilder::regi
void MuonTrackingRegionBuilder::fillDescriptions(edm::ParameterSetDescription& descriptions) {
{
edm::ParameterSetDescription desc;
fillDescriptions2(desc);
fillDescriptionsOffline(desc);
descriptions.add("MuonTrackingRegionBuilder",desc);
}
{
Expand Down Expand Up @@ -291,7 +291,7 @@ void MuonTrackingRegionBuilder::fillDescriptions(edm::ParameterSetDescription& d
descriptions.setComment("Build a TrackingRegion around a standalone muon. Options to define region around beamspot or primary vertex and dynamic regions are included.");
}

void MuonTrackingRegionBuilder::fillDescriptions2(edm::ParameterSetDescription& desc) {
void MuonTrackingRegionBuilder::fillDescriptionsOffline(edm::ParameterSetDescription& desc) {
desc.add<double>("EtaR_UpperLimit_Par1",0.25);
desc.add<double>("DeltaR",0.2);
desc.add<edm::InputTag>("beamSpot",edm::InputTag(""));
Expand Down

0 comments on commit 886beb8

Please sign in to comment.