30 typedef std::pair<XYZPoint,double>
Spot;
31 typedef std::pair<unsigned int, double>
Step;
32 typedef std::vector<Step>
Steps;
53 double gam(
double x,
double a)
const {
return pow(x,a-1.)*
exp(-x); }
59 double fsq = factor * factor;
60 return ((fsq + 1.)/fsq) * r * r / (r*r + R*
R) ;
65 int indexFinder(
double x,
const std::vector<double> & Fhist);
HDShower(const RandomEngine *engine, HDShowerParametrization *myParam, EcalHitMaker *myGrid, HcalHitMaker *myHcalHitMaker, int onECAL, double epart, DQMStore *const dbeIn)
const ECALProperties * theECALproperties
Steps::const_iterator step_iterator
std::vector< double > lamstep
bool compute()
Compute the shower longitudinal and lateral development.
std::vector< double > x0curr
std::pair< unsigned int, double > Step
std::vector< double > lamdepth
std::vector< double > lamcurr
double gam(double x, double a) const
std::pair< XYZPoint, double > Spot
double transProb(double factor, double R, double r)
std::vector< double > x0depth
HDShowerParametrization * theParam
std::vector< Step > Steps
std::vector< int > nspots
XYZVectorD XYZVector
spatial vector with cartesian internal representation
HcalHitMaker * theHcalHitMaker
std::vector< int > detector
std::vector< double > lamtotal
const RandomEngine * random
const HCALProperties * theHCALproperties
std::vector< double > eStep
int indexFinder(double x, const std::vector< double > &Fhist)
std::vector< double > rlamStep
void makeSteps(int nsteps)
Power< A, B >::type pow(const A &a, const B &b)