93 std::cout <<
" CDividerFP420::ChargeDividerFP420:divide: direction= " << direction << std::endl;
94 std::cout <<
" CDividerFP420::ChargeDividerFP420:divide: direction.mag = " << direction.
mag() << std::endl;
100 int NumberOfSegmentation =
109 std::cout <<
"NumberOfSegmentation= " << NumberOfSegmentation << std::endl;
116 std::cout <<
"CDividerFP420::ChargeDividerFP420:divide: eLoss= " << eLoss << std::endl;
124 std::cout <<
"CDividerFP420::ChargeDividerFP420:divide: decSignal= " << decSignal << std::endl;
129 _ionization_points.resize(NumberOfSegmentation);
134 float* eLossVector =
new float[NumberOfSegmentation];
138 std::cout <<
"CDividerFP420::ChargeDividerFP420:divide: resize done; then, fluctuateCharge ? = " <<
fluctuateCharge << std::endl;
144 float momentum = hit.
pabs();
145 float length = direction.
mag();
148 std::cout <<
"pid= " << pid <<
"momentum= " << momentum <<
"eLoss= " << eLoss <<
"length= " << length << std::endl;
150 fluctuateEloss(pid, momentum, eLoss, length, NumberOfSegmentation, eLossVector);
153 for (
int i = 0;
i != NumberOfSegmentation; ++
i) {
155 energy=eLossVector[
i]*decSignal/eLoss;
158 _ionization_points[
i] = edu;
160 energy=decSignal/
float(NumberOfSegmentation);
163 _ionization_points[
i] = edu;
168 std::cout <<
"CDividerFP420::ChargeDividerFP420:divide: !!! RESULT !!!" << std::endl;
169 std::cout <<
" _ionization_points size = " << _ionization_points.size() << std::endl;
170 for(
unsigned int i = 0;
i < _ionization_points.size(); ++
i ) {
171 std::cout <<
" eLossVector[i] i = " <<
i << eLossVector[
i] << std::endl;
175 delete[] eLossVector;
176 return _ionization_points;
std::vector< EnergySegmentFP420 > ionization_type
Local3DPoint exitPoint() const
Exit point in the local Det frame.
float pabs() const
fast and more accurate access to momentumAtEntry().mag()
void fluctuateEloss(int particleId, float momentum, float eloss, float length, int NumberOfSegmentation, float elossVector[])
int chargedivisionsPerHit
float TimeResponse(const PSimHit &)
float energyLoss() const
The energy deposit in the PSimHit, in ???.
Local3DPoint entryPoint() const
Entry point in the local Det frame.