Skip to content

Commit 79eadb0

Browse files
authored
[EMCAL-1037] Monitor BC distribution of incomplete events (#2054)
1 parent 39137f7 commit 79eadb0

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

Modules/EMCAL/include/EMCAL/BCTask.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,12 @@ class BCTask final : public TaskInterface
104104
/// \return Beam mode (ANY if unknown)
105105
BeamPresenceMode_t getBeamPresenceMode(const std::string_view beamname) const;
106106

107-
TH1F* mBCReadout = nullptr; ///< BC distribution from EMCAL readout
108-
TH1F* mBCEMCAny = nullptr; ///< BC distribution from CTP, any trigger
109-
TH1F* mBCMinBias = nullptr; ///< BC distribution from CTP, EMCAL min. bias trigger
110-
TH1F* mBCL0EMCAL = nullptr; ///< BC distribution from CTP, EMCAL L0 trigger
111-
TH1F* mBCL0DCAL = nullptr; ///< BC distribution from CTP, DCAL trigger
107+
TH1F* mBCReadout = nullptr; ///< BC distribution from EMCAL readout
108+
TH1F* mBCIncomplete = nullptr; ///< BC distribution of incomplete-rejected triggers
109+
TH1F* mBCEMCAny = nullptr; ///< BC distribution from CTP, any trigger
110+
TH1F* mBCMinBias = nullptr; ///< BC distribution from CTP, EMCAL min. bias trigger
111+
TH1F* mBCL0EMCAL = nullptr; ///< BC distribution from CTP, EMCAL L0 trigger
112+
TH1F* mBCL0DCAL = nullptr; ///< BC distribution from CTP, DCAL trigger
112113

113114
uint32_t mCurrentRun = -1; ///< Current run
114115
std::array<uint64_t, NTriggerClasses> mTriggerClassIndices; ///< Trigger class mask from for different EMCAL triggers from CTP configuration

Modules/EMCAL/src/BCTask.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "CommonConstants/Triggers.h"
2525
#include "DataFormatsCTP/Configuration.h"
2626
#include "DataFormatsCTP/Digits.h"
27+
#include "DataFormatsEMCAL/Constants.h"
2728
#include "DataFormatsEMCAL/TriggerRecord.h"
2829

2930
#include "QualityControl/QcInfoLogger.h"
@@ -38,6 +39,7 @@ namespace o2::quality_control_modules::emcal
3839
BCTask::~BCTask()
3940
{
4041
delete mBCReadout;
42+
delete mBCIncomplete;
4143
delete mBCEMCAny;
4244
delete mBCMinBias;
4345
delete mBCL0EMCAL;
@@ -50,6 +52,8 @@ void BCTask::initialize(o2::framework::InitContext& /*ctx*/)
5052
constexpr unsigned int LHC_MAX_BC = o2::constants::lhc::LHCMaxBunches;
5153
mBCReadout = new TH1F("BCEMCALReadout", "BC distribution EMCAL readout", LHC_MAX_BC, -0.5, LHC_MAX_BC - 0.5);
5254
getObjectsManager()->startPublishing(mBCReadout);
55+
mBCIncomplete = new TH1F("BCIncomplete", "BC distribution EMCAL incomplete triggers", LHC_MAX_BC, -0.5, LHC_MAX_BC - 0.5);
56+
getObjectsManager()->startPublishing(mBCIncomplete);
5357
mBCEMCAny = new TH1F("BCCTPEMCALAny", "BC distribution CTP EMCAL any triggered", LHC_MAX_BC, -0.5, LHC_MAX_BC - 0.5);
5458
getObjectsManager()->startPublishing(mBCEMCAny);
5559
mBCMinBias = new TH1F("BCCTPEMCALMinBias", "BC distribution CTP EMCAL min. bias triggered", LHC_MAX_BC, -0.5, LHC_MAX_BC - 0.5);
@@ -80,6 +84,9 @@ void BCTask::monitorData(o2::framework::ProcessingContext& ctx)
8084
for (const auto& emctrg : emctriggers) {
8185
if (emctrg.getTriggerBits() & o2::trigger::PhT) {
8286
mBCReadout->Fill(emctrg.getBCData().bc);
87+
if (emctrg.getTriggerBits() & o2::emcal::triggerbits::Inc) {
88+
mBCIncomplete->Fill(emctrg.getBCData().bc);
89+
}
8390
}
8491
}
8592

@@ -138,6 +145,7 @@ void BCTask::reset()
138145
// clean all the monitor objects here
139146
ILOG(Debug, Devel) << "Resetting the histograms" << ENDM;
140147
mBCReadout->Reset();
148+
mBCIncomplete->Reset();
141149
mBCEMCAny->Reset();
142150
mBCMinBias->Reset();
143151
mBCL0EMCAL->Reset();

0 commit comments

Comments
 (0)