Belle II Software prerelease-11-00-00a
EventsOfDoomBusterState Class Reference

Helper for EventsOfDoomBuster state. More...

#include <HLTPrefilter.h>

Collaboration diagram for EventsOfDoomBusterState:

Public Member Functions

bool computeDecision ()
 

Private Attributes

StoreArray< CDCHitm_cdcHits
 CDCHits StoreArray.
 
StoreArray< SVDShaperDigitm_svdShaperDigits
 SVDShaperDigits StoreArray.
 
DBObjPtr< EventsOfDoomParametersm_eventsOfDoomParameters
 EventsOfDoomParameters Database OjbPtr.
 

Detailed Description

Helper for EventsOfDoomBuster state.

Definition at line 174 of file HLTPrefilter.h.

Member Function Documentation

◆ computeDecision()

bool computeDecision ( )
inline

The max number of CDC hits for an event to be kept for reconstruction

The max number of SVD shaper digits for an event to be kept for reconstruction

Get NCDCHits for the event

Get NSVDShaperDigits for the event

Definition at line 185 of file HLTPrefilter.h.

186 {
187 if (m_eventsOfDoomParameters.isValid()) {
188
189 // EventsOfDoomBuster mode thresholds
191 const uint32_t nCDCHitsMax = m_eventsOfDoomParameters->getNCDCHitsMax();
193 const uint32_t nSVDShaperDigitsMax = m_eventsOfDoomParameters->getNSVDShaperDigitsMax();
194
196 const uint32_t nCDCHits = m_cdcHits.isOptional() ? m_cdcHits.getEntries() : 0;
198 const uint32_t nSVDShaperDigits = m_svdShaperDigits.isOptional() ? m_svdShaperDigits.getEntries() : 0;
199
200 const bool doomCDC = nCDCHits > nCDCHitsMax;
201 const bool doomSVD = nSVDShaperDigits > nSVDShaperDigitsMax;
202
203 if (doomCDC) {
204 B2ERROR("Skip event --> Too much occupancy from CDC for reconstruction!" <<
205 LogVar("nCDCHits", nCDCHits) <<
206 LogVar("nCDCHitsMax", nCDCHitsMax));
207 }
208
209 if (doomSVD) {
210 B2ERROR("Skip event --> Too much occupancy from SVD for reconstruction!" <<
211 LogVar("nSVDShaperDigits", nSVDShaperDigits) <<
212 LogVar("nSVDShaperDigitsMax", nSVDShaperDigitsMax));
213 }
214
215 // Tag events having a large SVD or CDC occupancy
216 return (doomCDC || doomSVD);
217 } else
218 return false;
219 }

Member Data Documentation

◆ m_cdcHits

StoreArray<CDCHit> m_cdcHits
private

CDCHits StoreArray.

Definition at line 177 of file HLTPrefilter.h.

◆ m_eventsOfDoomParameters

DBObjPtr<EventsOfDoomParameters> m_eventsOfDoomParameters
private

EventsOfDoomParameters Database OjbPtr.

Definition at line 181 of file HLTPrefilter.h.

◆ m_svdShaperDigits

StoreArray<SVDShaperDigit> m_svdShaperDigits
private

SVDShaperDigits StoreArray.

Definition at line 179 of file HLTPrefilter.h.


The documentation for this class was generated from the following file: