Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
phool.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file phool.h
1 #ifndef PHOOL_PHOOL_H
2 #define PHOOL_PHOOL_H
3 
4 // Standard PHOOL's header file.
5 // Purpose: declarations and definitions for PHOOL
6 
7 #include <iostream>
8 
9 // Global type definitions
11 {
15 };
17 {
21 };
23 {
26 };
27 
28 // General purpose functions
29 void PHMessage(const std::string&, int, const std::string&);
30 
31 #define PHWHERE __FILE__ << ":" << __LINE__ << ": "
32 #define PHMESSAGE(x) \
33  do \
34  { \
35  std::cout << PHWHERE << (x) << std::endl; \
36  } while (0)
37 #define PHOOL_VIRTUAL_WARNING \
38  do \
39  { \
40  std::cout << PHWHERE << "using virtual function, doing nothing" << std::endl; \
41  } while (0)
42 // now one where you can give an argument, e.g. the method name
43 #define PHOOL_VIRTUAL_WARN(x) \
44  do \
45  { \
46  std::cout << PHWHERE << "using virtual function " << x << " doing nothing" << std::endl; \
47  } while (0)
48 
49 #endif /* PHOOL_PHOOL_H */