Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Definitions.h

Go to the documentation of this file.
00001 // $Header: /nfs/slac/g/glast/ground/cvs/GlastEvent/GlastEvent/TopLevel/Definitions.h,v 1.1.1.1 2000/09/27 18:56:13 burnett Exp $
00002 #ifndef LHCBEVENT_DEFINITIONS_H
00003 #define LHCBEVENT_DEFINITIONS_H 1
00004 
00005 
00006 // Include files
00007 #include <iostream>
00008 #include <iomanip>
00009 
00010 
00011 //------------------------------------------------------------------------------
00012 //
00013 // Description: Definitions of GlastEvent specific constants
00014 //              e.g. output precision of member data
00015 //                   (used in the function fillstream())
00016 //
00017 // Author:      Pavel Binko
00018 //
00019 //------------------------------------------------------------------------------
00020 
00021 namespace GlastEvent {
00022 
00023   // Width of the output field of a floating point number
00024   const int width      = 12;
00025   // Number of positions after the decimal point
00026   const int precision  = 2;
00027 
00028   // Width of an integer output field         -999 <= i < 9999
00029   const int field4     = 4;
00030   // Width of an integer output field        -9999 <= i < 99999
00031   const int field5     = 5;
00032   // Width of an integer output field -99999999999 <= i < 999999999999
00033   const int field12    = 12;
00034 
00035 }
00036 
00037 
00038 // Macro, which defines the output format of floating point numbers
00039 //   Standard usage :
00040 //     << GlastEventFloatFormat( GlastEvent::width, GlastEvent::precision ) << 
00041 #define GlastEventFloatFormat(X,Y)       std::setw(X) << std::setprecision(Y)
00042 // The keyword scientific does not work properly om all platforms
00043 // #define GlastEventFloatFormat(X,Y)       std::setw(X)
00044 //                                           << std::setprecision(Y)
00045 //                                           << scientific
00046 
00047 
00048 // Macro, which defines the output format of integer numbers
00049 //   Standard usage : << GlastEventField( GlastEvent::field4 ) << 
00050 #define GlastEventField(X)               std::setw(X)
00051 
00052 
00053 #endif // LHCBEVENT_DEFINITIONS_H

Generated at Wed Nov 21 12:22:49 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000