-
Notifications
You must be signed in to change notification settings - Fork 169
TRD: Grab CCDB Chamber Status for plots #2075
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Barthelemy
merged 17 commits into
AliceO2Group:master
from
leo-barreto:trd-chamberstatus
Jan 22, 2024
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
655fc5c
TRD: change type of mChamberStatus to array*
leo-barreto 6ce5ade
TRD: create separate function to plot chamber status
leo-barreto 9a8cebd
TRD: functions clean up
leo-barreto 90beb83
TRD: apply chamber status changes to digits task
leo-barreto dca81bb
TRD: clean up
leo-barreto 066bdd8
TRD: create TRDHelpers class
leo-barreto d80757f
TRD: color options for drawing chamber status
leo-barreto 4bcae9c
TRD: change tracklets task histogram to shared pointers
leo-barreto f07ed5a
TRD: set TRDHelpers class as pure static
leo-barreto be02548
TRD: merge drawing functions into one
leo-barreto 43a46f5
TRD: change definitions for better readibility
leo-barreto 436c602
better definitions for readibility
leo-barreto 4fcd24c
Merge branch 'trd-chamberstatus' of github.com:leo-barreto/QualityCon…
leo-barreto 52c4654
TRD: add grid helper function to receive shared pointers
leo-barreto e328922
Merge branch 'master' into trd-chamberstatus
leo-barreto fbdaaaa
TRD: new variable for chamber status
leo-barreto 2446627
TRD: Empty, trigger CI
leo-barreto File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| // Copyright 2019-2020 CERN and copyright holders of ALICE O2. | ||
| // See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. | ||
| // All rights not expressly granted are reserved. | ||
| // | ||
| // This software is distributed under the terms of the GNU General Public | ||
| // License v3 (GPL Version 3), copied verbatim in the file "COPYING". | ||
| // | ||
| // In applying this license CERN does not waive the privileges and immunities | ||
| // granted to it by virtue of its status as an Intergovernmental Organization | ||
| // or submit itself to any jurisdiction. | ||
|
|
||
| /// | ||
| /// \file TRDHelpers.h | ||
| /// | ||
|
|
||
| #ifndef QC_MODULE_TRD_TRDHELPER_H | ||
| #define QC_MODULE_TRD_TRDHELPER_H | ||
|
|
||
| #include "QualityControl/TaskInterface.h" | ||
| #include "TRDQC/StatusHelper.h" | ||
|
|
||
| class TH2F; | ||
|
|
||
| using namespace o2::quality_control::core; | ||
|
|
||
| namespace o2::quality_control_modules::trd | ||
| { | ||
|
|
||
| class TRDHelpers | ||
| { | ||
| public: | ||
| TRDHelpers() = default; | ||
| ~TRDHelpers() = default; | ||
|
|
||
| static void addChamberGridToHistogram(std::shared_ptr<TH2F> histogram, int unitsPerSection); | ||
| static void drawChamberStatusOnHistograms(const std::array<int, o2::trd::constants::MAXCHAMBER>* ptrChamber, std::shared_ptr<TH2F> chamberMap, std::array<std::shared_ptr<TH2F>, o2::trd::constants::NLAYER> ptrLayersArray, int unitsPerSection); | ||
| static void drawHalfChamberMask(int halfChamberStatus, std::pair<float, float> xCoords, std::pair<float, float> yCoords, std::shared_ptr<TH2F> histogram); | ||
| static bool isHalfChamberMasked(int halfChamberId, const std::array<int, o2::trd::constants::MAXCHAMBER>* ptrChamber); | ||
|
|
||
| private: | ||
| // Chamber status values definitions, used for masking | ||
| static const int mConfiguredChamberStatus = 3; | ||
| static const int mEmptyChamberStatus = 0; | ||
| static const int mErrorChamberStatus = 99; | ||
| }; | ||
|
|
||
| } // namespace o2::quality_control_modules::trd | ||
|
|
||
| #endif | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.