 |
Belle II Software
release-05-02-19
|
14 #include <framework/core/Module.h>
15 #include <framework/datastore/StoreArray.h>
16 #include <framework/database/DBObjPtr.h>
24 class DatabaseRepresentationOfWeightfile;
37 class ECLClusterPSDModule:
public Module {
57 virtual void event()
override;
60 virtual void endRun()
override;
67 {
return "ECLCalDigits" ; }
71 {
return "ECLShowers" ; }
82 std::unique_ptr<DBObjPtr<DatabaseRepresentationOfWeightfile>>
105 {
return "ECLCalDigitsPureCsI" ; }
109 {
return "ECLShowersPureCsI" ; }
std::string m_MVAidentifier
MVA - weight-file.
double evaluateMVA(const ECLShower *cluster)
Evaluates mva.
~ECLClusterPSDModule()
Destructor.
const unsigned int m_numMVAvariables
number of variables expected in the MVA weightfile
void initializeMVAweightFile(const std::string &identifier, std::unique_ptr< DBObjPtr< DatabaseRepresentationOfWeightfile >> &weightFileRepresentation)
initialize MVA weight file from DB
virtual const char * eclShowerArrayName() const override
PureCsI Name of the ECLShowersPureCsI.
StoreArray< ECLShower > m_eclShowers
ECLShower's.
virtual void initialize() override
Initialize variables.
virtual const char * eclCalDigitArrayName() const override
PureCsI Name of the ECLCalDigitsPureCsI.
Class derived from ECL, only difference are the names.
virtual void beginRun() override
begin run.
Class for accessing objects in the database.
StoreArray< ECLCalDigit > m_eclCalDigits
ECLCalDigit's.
std::unique_ptr< MVA::SingleDataset > m_dataset
Pointer to the current dataset.
This module computes shower variables using pulse shape information from offline two component fits.
virtual void terminate() override
terminate.
virtual void event() override
event per event.
Abstract base class for different kinds of events.
std::unique_ptr< DBObjPtr< DatabaseRepresentationOfWeightfile > > m_weightfile_representation
Database pointer to the Database representation of the MVA weightfile.
const unsigned int maxdigits
Max number of digits mva can include.
virtual const char * eclCalDigitArrayName() const
ECLCalDigits array name.
virtual const char * eclShowerArrayName() const
ECLShowers array name.
std::unique_ptr< MVA::Expert > m_expert
Pointer to the current MVA Expert.
ECLClusterPSDModule()
Constructor.
double m_CrystalHadronEnergyThreshold
hadron component energy threshold to classify as hadron.
Accessor to arrays stored in the data store.
virtual void endRun() override
end run.
double m_CrystalHadronIntensityThreshold
hadron component intensity threshold to classify as hadron.
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.
Class to store ECL Showers.