Index of /~baillie/deeps/RV

      Name                    Last modified       Size  Description

[DIR] Parent Directory 08-Apr-2009 16:00 - [TXT] BeamPosition.cc 07-Aug-2008 14:34 37k [TXT] BeamPosition.h 07-Aug-2008 14:34 1k [TXT] CLASECorr_el_fin_150..> 07-Aug-2008 13:23 6k [TXT] CLASECorr_el_fin_225..> 07-Aug-2008 13:23 6k [TXT] CLASECorr_pim_fin_15..> 07-Aug-2008 13:23 7k [TXT] CLASECorr_pim_fin_22..> 07-Aug-2008 13:23 7k [TXT] CLASECorr_pip_fin_15..> 07-Aug-2008 13:23 7k [TXT] CLASECorr_pip_fin_22..> 07-Aug-2008 13:23 7k [TXT] CLASECorr_prt_fin_15..> 07-Aug-2008 13:23 6k [TXT] CLASECorr_prt_fin_22..> 07-Aug-2008 13:23 7k [TXT] corr_input_rv.h 07-Aug-2008 13:27 2k [TXT] inipar_rv.h 07-Aug-2008 13:27 1k [TXT] momcorr_params.dat 11-Sep-2008 14:32 1k [TXT] momcorr_rv.cc 13-Oct-2008 11:24 2k [TXT] momcorr_rv.h 14-Oct-2008 09:14 32k [TXT] theta_z_cut.h 13-Oct-2008 11:40 1k

Momentum corrections release package.

S.Tkachenko, 09/11/08. 

USE

 You will need to include the file momcorr_rv.cc in your program. Files
 *unix.txt contain energy loss parameters, I would put them in the same
 directory as executable as well as momcorr_params.dat which is the
 file
 with momentum correction parameters. Other files are included in
 momcorr_rv.cc, so keep them where makefile can find them.

 Example of Calling:

 CorrMom.CallCorr(px_pass,py_pass,pz_pass,m_pass,foundmass_ctr,run_number,q_pass,sec_pass,phiDC_pass,vz_pass,pid_pass,beamEpar);

 where CorrMom is an instance of eg1bCorr class (should be created before calling the routine),
 px_pass,py_pass,pz_pass - arrays of momentum components, GeV;
 m_pass - array of masses, particles physical masses in GeV;
 foundmass_ctr - number of good particles in the event (that is, number
 of
 entries in the arrays);
 run_number - run number;
 q_pass - array of charges, units of electron charge;
 sec_pass - array of sector numbers;
 phiDC_pass - array of phi angles in the 1st dc layer, radians;
 vz_pass - array of z vertices, cm;
 pid_pass - array of particle ids, PDG convention.
 beamEpar - beam energy for the run that will be returned by the program, GeV.

 The user supplies arrays of old values of momenta (px_pass,py_pass,pz_pass), which are changed so the same arrays contain new values after the call.

 There are no checks for good particles inside, so the user must make sure
 that he is only passing good particle data

 inipar() routine should be called at the beginning of the main program to do sime "initializing". Just like that, no class member in front, no arguments.