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
3839BCTask::~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