30 #ifndef APRIL_CONTENT_ENERGYCORRECTIONPLUGIN_H
31 #define APRIL_CONTENT_ENERGYCORRECTIONPLUGIN_H
33 #include "Plugins/EnergyCorrectionsPlugin.h"
35 namespace april_content
55 pandora::StatusCode
MakeEnergyCorrections(
const pandora::Cluster *
const pCluster,
float &correctedEnergy)
const;
62 pandora::StatusCode
ReadSettings(
const pandora::TiXmlHandle xmlHandle);
65 unsigned int m_ecalEnergyType;
66 unsigned int m_hcalEnergyType;
67 unsigned int m_muonEnergyType;
68 unsigned int m_otherEnergyType;
91 pandora::StatusCode
MakeEnergyCorrections(
const pandora::Cluster *
const pCluster,
float &correctedEnergy)
const;
98 pandora::StatusCode
ReadSettings(
const pandora::TiXmlHandle xmlHandle);
126 pandora::StatusCode
MakeEnergyCorrections(
const pandora::Cluster *
const pCluster,
float &correctedEnergy)
const;
133 pandora::StatusCode
ReadSettings(
const pandora::TiXmlHandle xmlHandle);
141 INNER_GAP_APPROACH = -1,
143 OUTER_GAP_APPROACH = 1
149 bool IsNearbyGap(
const pandora::CaloHit *
const pCaloHit)
const;
157 pandora::FloatVector m_ecalZGapPositions;
158 pandora::FloatVector m_hcalZGapPositions;
160 float m_ecalDistanceToGap;
161 float m_hcalDistanceToGap;
163 float m_ecalGapAlpha;
165 float m_hcalGapAlpha;
189 pandora::StatusCode
MakeEnergyCorrections(
const pandora::Cluster *
const pCluster,
float &correctedEnergy)
const;
196 pandora::StatusCode
ReadSettings(
const pandora::TiXmlHandle xmlHandle);
202 float GetCosTheta(
const pandora::Cluster *
const pCluster)
const;
214 float m_lowEnergyCut;
240 pandora::StatusCode
MakeEnergyCorrections(
const pandora::Cluster *
const pCluster,
float &correctedEnergy)
const;
247 pandora::StatusCode
ReadSettings(
const pandora::TiXmlHandle xmlHandle);
253 float GetCosPhi(
const pandora::Cluster *
const pCluster)
const;
265 float m_lowEnergyCut;
286 pandora::StatusCode MakeEnergyCorrections(
const pandora::Cluster *
const pCluster,
float &correctedEnergy)
const;
295 float GetHadronicEnergyInLayer(
const pandora::OrderedCaloHitList &orderedCaloHitList,
const unsigned int pseudoLayer)
const;
297 pandora::StatusCode ReadSettings(
const pandora::TiXmlHandle xmlHandle);
306 #endif // APRIL_CONTENT_ENERGYCORRECTIONPLUGIN_H
float GetCorrectedHitNumber(int nHit, float cosPhi) const
Get the corrected number of hits.
Definition: EnergyCorrectionPlugins.cc:657
float GetCosPhi(const pandora::Cluster *const pCluster) const
Get cos phi with respect to x axis in the XY-plane.
Definition: EnergyCorrectionPlugins.cc:639
pandora::StatusCode MakeEnergyCorrections(const pandora::Cluster *const pCluster, float &correctedEnergy) const
Make energy correction on this given cluster.
Definition: EnergyCorrectionPlugins.cc:132
pandora::FloatVector m_sdhcalThresholds
The sdhcal threshold values.
Definition: EnergyCorrectionPlugins.h:102
pandora::FloatVector m_energyConstantParameters
The energy constant parameters.
Definition: EnergyCorrectionPlugins.h:103
AnalogicEnergyFunction()
Default constructor.
Definition: EnergyCorrectionPlugins.cc:37
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read settings from the xml handle.
Definition: EnergyCorrectionPlugins.cc:89
AnalogicEnergyFunction.
Definition: EnergyCorrectionPlugins.h:41
float GetHadronicEnergyInLayer(const pandora::OrderedCaloHitList &orderedCaloHitList, const unsigned int pseudoLayer) const
Get the sum of the hadronic energies of all calo hits in a specified layer of an ordered calo hit lis...
Definition: EnergyCorrectionPlugins.cc:767
float GetCorrectedHitNumber(int nHit, float cosTheta) const
Get the corrected number of hits.
Definition: EnergyCorrectionPlugins.cc:503
pandora::FloatVector m_sdhcalThresholds
The sdhcal threshold values.
Definition: EnergyCorrectionPlugins.h:267
SdhcalQuadraticEnergyFunction()
Default constructor.
Definition: EnergyCorrectionPlugins.cc:113
float GetCosTheta(const pandora::Cluster *const pCluster) const
Get cos theta with respect to z axis.
Definition: EnergyCorrectionPlugins.cc:493
Approach GetApproach(const pandora::CaloHit *const pCaloHit) const
Get the calo hit approach to barrel module gap.
CleanCluster()
Default constructor.
Definition: EnergyCorrectionPlugins.cc:692
pandora::StatusCode MakeEnergyCorrections(const pandora::Cluster *const pCluster, float &correctedEnergy) const
Make energy correction on this given cluster.
Definition: EnergyCorrectionPlugins.cc:245
SdhcalQuadraticEnergyFunction class.
Definition: EnergyCorrectionPlugins.h:77
float m_minCleanHitEnergyFraction
Min fraction of cluster energy represented by hit to consider cleaning.
Definition: EnergyCorrectionPlugins.h:300
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read settings from the xml handle.
Definition: EnergyCorrectionPlugins.cc:193
bool IsNearbyGap(const pandora::CaloHit *const pCaloHit) const
Whether the calo hit is near a detector gap.
Definition: EnergyCorrectionPlugins.cc:283
pandora::StatusCode MakeEnergyCorrections(const pandora::Cluster *const pCluster, float &correctedEnergy) const
Make energy correction on this given cluster.
Definition: EnergyCorrectionPlugins.cc:354
pandora::StatusCode MakeEnergyCorrections(const pandora::Cluster *const pCluster, float &correctedEnergy) const
Make energy correction on this given cluster.
Definition: EnergyCorrectionPlugins.cc:47
float m_minCleanHitEnergy
Min calo hit hadronic energy to consider cleaning hit/cluster.
Definition: EnergyCorrectionPlugins.h:299
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read settings from the xml handle.
Definition: EnergyCorrectionPlugins.cc:665
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read settings from the xml handle.
Definition: EnergyCorrectionPlugins.cc:511
PhiNHitFunction()
Default constructor.
Definition: EnergyCorrectionPlugins.cc:538
ThetaNHitFunction()
Default constructor.
Definition: EnergyCorrectionPlugins.cc:344
float m_minCleanCorrectedHitEnergy
Min value of new hit hadronic energy estimate after cleaning.
Definition: EnergyCorrectionPlugins.h:301
BarrelGapEnergyFunction()
Default constructor.
Definition: EnergyCorrectionPlugins.cc:233
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read settings from the xml handle.
Definition: EnergyCorrectionPlugins.cc:312
ThetaNHitFunction class.
Definition: EnergyCorrectionPlugins.h:175
Approach
Approach enum.
Definition: EnergyCorrectionPlugins.h:139
CleanCluster class. Correct cluster energy by searching for constituent calo hits with anomalously hi...
Definition: EnergyCorrectionPlugins.h:278
BarrelGapEnergyFunction class.
Definition: EnergyCorrectionPlugins.h:112
PhiNHitFunction class.
Definition: EnergyCorrectionPlugins.h:226
pandora::FloatVector m_sdhcalThresholds
The sdhcal threshold values.
Definition: EnergyCorrectionPlugins.h:216
pandora::StatusCode MakeEnergyCorrections(const pandora::Cluster *const pCluster, float &correctedEnergy) const
Make energy correction on this given cluster.
Definition: EnergyCorrectionPlugins.cc:548