Skip to content

[o2-sim] En-/disable hit creation per detector#8149

Merged
sawenzel merged 1 commit intoAliceO2Group:devfrom
benedikt-voelkel:build-geom-sens
Feb 14, 2022
Merged

[o2-sim] En-/disable hit creation per detector#8149
sawenzel merged 1 commit intoAliceO2Group:devfrom
benedikt-voelkel:build-geom-sens

Conversation

@benedikt-voelkel
Copy link
Copy Markdown
Contributor

Be able to en-/disable hit creation of detectors while still building
the geometry. This is an extension to the -m/--skipModules options.

  • introduce --readoutDetectors and --skipReadoutDetectors options

    if a passive module name is passed for either of the options it will
    be ignored

  • --readoutDetectors det_1 ... det_N

    • if det_i specified, only the given detectors will be readout
    • if det_i not contained in active modules (see -m/--skipModules), it
      takes precedence and det_i is added to active modules
    • if not specified, all detectors will be readout which are in line
      with the -m and --skipModules options
  • --skipReadoutDetectors det_1 ... det_N

    • given detectors will not produce any hits
    • has no effect on the constructed geometry
  • take care of corner cases such as
    --skipModules m --readoutDetectors m --skipReadoutDetectors m
    in which case m is not built at all and therefore not readout

Be able to en-/disable hit creation of detectors while still building
the geometry. This is an extension to the -m/--skipModules options.

* introduce --readoutDetectors and --skipReadoutDetectors options

  if a passive module name is passed for either of the options it will
  be ignored

* --readoutDetectors det_1 ... det_N
  * if det_i specified, only the given detectors will be readout
  * if det_i not contained in active modules (see -m/--skipModules), it
    takes precedence and det_i is added to active modules
  * if not specified, all detectors will be readout which are in line
    with the -m and --skipModules options

* --skipReadoutDetectors det_1 ... det_N
  * given detectors will not produce any hits
  * has no effect on the constructed geometry

* take care of corner cases such as
  --skipModules m --readoutDetectors m --skipReadoutDetectors m
  in which case m is not built at all and therefore not readout
"skipModules", bpo::value<std::vector<std::string>>()->multitoken()->default_value(std::vector<std::string>({""}), ""), "list of detectors to skip (precendence over -m")(
"modules,m", bpo::value<std::vector<std::string>>()->multitoken()->default_value(std::vector<std::string>({"all"}), "all modules"), "list of modules included in geometry")(
"skipModules", bpo::value<std::vector<std::string>>()->multitoken()->default_value(std::vector<std::string>({""}), ""), "list of modules excluded in geometry (precendence over -m")(
"readoutDetectors", bpo::value<std::vector<std::string>>()->multitoken()->default_value(std::vector<std::string>(), ""), "list of detectors creating hits, all if not given; added to to active modules")(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe help message needs to be more clear, such as "list of detectors creating hits; if not given, all detectors compatible with -m/skipModules flag are readout; if given but not yet compatible with -m/--skipModules, detectors are added for geometry construction as well"

@sawenzel sawenzel merged commit ab44148 into AliceO2Group:dev Feb 14, 2022
@benedikt-voelkel benedikt-voelkel deleted the build-geom-sens branch February 14, 2022 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants