-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TRD: Grab CCDB Chamber Status for plots (#2075)
* TRD: change type of mChamberStatus to array* * TRD: create separate function to plot chamber status * TRD: functions clean up * TRD: apply chamber status changes to digits task * TRD: clean up * TRD: create TRDHelpers class * TRD: color options for drawing chamber status * TRD: change tracklets task histogram to shared pointers * TRD: set TRDHelpers class as pure static * TRD: merge drawing functions into one * TRD: change definitions for better readibility * better definitions for readibility * TRD: add grid helper function to receive shared pointers * TRD: new variable for chamber status * TRD: Empty, trigger CI
- Loading branch information
1 parent
c012aa5
commit 5fb93ae
Showing
8 changed files
with
316 additions
and
375 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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.