/[PAMELA software]/PamVMC/trk/src/f77/locatf.F
ViewVC logotype

Annotation of /PamVMC/trk/src/f77/locatf.F

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Fri Jun 12 18:39:59 2009 UTC (15 years, 7 months ago) by pam-rm2
Branch: MAIN
CVS Tags: v1r0, HEAD
Changes since 1.1: +4 -1 lines
- Introduced user-defined names of output files and random seeds number.
Users can do it use options of PamVMCApplication constructor:
PamVMCApplication(const char* name,  const char *title, const char*
filename="pamtest", Int_t seed=0).
The Random object that I use is TRandom3 object which has astronomical
large period (in case of default initialization 0). All random generators
in the code use this object by calling of gRandom singleton which keeps
it.

- Corrected TOF digitization routine. No problems with TDC hits due to
hadronic interactions anymore.

- Some small changes was done to compile code under Root 5.23. +
geant4_vmc v. 2.6 without any warnings

- Some classes of PamG4RunConfiguartion was changed for geant4_vmc v.
2.6.Some obsolete classes was deleted as soon as developers implemented
regions.

- Navigation was changed from "geomRootToGeant4" to "geomRoot", because on
VMC web page written that as soon as Geant4 has no option ONLY/MANY
translation of overlapped geometry to Geant4 through VGM could be wrong.
I'd like to stay with Root navigation:
http://root.cern.ch/root/vmc/Geant4VMC.html. This should be default
option.

- New Tracker digitization routine written by Sergio was implemented

- PamVMC again became compatible with geant4_vmc v.2.5 and ROOT 5.20.
 The problem was that ROOT developers introduced in TVirtualMC class a new
method SetMagField and new base class:TVirtualMagField from which
user-defined classes shoukd be derived

1 nikolas 1.1 *
2 pam-rm2 1.5 * $Id: locatf.F,v 1.1 2009-02-19 17:46:26 nikolas Exp $
3 nikolas 1.1 *
4     * $Log: locatf.F,v $
5 pam-rm2 1.5 * Revision 1.1 2009-02-19 17:46:26 nikolas
6     * Cleaning up before releasing
7     *
8 nikolas 1.1 * Revision 1.2 1996/05/24 10:56:52 jamie
9     * add locatr entry for consistency with wrup
10     *
11     * Revision 1.1.1.1 1996/02/15 17:48:49 mclareni
12     * Kernlib
13     *
14     *
15     #if !defined(CERNLIB_QMIBMVF)
16     *#include "kernnum/pilot.h"
17     *
18     * Name change (consistancy)
19     *
20     FUNCTION LOCATR(ARRAY,LENGTH,OBJECT)
21     DIMENSION ARRAY(*)
22     LOCATR=LOCATF(ARRAY,LENGTH,OBJECT)
23     END
24    
25     FUNCTION LOCATF(ARRAY,LENGTH,OBJECT)
26     C BINARY SEARCH THRU 'ARRAY' TO FIND 'OBJECT'
27     C 'ARRAY' IS ASSUMED TO BE SORTED PRIOR TO CALL
28     C IF MATCH IS FOUND, FUNCTION RETURNS POSITION OF ELEMENT
29     C IF NO MATCH FOUND, FUNCTION GIVES NEGATIVE OF NEAREST ELEMENT
30     C SMALLER THAN OBJECT
31     C F. JAMES , SEPT.,1974
32     DIMENSION ARRAY(2)
33     NABOVE = LENGTH + 1
34     NBELOW = 0
35     10 IF (NABOVE-NBELOW .LE. 1) GO TO 200
36     MIDDLE = (NABOVE+NBELOW) / 2
37     IF (OBJECT - ARRAY(MIDDLE)) 100, 180, 140
38     100 NABOVE = MIDDLE
39     GO TO 10
40     140 NBELOW = MIDDLE
41     GO TO 10
42     180 LOCATF = MIDDLE
43     GO TO 300
44     200 LOCATF = -NBELOW
45     300 RETURN
46     END
47     #endif

  ViewVC Help
Powered by ViewVC 1.1.23