 |
Belle II Software
release-05-02-19
|
13 #include <framework/core/Module.h>
14 #include <framework/datastore/StoreArray.h>
15 #include <simulation/background/BeamBGTypes.h>
16 #include <framework/dataobjects/BackgroundMetaData.h>
20 #include <pxd/dataobjects/PXDSimHit.h>
21 #include <svd/dataobjects/SVDSimHit.h>
22 #include <cdc/dataobjects/CDCSimHit.h>
23 #include <top/dataobjects/TOPSimHit.h>
24 #include <arich/dataobjects/ARICHSimHit.h>
25 #include <ecl/dataobjects/ECLSimHit.h>
26 #include <ecl/dataobjects/ECLHit.h>
27 #include <klm/dataobjects/bklm/BKLMSimHit.h>
28 #include <klm/dataobjects/eklm/EKLMSimHit.h>
31 #include <beast/beamabort/dataobjects/BeamabortSimHit.h>
32 #include <beast/claw/dataobjects/ClawSimHit.h>
33 #include <beast/claws/dataobjects/CLAWSSimHit.h>
34 #include <beast/fangs/dataobjects/FANGSSimHit.h>
35 #include <beast/plume/dataobjects/PlumeSimHit.h>
36 #include <beast/pindiode/dataobjects/PindiodeSimHit.h>
37 #include <beast/he3tube/dataobjects/He3tubeSimHit.h>
38 #include <beast/microtpc/dataobjects/MicrotpcSimHit.h>
39 #include <beast/qcsmonitor/dataobjects/QcsmonitorSimHit.h>
40 #include <beast/bgo/dataobjects/BgoSimHit.h>
41 #include <beast/csi/dataobjects/CsiSimHit.h>
58 class BeamBkgTagSetterModule :
public Module {
87 virtual void event()
override;
93 virtual void endRun()
override;
139 template<
class SIMHIT>
142 if (!simHits.
isValid())
return 0;
145 for (
int i = 0; i < numEntries; i++) {
146 SIMHIT* simHit = simHits[i];
virtual ~BeamBkgTagSetterModule()
Destructor.
virtual void beginRun() override
Called when entering a new run.
virtual void event() override
Event processor.
virtual void endRun() override
End-of-run action.
Abstract base class for different kinds of events.
virtual void initialize() override
Initialize the Module.
bool isValid() const
Check wether the array was registered.
Class to define BG types and to convert between BG types and tags or v.v.
BeamBkgTagSetterModule()
Constructor.
Accessor to arrays stored in the data store.
virtual void terminate() override
Termination action.
int getEntries() const
Get the number of objects in the array.