9#include <pxd/modules/pxdBackground/PXDBeamBackHitFilterModule.h>
11#include <simulation/dataobjects/BeamBackHit.h>
12#include <framework/datastore/StoreArray.h>
30 setDescription(
"This module filters out from the BeamBackHits StoreArray the BeamBackHits not related to PXD.");
45 if (!storeBeamBackHits || !storeBeamBackHits.
getEntries())
return;
50 for (
int iHit = 0; iHit < nBBHits; ++iHit) {
52 if (hit.getSubDet() == 1) {
54 if (iHit > lastLeft) *storeBeamBackHits[lastLeft] = hit;
60 storeBeamBackHits.
getPtr()->ExpandCreate(lastLeft);
Class BeamBackHit - Stores hits from beam backgound simulation.
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ 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.
virtual void event() override
do the sorting
PXDBeamBackHitFilterModule()
Constructor defining the parameters.
bool isOptional(const std::string &name="")
Tell the DataStore about an optional input.
Accessor to arrays stored in the data store.
TClonesArray * getPtr() const
Raw access to the underlying TClonesArray.
int getEntries() const
Get the number of objects in the array.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Namespace to encapsulate code needed for simulation and reconstrucion of the PXD.
Abstract base class for different kinds of events.