Analysis Software
Documentation for sPHENIX simulation 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 void PHMessage(const std::string& functionName, int messageType, const std::string& message)
7 {
8  switch (messageType)
9  {
10  case (PHError):
11  std::cerr << functionName << std::endl;
12  std::cerr << "\tERROR" << std::endl;
13  std::cerr << "\t" << message << std::endl;
14  break;
15  case (PHWarning):
16  std::cout << functionName << std::endl;
17  std::cout << "\tWARNING" << std::endl;
18  std::cout << "\t" << message << std::endl;
19  break;
20  case (PHHullo):
21  std::cout << functionName << std::endl;
22  std::cout << "\tHULLO HULLO HULLO" << std::endl;
23  std::cout << "\t" << message << std::endl;
24  break;
25  }
26 }