 |
Belle II Software
release-05-01-25
|
10 #include <tracking/trackFindingCDC/filters/cluster/BkgTruthClusterVarSet.h>
12 #include <tracking/trackFindingCDC/eventdata/segments/CDCWireHitCluster.h>
13 #include <tracking/trackFindingCDC/eventdata/hits/CDCWireHit.h>
14 #include <tracking/trackFindingCDC/mclookup/CDCMCManager.h>
15 #include <tracking/trackFindingCDC/mclookup/CDCMCHitLookUp.h>
18 using namespace TrackFindingCDC;
34 if (not ptrCluster)
return false;
37 int nBackgroundHits = 0;
40 const CDCHit* hit = wireHit->getHit();
48 var<
named(
"n_background_hits_truth")>() = nBackgroundHits;
49 var<
named(
"background_fraction_truth")>() = 1.0 * nBackgroundHits / cluster.size();
50 var<
named(
"weight")>() = cluster.size();
51 var<
named(
"truth")>() = (1.0 * nBackgroundHits / cluster.size() > 0.8) ? 0 : 1;
Class containing the result of the unpacker in raw data and the result of the digitizer in simulation...
void initialize() override
Receive and dispatch signal before the start of the event processing.
void requireTruthInformation()
Require the mc information store arrays.
void fill()
Fill Monte Carlo look up maps from the DataStore.
Abstract base class for different kinds of events.
void initialize() override
Signal the initialisation of the event processing - requires the Monte Carlo information.
static CDCMCManager & getInstance()
Getter for the singletone instance.
void beginEvent() override
Signal the beginning of a new event - loads the Monte Carlo information.
void beginEvent() override
Receive and dispatch signal for the start of a new event.
An aggregation of CDCWireHits.
static const CDCMCHitLookUp & getInstance()
Getter for the singletone instance.
constexpr static int named(const char *name)
Getter for the index from the name.
Float_t & var()
Reference getter for the value of the ith variable. Static version.
Class representing a hit wire in the central drift chamber.
bool extract(const CDCWireHitCluster *ptrCluster) final
Generate and assign the contained variables.