Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members
PHObject.C
Go to the documentation of this file.00001 #include <iostream> 00002 #include "phool.h" 00003 #include "PHObject.h" 00004 00005 ClassImp(PHObject) 00006 00007 PHObject* 00008 PHObject::clone() const 00009 { 00010 std::cerr << PHWHERE << " clone() not implemented by daugther class" 00011 << std::endl; 00012 return 0; 00013 } 00014 00015 PHObject* 00016 PHObject::create() const 00017 { 00018 std::cerr << PHWHERE << " create() not implemented by daugther class" 00019 << std::endl; 00020 return 0; 00021 } 00022 00023 void 00024 PHObject::identify(std::ostream& out) const 00025 { 00026 out << "identify yourself: I am a PHObject object" << std::endl; 00027 } 00028 00029 void 00030 PHObject::Reset() 00031 { 00032 // This is bad, previous events are not cleared 00033 std::cout << PHWHERE 00034 << " Reset() not implemented PREVIOUS EVENT IS NOT CLEARED" 00035 << std::endl; 00036 return; 00037 } 00038 00039 int 00040 PHObject::isValid() const 00041 { 00042 // give warning if this method is not implemented 00043 std::cout << PHWHERE 00044 << " isValid() not implemented by daughter class" 00045 << std::endl; 00046 return 0; 00047 } 00048