 |
Belle II Software
release-05-02-19
|
11 #include <pxd/modules/pxdBackground/PXDBeamBackHitFilterModule.h>
13 #include <simulation/dataobjects/BeamBackHit.h>
14 #include <framework/datastore/StoreArray.h>
29 PXDBeamBackHitFilterModule::PXDBeamBackHitFilterModule() :
Module()
32 setDescription(
"This module filters out from the BeamBackHits StoreArray the BeamBackHits not related to PXD.");
40 storeBeamBackHits.isOptional();
47 if (!storeBeamBackHits || !storeBeamBackHits.
getEntries())
return;
52 for (
int iHit = 0; iHit < nBBHits; ++iHit) {
54 if (hit.getSubDet() == 1) {
56 if (iHit > lastLeft) *storeBeamBackHits[lastLeft] = hit;
62 storeBeamBackHits.
getPtr()->ExpandCreate(lastLeft);
void setDescription(const std::string &description)
Sets the description of the module.
#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 event() override
do the sorting
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
Namespace to encapsulate code needed for simulation and reconstrucion of the PXD.
Abstract base class for different kinds of events.
TClonesArray * getPtr() const
Raw access to the underlying TClonesArray.
virtual void initialize() override
Initialize the module.
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.