9 #include "CLHEP/GenericFunctions/IncompleteGamma.hh"
22 class GammaDistributionGenerator;
33 typedef std::pair<XYZPoint,double>
Spot;
34 typedef std::pair<unsigned int, double>
Step;
35 typedef std::vector<Step>
Steps;
43 std::vector<const RawParticle*>*
const myPart,
47 bool bFixedLength =
false);
75 double gam(
double x,
double a)
const;
96 std::vector<const RawParticle*>*
const thePart;
102 std::vector<double>
E;
104 std::vector<double>
T;
105 std::vector<double>
a;
106 std::vector<double>
b;
107 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
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
EMShower(RandomEngineAndDistribution const *engine, GammaFunctionGenerator *gamma, EMECALShowerParametrization *const myParam, std::vector< const RawParticle * > *const myPart, DQMStore *const dbeIn=NULL, EcalHitMaker *const myGrid=NULL, PreshowerHitMaker *const myPreshower=NULL, bool bFixedLength=false)
std::pair< XYZPoint, double > Spot
HcalHitMaker * theHcalHitMaker
std::vector< double > meanDepth
std::vector< double > photos
XYZVectorD XYZVector
spatial vector with cartesian internal representation
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)