 |
Belle II Software
release-05-02-19
|
11 #include <svd/modules/svdBackground/SVDBeamBackHitFilterModule.h>
13 #include <simulation/dataobjects/BeamBackHit.h>
15 #include <framework/datastore/StoreArray.h>
30 SVDBeamBackHitFilterModule::SVDBeamBackHitFilterModule() :
Module()
33 setDescription(
"This module filters out from the BeamBackHits StoreArray the BeamBackHits not related to SVD.");
41 storeBeamBackHits.isOptional();
48 if (!storeBeamBackHits || !storeBeamBackHits.
getEntries())
return;
53 for (
int iHit = 0; iHit < nBBHits; ++iHit) {
55 if (hit.getSubDet() == 2) {
57 if (iHit > lastLeft) *storeBeamBackHits[lastLeft] = hit;
63 storeBeamBackHits.
getPtr()->ExpandCreate(lastLeft);
void setDescription(const std::string &description)
Sets the description of the module.
virtual void event() override
do the sorting
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
virtual void initialize() override
Initialize the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
Abstract base class for different kinds of events.
Namespace to encapsulate code needed for simulation and reconstrucion of the SVD.
TClonesArray * getPtr() const
Raw access to the underlying TClonesArray.
Accessor to arrays stored in the data store.
Class BeamBackHit - Stores hits from beam backgound simulation.
int getEntries() const
Get the number of objects in the array.