55 if (
m_verboseLevel>5) { G4cout <<
"######### Method TRTParametersForBarrelHits::DefineParameters" << G4endl; }
58 int numberOfStrawLayersA =
60 int numberOfStrawLayersB =
62 int numberOfStrawLayersC =
66 int* numberOfStrawsInLayersA =
new int[numberOfStrawLayersA];
67 m_pParameters->GetIntegerArray(
"NumberOfStrawsInLayersA", numberOfStrawLayersA,
68 numberOfStrawsInLayersA);
70 int* integralDistributionOfStrawsA =
new int[numberOfStrawLayersA];
71 integralDistributionOfStrawsA[0] = numberOfStrawsInLayersA[0];
73 for (
i = 1;
i < numberOfStrawLayersA; ++
i)
74 integralDistributionOfStrawsA[
i] = integralDistributionOfStrawsA[
i - 1] +
75 numberOfStrawsInLayersA[
i];
77 for (
i = 0;
i < numberOfStrawLayersA; ++
i)
79 integralDistributionOfStrawsA[
i];
81 delete [] numberOfStrawsInLayersA;
84 int* numberOfStrawsInLayersB =
new int[numberOfStrawLayersB];
85 m_pParameters->GetIntegerArray(
"NumberOfStrawsInLayersB", numberOfStrawLayersB,
86 numberOfStrawsInLayersB);
88 int* integralDistributionOfStrawsB =
new int[numberOfStrawLayersB];
89 integralDistributionOfStrawsB[0] = numberOfStrawsInLayersB[0];
90 for (
i = 1;
i < numberOfStrawLayersB; ++
i)
91 integralDistributionOfStrawsB[
i] = integralDistributionOfStrawsB[
i - 1] +
92 numberOfStrawsInLayersB[
i];
94 for (
i = 0;
i < numberOfStrawLayersB; ++
i)
96 integralDistributionOfStrawsB[
i];
98 delete [] numberOfStrawsInLayersB;
101 int* numberOfStrawsInLayersC =
new int[numberOfStrawLayersC];
102 m_pParameters->GetIntegerArray(
"NumberOfStrawsInLayersC", numberOfStrawLayersC,
103 numberOfStrawsInLayersC);
105 int* integralDistributionOfStrawsC =
new int[numberOfStrawLayersC];
106 integralDistributionOfStrawsC[0] = numberOfStrawsInLayersC[0];
107 for (
i = 1;
i < numberOfStrawLayersC; ++
i)
108 integralDistributionOfStrawsC[
i] = integralDistributionOfStrawsC[
i - 1] +
109 numberOfStrawsInLayersC[
i];
111 for (
i = 0;
i < numberOfStrawLayersC; ++
i)
113 integralDistributionOfStrawsC[
i];
115 delete [] numberOfStrawsInLayersC;
123 if (
i + 1 > integralDistributionOfStrawsA[layerID])
131 if (
i + 1 > integralDistributionOfStrawsB[layerID])
139 if (
i + 1 > integralDistributionOfStrawsC[layerID])
145 delete [] integralDistributionOfStrawsA;
146 delete [] integralDistributionOfStrawsB;
147 delete [] integralDistributionOfStrawsC;
150 if (
m_verboseLevel>5) { G4cout <<
"######### Method TRTParametersForBarrelHits::DefineParameters done" << G4endl; }