102 {
103 const std::vector<double>::iterator
begin=vectorOfProbs.begin();
104 const std::vector<double>::iterator
end=vectorOfProbs.end();
105 double sum = std::accumulate(begin, end, 0.);
108 return InDet::PixelClusterSplitProb(std::vector<double>());
109 }
110
112
113 std::vector<double> vectorOfSplitProbs;
114
115 for (std::vector<double>::iterator iter=begin;
iter!=
end;++
iter)
116 {
118 }
119
121 {
123 return InDet::PixelClusterSplitProb(std::vector<double>());
124 }
125
126 double psum=0;
129 {
131 }
134 return InDet::PixelClusterSplitProb(std::vector<double>());
135 }
136
139 {
141 (*iter)/=psum;
142 }
143
144 double sumTest=0;
145
146 for (std::vector<double>::iterator iter=begin;
iter!=
end;++
iter)
147 {
150 }
151
153 for (std::vector<double>::iterator iter=begin;
iter!=
end;++
iter)
154 {
155 if (iter!=begin)
156 {
157 vectorOfSplitProbs.push_back(*iter);
158 }
159 }
160
161 ATH_MSG_VERBOSE(
" normalized P(1->2): " << vectorOfSplitProbs[0] <<
" P(2->3): " << vectorOfSplitProbs[1] );
162
163 PixelClusterSplitProb clusterSplitProb(vectorOfSplitProbs);
164
165 ATH_MSG_VERBOSE(
"SplitProb: " << clusterSplitProb.splitProbability(2) <<
" -->3 " << clusterSplitProb.splitProbability(3) );
166
167 return clusterSplitProb;
168 }
#define ATH_MSG_VERBOSE(x)
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string