]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TEvtGen/EvtGenBase/EvtReport.cxx
#100372: Request to port code to allow for event selection from ZDC timing info at...
[u/mrichter/AliRoot.git] / TEvtGen / EvtGenBase / EvtReport.cxx
CommitLineData
da0e9ce3 1//--------------------------------------------------------------------------
2//
3// Environment:
4// This software is part of the EvtGen package developed jointly
5// for the BaBar and CLEO collaborations. If you use all or part
6// of it, please give an appropriate acknowledgement.
7//
8// Copyright Information: See EvtGen/COPYRIGHT
9// Copyright (C) 1998 Caltech, UCSB
10//
11// Module: EvtReport.cc
12//
13// Description: definitions of global functions.
14//
15// Modification history:
16//
17// Simon Patton June 3, 1996 Module created
18//
19//------------------------------------------------------------------------
20//
21#include "EvtGenBase/EvtPatches.hh"
22
23#include "EvtGenBase/EvtReport.hh"
24using std::cerr;
25using std::cout;
26using std::endl;
27using std::ostream;
28
29
30//
31// constants, enums and typedefs
32//
33
34
35ostream& report( Severity severity ,
36 const char* facility )
37{
38 int printNoFacility=1;
39
40 if ( ( facility == 0 ) &&
41 ( printNoFacility ==1) ) {
42 cout << "There is no `facility' implemented in `report'"
43 << endl ;
44 printNoFacility = 0 ;
45 }
46 if ( severity < WARNING ) {
47 if (facility[0]!=0){
48 cerr<<facility<<":";
49 }
50 return ( cerr ) ;
51 }
52 if (facility[0]!=0){
53 cout<<facility<<":";
54 }
55 return cout;
56}
57
58