///////////////////////////////////////////////////////////////// // // CORStatfile // // Created: Tue Apr 28 16:14:05 1998 // Author: Jose Carlos Gonzales // Purpose: Base class for Event-classes // Notes: // ///////////////////////////////////////////////////////////////// // @T \newpage // @section Source code of {\tt CORStatfile.cxx} // @subsection Class {\em CORStatfile}: Implementation // @code #include "CORStatfile.hxx" CORStatfile::CORStatfile () { init ( 79 ); // assumes thstep = 10 g/cm2 (790/10 = 79) } CORStatfile::CORStatfile ( Int_t n ) { init ( n ); } void CORStatfile::init ( Int_t n ) { Int_t i, k; nstep = n; evth = new Float_t[MAXBUF]; // event header evte = new Float_t[MAXBUF]; // event end nproto = new Int_t[nstep]; nprotb = new Int_t[nstep]; nneutr = new Int_t[nstep]; nneutb = new Int_t[nstep]; nphoto = new Int_t[nstep]; nelect = new Int_t[nstep]; nposit = new Int_t[nstep]; nnu = new Int_t[nstep]; nmum = new Int_t[nstep]; nmup = new Int_t[nstep]; npi0 = new Int_t[nstep]; npim = new Int_t[nstep]; npip = new Int_t[nstep]; nk0l = new Int_t[nstep]; nk0s = new Int_t[nstep]; nkmi = new Int_t[nstep]; nkpl = new Int_t[nstep]; nhyp = new Int_t[nstep]; ndeut = new Int_t[nstep]; ntrit = new Int_t[nstep]; nalpha = new Int_t[nstep]; nother = new Int_t[nstep]; plong = new Float_t * [9]; aplong = new Float_t * [9]; for ( i=0; i<9; i++ ) { plong[i] = new Float_t[NPLONG]; aplong[i] = new Float_t[NPLONG]; } for ( i=0; i<9; i++ ) for ( k=0; k