Core

Introduction

hipecta.core Core functions

Reference/API

hipecta.core Module

Functions

createRecoTemporary Create the temporary used for the reconstruction Parameter: ———- nbSlice : number of slices recorded by the camera focalLength : focal length of the telescope [m] tabPosPixelXY : two dimensions numpy ndarray (first column X, second column Y) table of the pixels’ position in [m] (x,y), (x,y), (x,y), (x,y), …
createTabHillasParam Create a numpy array for all the hillas parameters
fullAnalysis Do the hillas reconstruction (calibration/integration/cleaning/Hillas parameters Parameter: ———- matSignalHi : matrix of the high gain signal (np.uint16) configCut : cuts of all the analysis tmp : PRecoTemporary to be used tabHillasParameters : table of the hillas parameters to avoid relallocation (optional) Return: numpy.ndarray with all the hillas parameters
fullCalibIntegration Do the calibration and integration of the slices Parameter: ———- matSignalHi : matrix of the high gain signal (np.uint16) tmp : PRecoTemporary to be used tabCalibratedSIgnal : vector of the calibrated signal to avoid realocation (nbPixel, aligned in np.float32) Return: numpy.ndarray with all the vector of the calibrated signal
fullCalibration Do the calibration of the slices Parameter: ———- matSignalHi : matrix of the high gain signal (np.uint16) tmp : PRecoTemporary to be used matCalibratedSIgnal : matrix of the calibrated signal to avoid realocation (nbSlice, nbPixel, aligned with pitch) Return: numpy.ndarray with all the matrix of the calibrated signal
getEventAltitude get the index of altitude
getEventAzimuth get the index of azimuth
getEventChi2 get the index of chi2
getEventCoreX get the index of coreX
getEventCoreY get the index of coreY
getEventMultiplicity get the index of miultiplicity
getEventRecoQuality get the index of reco quality
getHillasDirection get the index of direction parameter
getHillasGx get the index of gx parameter
getHillasGy get the index of gy parameter
getHillasHofmannSeparation get the index of hofmann separation parameter
getHillasImageAmplitude get the index of image amplitude parameter
getHillasKurtosis get the index of kurtosis parameter
getHillasLength get the index of length parameter
getHillasNbSelectedPixel get the index of nb selected pixels parameter
getHillasPhi get the index of phi parameter
getHillasTotalAmplitude get the index of total amplitude parameter
getHillasWidth get the index of width parameter
getHillassSewness get the index of skewness parameter
getHillassSewnessPhi get the index of skewness phi parameter
stereoReco Do the stereoscopic reconstruction with Hillas parameters Parameter: ———- tmpSite : temporary which contains the telescopes positions, focal and pointing (azimuth, altitude) in radian event : PHillasEvent to be reconstructed configCut : PConfigCut to be used Return: numpy.ndarray with reconstructed parameter of the event (alt[rad], az[rad], coreX[m], coreY[m], multiplicity, recoQuality, chi2)
updateRecoTemporaryWithRefShape Update the PRecoTemporary temporary with the camera ref shape Parameter: ———- tmp : PRecoTemporary to be updated refShape : reference shape of the pulse for the camera threshold : threshold in percent [0, 1] of what you consider to be signal in the reference pulse (10% for example) Return: updated PRecoTemporary with reference shape