LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
LArParticleIdPlugins.h
Go to the documentation of this file.
1 
8 #ifndef LAR_PARTICLE_ID_PLUGINS_H
9 #define LAR_PARTICLE_ID_PLUGINS_H 1
10 
11 #include "Plugins/ParticleIdPlugin.h"
12 
13 namespace lar_content
14 {
15 
16 class TwoDSlidingFitResult;
17 
18 //------------------------------------------------------------------------------------------------------------------------------------------
19 
24 {
25 public:
29  class LArMuonId : public pandora::ParticleIdPlugin
30  {
31  public:
35  LArMuonId();
36 
37  bool IsMatch(const pandora::Cluster *const pCluster) const;
38  bool IsMatch(const pandora::ParticleFlowObject *const pPfo) const;
39 
40  private:
48  float GetMuonTrackWidth(const TwoDSlidingFitResult &twoDSlidingFitResult) const;
49 
50  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
51 
52  unsigned int m_layerFitHalfWindow;
56  unsigned int m_minClustersPassingId;
57  };
58 };
59 
60 } // namespace lar_content
61 
62 #endif // #ifndef LAR_PARTICLE_ID_PLUGINS_H
unsigned int m_layerFitHalfWindow
Layer fit half window, used for calculating sliding muon track width.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
float m_trackResidualQuantile
Track residual quantile, used for calculating muon track width.
float GetMuonTrackWidth(const TwoDSlidingFitResult &twoDSlidingFitResult) const
Get the muon track width estimator for a provided sliding fit result.
LArParticleIdPlugins class.
bool IsMatch(const pandora::Cluster *const pCluster) const
float m_minLayerOccupancy
Min layer occupancy for for muon identification.
float m_maxTrackWidth
Max muon track width estimator for muon identification.
unsigned int m_minClustersPassingId
Match pfo if at sufficient clusters in pfo pass the cluster particle id logic.