101 {
102
103
105
106 std::vector<double>::iterator
begin=vectorOfProbs.begin();
107 std::vector<double>::iterator
end=vectorOfProbs.end();
108
109 for (std::vector<double>::iterator iter=begin;
iter!=
end;++
iter)
110 {
112 }
113
114
116
117 std::vector<double> vectorOfSplitProbs;
118
119 for (std::vector<double>::iterator iter=begin;
iter!=
end;++
iter)
120 {
122 }
123
125 {
127 return InDet::PixelClusterSplitProb(std::vector<double>());
128 }
129
130 double psum=0;
133 {
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