#include "PndTpcClusterFitLikeli.h" #include "PndTpcDigiMapper.h" #include "PndTpcPadShapePool.h" #include "PndTpcPRLookupTable.h" #include using namespace std; PndTpcClusterFitLikeli::PndTpcClusterFitLikeli(unsigned int nsigmaSteps, double sigmaMin, double sigmaMax, double irange, double step, double intStep) : fdigis(), famps(), fnSigmaSteps(nsigmaSteps), fsigMin(sigmaMin), fsigMax(sigmaMax) { cout << "Setting up PndTpcClusterFitLikeli... " << endl; const PndTpcPadShapePool* pool=PndTpcDigiMapper::getInstance()->getPadShapePool(); //copy gem (we need to modify it) PndTpcGem gem(*(PndTpcDigiMapper::getInstance()->getGem())); double spread=gem.spread(); double srange=sigmaMax-sigmaMin; assert(srange>0); double sstep=srange/(double)nsigmaSteps; // loop over PadShapes and // create lookup tables for different charge cloud spreads unsigned int n=pool->numPadShapes(); for(unsigned int i=0;i