Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:16:55

0001 #ifndef PHOOL_PHOOL_H
0002 #define PHOOL_PHOOL_H
0003 
0004 //  Standard PHOOL's header file.
0005 //  Purpose: declarations and definitions for PHOOL
0006 
0007 #include <iostream>
0008 
0009 enum PHAccessType
0010 {
0011   PHReadOnly,
0012   PHWrite,
0013   PHUpdate
0014 };
0015 enum PHTreeType
0016 {
0017   PHEventTree,
0018   PHRunTree
0019 };
0020 
0021 // General purpose functions
0022 
0023 #define PHWHERE __FILE__ << ":" << __LINE__ << ": "
0024 
0025 #define PHOOL_VIRTUAL_WARNING                                                     \
0026   do                                                                              \
0027   {                                                                               \
0028     std::cout << PHWHERE << "using virtual function, doing nothing" << std::endl; \
0029   } while (0)
0030 // now one where you can give an argument, e.g. the method name
0031 #define PHOOL_VIRTUAL_WARN(x)                                                                \
0032   do                                                                                         \
0033   {                                                                                          \
0034     std::cout << PHWHERE << "using virtual function " << x << " doing nothing" << std::endl; \
0035   } while (0)
0036 
0037 #endif /* PHOOL_PHOOL_H */