12 #include <framework/core/Module.h>
13 #include <framework/database/DBObjPtr.h>
14 #include <framework/datastore/StoreArray.h>
22 class DatabaseRepresentationOfWeightfile;
55 virtual void event()
override;
58 virtual void endRun()
override;
65 {
return "ECLCalDigits" ; }
69 {
return "ECLShowers" ; }
80 std::unique_ptr<DBObjPtr<DatabaseRepresentationOfWeightfile>>
103 {
return "ECLCalDigitsPureCsI" ; }
107 {
return "ECLShowersPureCsI" ; }
Class for accessing objects in the database.
This module computes shower variables using pulse shape information from offline two component fits.
ECLClusterPSDModule()
Constructor.
StoreArray< ECLShower > m_eclShowers
ECLShower's.
std::unique_ptr< MVA::SingleDataset > m_dataset
Pointer to the current dataset.
virtual void initialize() override
Initialize variables.
virtual void event() override
event per event.
virtual const char * eclShowerArrayName() const
ECLShowers array name.
virtual void endRun() override
end run.
virtual void terminate() override
terminate.
std::unique_ptr< MVA::Expert > m_expert
Pointer to the current MVA Expert.
const unsigned int maxdigits
Max number of digits mva can include.
const unsigned int m_numMVAvariables
number of variables expected in the MVA weightfile
std::unique_ptr< DBObjPtr< DatabaseRepresentationOfWeightfile > > m_weightfile_representation
Database pointer to the Database representation of the MVA weightfile.
virtual void beginRun() override
begin run.
double m_CrystalHadronEnergyThreshold
hadron component energy threshold to classify as hadron.
std::string m_MVAidentifier
MVA - weight-file.
double evaluateMVA(const ECLShower *cluster)
Evaluates mva.
~ECLClusterPSDModule()
Destructor.
virtual const char * eclCalDigitArrayName() const
ECLCalDigits array name.
StoreArray< ECLCalDigit > m_eclCalDigits
ECLCalDigit's.
void initializeMVA(const std::string &identifier, std::unique_ptr< DBObjPtr< DatabaseRepresentationOfWeightfile >> &weightFileRepresentation, std::unique_ptr< MVA::Expert > &expert)
Load MVA weight file and set pointer of expert.
void initializeMVAweightFile(const std::string &identifier, std::unique_ptr< DBObjPtr< DatabaseRepresentationOfWeightfile >> &weightFileRepresentation)
initialize MVA weight file from DB
double m_CrystalHadronIntensityThreshold
hadron component intensity threshold to classify as hadron.
Class derived from ECL, only difference are the names.
virtual const char * eclShowerArrayName() const override
PureCsI Name of the ECLShowersPureCsI.
virtual const char * eclCalDigitArrayName() const override
PureCsI Name of the ECLCalDigitsPureCsI.
Class to store ECL Showers.
Accessor to arrays stored in the data store.
Abstract base class for different kinds of events.