9#include <svd/modules/svdBackground/SVDBeamBackHitFilterModule.h>
11#include <simulation/dataobjects/BeamBackHit.h>
13#include <framework/datastore/StoreArray.h>
31 setDescription(
"This module filters out from the BeamBackHits StoreArray the BeamBackHits not related to SVD.");
46 if (!storeBeamBackHits || !storeBeamBackHits.
getEntries())
return;
51 for (
int iHit = 0; iHit < nBBHits; ++iHit) {
53 if (hit.getSubDet() == 2) {
55 if (iHit > lastLeft) *storeBeamBackHits[lastLeft] = hit;
61 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
SVDBeamBackHitFilterModule()
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 SVD.
Abstract base class for different kinds of events.