ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHMessage.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHMessage.cc
1 #include "phool.h"
2 
3 #include <iostream>
4 #include <string>
5 
6 using namespace std;
7 
8 void PHMessage(const std::string& functionName, int messageType, const std::string& message)
9 {
10  switch (messageType)
11  {
12  case (PHError):
13  cerr << functionName << endl;
14  cerr << "\tERROR" << endl;
15  cerr << "\t" << message << endl;
16  break;
17  case (PHWarning):
18  cout << functionName << endl;
19  cout << "\tWARNING" << endl;
20  cout << "\t" << message << endl;
21  break;
22  case (PHHullo):
23  cout << functionName << endl;
24  cout << "\tHULLO HULLO HULLO" << endl;
25  cout << "\t" << message << endl;
26  break;
27  }
28 }