All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
KITutil.cc File Reference
#include <algorithm>
#include "KITutil.h"
Include dependency graph for KITutil.cc:

Go to the source code of this file.

Functions

void CreateAllShits2 (LCCollection *colt, CellIDDecoder< CalorimeterHit > &id, vector< Superhit2 * > *calo)
 Creation of superhits, input is ECAL collection ,it's decoded and pointer to resulting container for superhits. More...
 
void TotalPrecalc2 (vector< Superhit2 * > *calo, CellIDDecoder< CalorimeterHit > &id, unsigned int nelem, int Ncut)
 Global precalculation function , iput is vector of superhits, ECAL decoder, number of hits, and number of neighbors cut for hit separation. More...
 
void Precalc2 (vector< Superhit2 * > &shvec, double r, double z, double cell, double dist, bool tip, int stove, int module, CellIDDecoder< CalorimeterHit > &id)
 Precalculation function used internaly by TotalPrecalc. More...
 
void GridTransform2 (CalorimeterHit *clh, float &radius, float &halfz, float &cellsize, float *X, bool tip, int stove, int module, CellIDDecoder< CalorimeterHit > &id)
 Basic function for transformation of hit coordinates. More...
 
void FindCores2 (Shitvec2 *secal1, vector< Tmpclvec2 > &bbb, vector< PROTSEED2 > *prs2, unsigned int N, vector< float > miipstep, CoreCut2 Ccut)
 Global EM core finding function , iput is vector of superhits, array of Tmpcl vectors bbb for internal computation, vector of EM core candidates prs2, and parameters of the algorithm. More...
 
void cluster5 (vector< Superhit2 * > *shv, vector< Tmpcl2 * > *clv)
 NN clustering. More...
 
void LineCaloIntersectD2 (double *X1, double *dir, double &d, double &zmax, double *X)
 
void LineCaloIntersect2 (double *X1, double *X2, double &d, double &zmax, double *X)
 
void ClusterInCluster2 (Tmpcl2 *cl, vector< Tmpcl2 * > &clv)
 
double LinePointDistance2 (double *X1, double *X2, double *X0)
 
void ModuleNormal2 (double *X1, double &zmax, double *X0)
 
double D_cl_cl2 (Tmpcl2 *cl1, Tmpcl2 *cl2)
 
double Dot2 (double *X1, double *X2)
 
void ClusterInCluster2 (Tmpcl2 *cl, vector< Tmpcl2 * > &clv, vector< Tmpcl2 * > &clout)
 
void PointOnLine3 (const double *X1, const double *X2, const float *X0, double *Xline)
 
void PointOnLine22 (const double *Xstart, const double *dir, const float *X0, double *Xline)
 
double giveMeEEstimate2 (int nivo, double Ecore, vector< CoreCalib2 > cc)
 returns energy estimate for a given core , input int level, double core energy in GeV, and calibration data table More...
 
void CreateCalibrationLDC00 (vector< CoreCalib2 > *cc)
 Example function for creation of the energy estimaiton table. More...