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

Helper for CDCECLCut state. More...

#include <HLTPrefilter.h>

Collaboration diagram for CDCECLCutState:

Public Member Functions

bool computeDecision ()
 

Private Attributes

StoreObjPtr< TRGSummarym_l1Trigger
 Store Object with the trigger result.
 
DBObjPtr< HLTPrefilterParametersm_hltPrefilterParameters
 HLTprefilterParameters Database OjbPtr.
 
StoreArray< CDCHitm_cdcHits
 CDChits StoreArray.
 
StoreArray< ECLDigitm_eclDigits
 ECLDigits StoreArray.
 

Detailed Description

Helper for CDCECLCut state.

Definition at line 120 of file HLTPrefilter.h.

Member Function Documentation

◆ computeDecision()

bool computeDecision ( )
inline

Maximum threshold for CDC Hits

Maximum threshold for ECL Digits

Get NCDCHits for the event

Get NECLDigits for the event

Definition at line 137 of file HLTPrefilter.h.

138 {
139 if (m_hltPrefilterParameters.isValid() && m_l1Trigger.isValid()) {
140
141 // CDC-ECL mode thresholds
143 const uint32_t nCDCHitsMax = m_hltPrefilterParameters->getCDCHitsMax();
145 const uint32_t nECLDigitsMax = m_hltPrefilterParameters->getECLDigitsMax();
146
148 const uint32_t nCDCHits = m_cdcHits.isOptional() ? m_cdcHits.getEntries() : 0;
150 const uint32_t nECLDigits = m_eclDigits.isOptional() ? m_eclDigits.getEntries() : 0;
151
152 //find out if we are in the passive veto or in the active veto window
153 bool inActiveInjectionVeto = false; //events accepted in the passive veto window but not in the active
154 try {
155 if (m_l1Trigger->testInput("passive_veto") == 1 && m_l1Trigger->testInput("cdcecl_veto") == 0)
156 inActiveInjectionVeto = true; //events in active veto
157 } catch (const std::exception&) {
158 }
159
160 if (inActiveInjectionVeto && (nCDCHits > nCDCHitsMax && nECLDigits > nECLDigitsMax))
161 B2WARNING("Skip event if HLTPrefilter On --> Event tagged by HLTPrefilter as high CDC-ECL occupancy");
162
163 // Tag events having a large CDC and ECL occupancy with a prescale
164 return inActiveInjectionVeto && (nCDCHits > nCDCHitsMax && nECLDigits > nECLDigitsMax);
165 } else
166 return false;
167 }

Member Data Documentation

◆ m_cdcHits

StoreArray<CDCHit> m_cdcHits
private

CDChits StoreArray.

Definition at line 130 of file HLTPrefilter.h.

◆ m_eclDigits

StoreArray<ECLDigit> m_eclDigits
private

ECLDigits StoreArray.

Definition at line 133 of file HLTPrefilter.h.

◆ m_hltPrefilterParameters

DBObjPtr<HLTPrefilterParameters> m_hltPrefilterParameters
private

HLTprefilterParameters Database OjbPtr.

HLT prefilter parameters

Definition at line 127 of file HLTPrefilter.h.

◆ m_l1Trigger

StoreObjPtr<TRGSummary> m_l1Trigger
private

Store Object with the trigger result.

Definition at line 124 of file HLTPrefilter.h.


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