Reimplemented from GflashHadronShowerProfile.
Definition at line 4 of file GflashPiKShowerProfile.cc.
10 double energyMeanHcal = 0.0;
11 double energySigmaHcal = 0.0;
16 if (showerType == 0 || showerType == 1 || showerType == 4 || showerType == 5) {
20 if (showerType == 0 || showerType == 1) {
22 r1 = CLHEP::RandGaussQ::shoot();
35 r2 = CLHEP::RandGaussQ::shoot();
37 exp(energyMeanHcal + energySigmaHcal * (energyRho *
r1 +
sqrt(1.0 - energyRho * energyRho) *
r2));
41 r1 = CLHEP::RandGaussQ::shoot();
53 r2 = CLHEP::RandGaussQ::shoot();
55 exp(energyMeanHcal + energySigmaHcal * (energyRho *
r1 +
sqrt(1.0 - energyRho * energyRho) *
r2));
58 }
else if (showerType == 2 || showerType == 3 || showerType == 6 || showerType == 7) {
66 if (showerType == 2 || showerType == 3) {
70 r1 = CLHEP::RandGaussQ::shoot();
74 if (showerType == 2) {
78 }
else if (showerType == 6 || showerType == 7) {
82 r1 = CLHEP::RandGaussQ::shoot();
87 if (showerType == 6) {
104 if (showerType > 3) {
120 normalZ[
i] = CLHEP::RandGaussQ::shoot();
123 double correlationSum = 0.0;
125 for (
int j = 0;
j <
i + 1;
j++) {
126 correlationSum += correlationVectorHcal[
i * (
i + 1) / 2 +
j] * normalZ[
j];
132 delete[] correlationVectorHcal;
144 if (showerType == 1) {
153 normalZ[
i] = CLHEP::RandGaussQ::shoot();
155 double correlationSum = 0.0;
157 for (
int j = 0;
j <
i + 1;
j++) {
158 correlationSum += correlationVectorEcal[
i * (
i + 1) / 2 +
j] * normalZ[
j];
165 delete[] correlationVectorEcal;
References GflashHadronShowerProfile::depthScale(), GflashHadronShowerProfile::energyScale, JetChargeProducer_cfi::exp, GflashHadronShowerProfile::fTanh(), GflashShowino::getEnergy(), GflashHadronShowerProfile::getFluctuationVector(), GflashShowino::getPositionAtShower(), GflashShowino::getShowerType(), mps_fire::i, dqmiolumiharvest::j, Gflash::kENCA, Gflash::kESPM, Gflash::kHB, Gflash::kHE, GflashHadronShowerProfile::lateralPar, Gflash::LengthCrystalEB, Gflash::LengthCrystalEE, dqm-mbProfile::log, GflashHadronShowerProfile::longEcal, GflashHadronShowerProfile::longHcal, SiStripPI::max, Gflash::NPar, Gflash::Nrpar, Gflash::pion_correl_hadem, Gflash::pion_emscale, Gflash::pion_hadscale, Gflash::pion_par, Gflash::pion_rho, Gflash::pion_rpar, position, diffTwoXMLs::r1, diffTwoXMLs::r2, Gflash::RFrontCrystalEB, Gflash::Rmin, mathSSE::sqrt(), GflashHadronShowerProfile::theShowino, Gflash::ZFrontCrystalEE, and Gflash::Zmin.