Skip to content

[EMCAL-524] Make histograms vs cell ID optional#792

Merged
knopers8 merged 1 commit into
AliceO2Group:masterfrom
mfasDa:EMCAL-524
Aug 3, 2021
Merged

[EMCAL-524] Make histograms vs cell ID optional#792
knopers8 merged 1 commit into
AliceO2Group:masterfrom
mfasDa:EMCAL-524

Conversation

@mfasDa
Copy link
Copy Markdown
Collaborator

@mfasDa mfasDa commented Jul 31, 2021

  • Move filling of all hisstograms to a separate function
    fillHistograms of DigitsHistograms, this makes
    handling of optional histograms a lot easier
  • Use lamdba functions for fill/reset/delete of
    optional histograms
  • Disable all 2D histograms except occupancy for
    the LED events
  • Add functions for easy access to task parameters

Comment on lines +112 to +113
std::string getConfigValue(const std::string_view key);
std::string getConfigValueLower(const std::string_view key);
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@knopers8 @Barthelemy Could those functions be pushed upwards to the TaskInterface?

Actually I am thinking about something similar to what is done for the Options by the framework having variant data types for int, float, bool and string, and a template function casting to the required type. (Would remove the need for the lambdas I am using to extract bool and float from the string myself)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

- Move filling of all hisstograms to a separate function
  fillHistograms of DigitsHistograms, this makes
  handling of optional histograms a lot easier
- Use lamdba functions for fill/reset/delete of
  optional histograms
- Disable all 2D histograms except occupancy for
  the LED events
- Add functions for easy access to task parameters
@mfasDa mfasDa changed the title [WIP][EMCAL-524] Make histograms vs cell ID optional [EMCAL-524] Make histograms vs cell ID optional Aug 2, 2021
@mfasDa
Copy link
Copy Markdown
Collaborator Author

mfasDa commented Aug 2, 2021

Tests work fine - @knopers8 @Barthelemy please merge when the build checks are done

delete hist;
};

cleanOptional(mDigitTime);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@knopers8 knopers8 merged commit d548f9d into AliceO2Group:master Aug 3, 2021
@mfasDa mfasDa deleted the EMCAL-524 branch August 3, 2021 07:54
knopers8 pushed a commit that referenced this pull request Aug 3, 2021
- Move filling of all hisstograms to a separate function
  fillHistograms of DigitsHistograms, this makes
  handling of optional histograms a lot easier
- Use lamdba functions for fill/reset/delete of
  optional histograms
- Disable all 2D histograms except occupancy for
  the LED events
- Add functions for easy access to task parameters
mfasDa added a commit to mfasDa/QualityControl that referenced this pull request Aug 20, 2021
Bug introduced in AliceO2Group#792: Supemodule ID was not
checked against range, therefore all supermodules
treated as EMCAL supermodules.
mfasDa added a commit that referenced this pull request Aug 20, 2021
Bug introduced in #792: Supemodule ID was not
checked against range, therefore all supermodules
treated as EMCAL supermodules.
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