* * $Id: ischar.F,v 1.7 1999/04/08 16:03:12 mclareni Exp $ * * $Log: ischar.F,v $ * Revision 1.7 1999/04/08 16:03:12 mclareni * Version 7.44 from authors * * #include "sys/CERNLIB_machine.h" #include "pilot.h" FUNCTION ISCHAR ( ID) C---------------------------------------------------------------------- C- C- Purpose and Methods : gives the charge of the particle , depending C- on the ISAJET identifier ID. C- C- Inputs : ID = Isajet particle ident C- Outputs : ISCHAR = 0 Neutral particle C- = +-1 positive or negative charged particle C- C- Created 14-APR-1988 Ghita Rahal-Callot C- Modified to use ISAJET charge, Serban Protopopescu 30-Nov-1988 C---------------------------------------------------------------------- #if defined(CERNLIB_IMPNONE) IMPLICIT NONE #endif INTEGER ID, ISCHAR REAL CHARGE C---------------------------------------------------------------------- ISCHAR=INT(CHARGE(ID)) 999 RETURN END