Skip to content

Commit

Permalink
Add default values in {CaloRecHitSoA,PFRecHitSoA,LegacyPFRecHit,PFClu…
Browse files Browse the repository at this point in the history
…sterSoA}Producer::fillDescriptions
  • Loading branch information
missirol committed Mar 3, 2024
1 parent 695ed78 commit 8e6c70f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE {

static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
edm::ParameterSetDescription desc;
desc.add<edm::InputTag>("pfRecHits");
desc.add<edm::ESInputTag>("pfClusterParams");
desc.add<edm::ESInputTag>("topology");
desc.add<bool>("synchronise");
desc.add<edm::InputTag>("pfRecHits", edm::InputTag(""));
desc.add<edm::ESInputTag>("pfClusterParams", edm::ESInputTag(""));
desc.add<edm::ESInputTag>("topology", edm::ESInputTag(""));
desc.add<bool>("synchronise", false);
desc.add<int>("pfRecHitFractionAllocation", 120);
descriptions.addWithDefaultLabel(desc);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class LegacyPFRecHitProducer : public edm::stream::EDProducer<> {

static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
edm::ParameterSetDescription desc;
desc.add<edm::InputTag>("src");
desc.add<edm::InputTag>("src", edm::InputTag(""));
descriptions.addWithDefaultLabel(desc);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE {

static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
edm::ParameterSetDescription desc;
desc.add<edm::InputTag>("src")->setComment("Input calorimeter rec hit collection");
desc.add<edm::InputTag>("src", edm::InputTag(""))->setComment("Input calorimeter rec hit collection");
desc.addUntracked<bool>("synchronise", false)
->setComment("Add synchronisation point after execution (for benchmarking asynchronous execution)");
descriptions.addWithDefaultLabel(desc);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,13 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE {
static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
edm::ParameterSetDescription desc;
edm::ParameterSetDescription producers;
producers.add<edm::InputTag>("src")->setComment("Input CaloRecHitSoA");
producers.add<edm::ESInputTag>("params")->setComment("Quality cut parameters");
desc.addVPSet("producers", producers)->setComment("List of inputs and quality cuts");
desc.add<edm::ESInputTag>("topology")->setComment("Topology information");
producers.add<edm::InputTag>("src", edm::InputTag(""))->setComment("Input CaloRecHitSoA");
producers.add<edm::ESInputTag>("params", edm::ESInputTag(""))->setComment("Quality cut parameters");
std::vector<edm::ParameterSet> producersDefault(1);
producersDefault[0].addParameter<edm::InputTag>("src", edm::InputTag(""));
producersDefault[0].addParameter<edm::ESInputTag>("params", edm::ESInputTag(""));
desc.addVPSet("producers", producers, producersDefault)->setComment("List of inputs and quality cuts");
desc.add<edm::ESInputTag>("topology", edm::ESInputTag(""))->setComment("Topology information");
desc.addUntracked<bool>("synchronise", false)
->setComment("Add synchronisation point after execution (for benchmarking asynchronous execution)");
descriptions.addWithDefaultLabel(desc);
Expand Down

0 comments on commit 8e6c70f

Please sign in to comment.