11#include <framework/core/Module.h>
12#include <framework/datastore/StoreObjPtr.h>
13#include <framework/datastore/StoreArray.h>
14#include <framework/database/DBObjPtr.h>
15#include <ecl/dbobjects/ECLClusteringParameters.h>
46 virtual void event()
override;
49 virtual void endRun()
override;
76 {
return "ECLShowers" ; }
80 {
return "ECLClusters"; }
84 {
return "ECLCalDigits";}
95 {
return "ECLShowersPureCsI" ; }
99 {
return "ECLClustersPureCsI"; }
103 {
return "ECLCalDigitsPureCsI";}
Class for accessing objects in the database.
Class to store calibrated ECLDigits: ECLCalDigits.
virtual const char * eclShowerArrayName() const
We need names for the data objects to differentiate between PureCsI and default.
virtual const char * eclClusterArrayName() const
Default name ECLCluster.
double m_clusterLossyFraction
Maximum allowed fractional difference between nPhotons and neutralHadron number of crystals.
StoreArray< ECLShower > m_eclShowers
ECLShowers.
StoreObjPtr< EventT0 > m_eventT0
Event T0.
virtual void initialize() override
Initialize.
virtual void event() override
Event.
virtual void endRun() override
End run.
virtual void terminate() override
Terminate.
virtual void beginRun() override
Begin run.
double m_clusterEnergyCutMin
Min value for the cluster energy cut.
double m_clusterTimeCutMaxEnergy
Above this energy, keep all cluster.
StoreArray< ECLCluster > m_eclClusters
ECLClusters.
DBObjPtr< ECLClusteringParameters > m_eclClusteringParameters
ECLClusteringParameters payload: includes value for clusterEnergyCutMin.
~ECLFinalizerModule() override
Destructor.
bool m_useParametersFromDatabase
get clusterEnergyCutMin from payload
virtual const char * eclCalDigitArrayName() const
Default name ECLCalDigits.
int makeCluster(int, double)
Make a cluster from a given shower array index.
ECLFinalizerModule()
Constructor.
StoreObjPtr< EventLevelClusteringInfo > m_eventLevelClusteringInfo
EventLevelClusteringInfo.
StoreArray< ECLCalDigit > m_eclCalDigits
ECLCalDigits.
The very same module but for PureCsI.
virtual const char * eclCalDigitArrayName() const override
PureCsI name ECLCalDigits.
virtual const char * eclClusterArrayName() const override
PureCsI name ECLCluster.
virtual const char * eclShowerArrayName() const override
PureCsI name ECLShower.
Class to store ECL Showers.
ECL/KLM clustering event level information:
Storage element for the eventwise T0 estimation.
Accessor to arrays stored in the data store.
Type-safe access to single objects in the data store.
Abstract base class for different kinds of events.