ATLAS Offline Software
PixelClusterSplitProb.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // PixelClusterSplitProb.h
7 // Header file for class PixelClusterSplitProb
9 // (c) ATLAS Detector software
11 
12 #ifndef TRKPREPRAWDATA_PIXELCLUSTERSPLITPROB_H
13 #define TRKPREPRAWDATA_PIXELCLUSTERSPLITPROB_H
14 
15 #include <vector>
16 
17 namespace InDet {
26 
27  public :
30  {
32  }
33 
35  PixelClusterSplitProb(const std::vector<double>& splitProbabilities) :
36  m_splitProbabilities(splitProbabilities)
37  {}
38 
46 
48  double splitProbability(unsigned int nParticles=2) const;
49 
51  unsigned int getHighestSplitMultiplicityStored() const;
52 
53 
54  private :
55  //i element of vector describes probability for splitting into i+1 particles
56  std::vector<double> m_splitProbabilities;
57 
58  };
59 
60  inline double PixelClusterSplitProb::splitProbability(unsigned int nParticles) const
61  {
62 
63  if (nParticles<2) return -100;
64  if (m_splitProbabilities.size()<nParticles-1) return -99;
65  return m_splitProbabilities[nParticles-2];
66  }
67 
69  {
70  return m_splitProbabilities.size()+1;
71  }
72 
73 }
74 
75 
76 
77 #endif
InDet::PixelClusterSplitProb::~PixelClusterSplitProb
~PixelClusterSplitProb()=default
destructor
InDet::PixelClusterSplitProb::PixelClusterSplitProb
PixelClusterSplitProb(const PixelClusterSplitProb &pcp)=default
default operations
InDet::PixelClusterSplitProb
Definition: PixelClusterSplitProb.h:25
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::PixelClusterSplitProb::getHighestSplitMultiplicityStored
unsigned int getHighestSplitMultiplicityStored() const
return method : numberOfProbabilitiesStored
Definition: PixelClusterSplitProb.h:68
InDet::PixelClusterSplitProb::PixelClusterSplitProb
PixelClusterSplitProb(const std::vector< double > &splitProbabilities)
constructor
Definition: PixelClusterSplitProb.h:35
InDet::PixelClusterSplitProb::operator=
PixelClusterSplitProb & operator=(const PixelClusterSplitProb &rhs)=default
InDet::PixelClusterSplitProb::m_splitProbabilities
std::vector< double > m_splitProbabilities
Definition: PixelClusterSplitProb.h:56
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
InDet::PixelClusterSplitProb::PixelClusterSplitProb
PixelClusterSplitProb(PixelClusterSplitProb &&pcp)=default
InDet::PixelClusterSplitProb::PixelClusterSplitProb
PixelClusterSplitProb(double splitProbability)
constructor
Definition: PixelClusterSplitProb.h:29
InDet::PixelClusterSplitProb::operator=
PixelClusterSplitProb & operator=(PixelClusterSplitProb &&rhs)=default
InDet::PixelClusterSplitProb::splitProbability
double splitProbability(unsigned int nParticles=2) const
return method : total split probability
Definition: PixelClusterSplitProb.h:60