9 #include "CLHEP/GenericFunctions/IncompleteGamma.hh" 22 class GammaDistributionGenerator;
29 typedef std::pair<XYZPoint, double>
Spot;
30 typedef std::pair<unsigned int, double>
Step;
31 typedef std::vector<Step>
Steps;
38 std::vector<const RawParticle*>*
const myPart,
68 double gam(
double x,
double a)
const;
71 double deposit(
double t,
double a,
double b,
double dt);
74 double deposit(
double a,
double b,
double t);
89 std::vector<const RawParticle*>*
const thePart;
95 std::vector<double>
E;
97 std::vector<double>
T;
98 std::vector<double>
a;
99 std::vector<double>
b;
100 std::vector<double>
Ti;
std::vector< const RawParticle * > *const thePart
std::vector< double > theNumberOfSpots
std::vector< Step > Steps
void prepareSteps()
Computes the steps before the real compute.
std::vector< double > maximumOfShower
std::vector< double > aSpot
std::pair< XYZPoint, double > Spot
double deposit(double t, double a, double b, double dt)
const RandomEngineAndDistribution * random
double gam(double x, double a) const
const HCALProperties * theHCAL
void setPreshower(PreshowerHitMaker *const myPresh)
set the preshower address
Steps::const_iterator step_iterator
const ECALProperties * theECAL
void setIntervals(unsigned icomp, RadialInterval &rad)
void compute()
Compute the shower longitudinal and lateral development.
std::vector< double > Etot
PreshowerHitMaker * thePreshower
std::vector< std::vector< double > > depositedEnergy
HcalHitMaker * theHcalHitMaker
std::vector< double > meanDepth
std::vector< double > photos
XYZVectorD XYZVector
spatial vector with cartesian internal representation
EMShower(RandomEngineAndDistribution const *engine, GammaFunctionGenerator *gamma, EMECALShowerParametrization *const myParam, std::vector< const RawParticle * > *const myPart, EcalHitMaker *const myGrid=nullptr, PreshowerHitMaker *const myPreshower=nullptr, bool bFixedLength=false)
const PreshowerLayer2Properties * theLayer2
const PreshowerLayer1Properties * theLayer1
EMECALShowerParametrization *const theParam
GammaFunctionGenerator * myGammaGenerator
std::vector< double > TSpot
Genfun::IncompleteGamma myIncompleteGamma
std::pair< unsigned int, double > Step
void setHcal(HcalHitMaker *const myHcal)
set the HCAL address
void setGrid(EcalHitMaker *const myGrid)
set the grid address
std::vector< double > bSpot
double getMaximumOfShower() const
get the depth of the centre of gravity of the shower(s)