97 std::cout <<
" CDividerFP420::ChargeDividerFP420:divide: direction= " << direction << std::endl;
98 std::cout <<
" CDividerFP420::ChargeDividerFP420:divide: direction.mag = " << direction.
mag() << std::endl;
104 int NumberOfSegmentation =
113 std::cout <<
"NumberOfSegmentation= " << NumberOfSegmentation << std::endl;
120 std::cout <<
"CDividerFP420::ChargeDividerFP420:divide: eLoss= " << eLoss << std::endl;
128 std::cout <<
"CDividerFP420::ChargeDividerFP420:divide: decSignal= " << decSignal << std::endl;
133 _ionization_points.resize(NumberOfSegmentation);
138 float* eLossVector =
new float[NumberOfSegmentation];
142 std::cout <<
"CDividerFP420::ChargeDividerFP420:divide: resize done; then, fluctuateCharge ? = " <<
fluctuateCharge << std::endl;
148 float momentum = hit.
pabs();
149 float length = direction.
mag();
152 std::cout <<
"pid= " << pid <<
"momentum= " << momentum <<
"eLoss= " << eLoss <<
"length= " << length << std::endl;
154 fluctuateEloss(pid, momentum, eLoss, length, NumberOfSegmentation, eLossVector);
157 for (
int i = 0;
i != NumberOfSegmentation; ++
i) {
159 energy=eLossVector[
i]*decSignal/eLoss;
162 _ionization_points[
i] = edu;
164 energy=decSignal/float(NumberOfSegmentation);
167 _ionization_points[
i] = edu;
172 std::cout <<
"CDividerFP420::ChargeDividerFP420:divide: !!! RESULT !!!" << std::endl;
173 std::cout <<
" _ionization_points size = " << _ionization_points.size() << std::endl;
174 for(
unsigned int i = 0;
i < _ionization_points.size(); ++
i ) {
175 std::cout <<
" eLossVector[i] i = " <<
i << eLossVector[
i] << std::endl;
179 delete[] eLossVector;
180 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.