File indexing completed on 2025-08-05 08:16:20
0001 #include "PHObject.h"
0002
0003 #include "phool.h"
0004
0005 #include <TSystem.h>
0006
0007 #include <iostream>
0008
0009 class TObject;
0010
0011 PHObject *
0012 PHObject::CloneMe() const
0013 {
0014 std::cout << PHWHERE << " CloneMe() not implemented by " << this->GetName()
0015 << std::endl;
0016 return nullptr;
0017 }
0018
0019 PHObject *
0020 PHObject::clone() const
0021 {
0022 std::cout << PHWHERE << " clone() is obsolete" << std::endl;
0023 return nullptr;
0024 }
0025
0026 void PHObject::identify(std::ostream &os) const
0027 {
0028 os << "identify yourself: I am a PHObject object detailed identify not implemented by "
0029 << this->GetName() << std::endl;
0030 }
0031
0032 void PHObject::Reset()
0033 {
0034
0035 std::cout << PHWHERE
0036 << " Reset() not implemented for " << this->GetName()
0037 << " PREVIOUS EVENT IS NOT CLEARED"
0038 << std::endl;
0039 std::cout << "You most probably miss a library, if so there are one or more messages at startup like:"
0040 << std::endl
0041 << std::endl;
0042 std::cout << "Warning in <TClass::TClass>: no dictionary for class XXX is available"
0043 << std::endl
0044 << std::endl;
0045 std::cout << "load the libraries which contain these classes and try again"
0046 << std::endl;
0047 gSystem->Exit(1);
0048 }
0049
0050 int PHObject::isValid() const
0051 {
0052
0053 std::cout << PHWHERE
0054 << " isValid() not implemented by " << this->GetName()
0055 << std::endl;
0056 return 0;
0057 }
0058
0059 void PHObject::CopyFrom(const PHObject * )
0060 {
0061 std::cout << PHWHERE
0062 << " CopyFrom(const PHObject *obj) is not implemented by "
0063 << this->GetName() << std::endl;
0064 gSystem->Exit(1);
0065 }
0066
0067 PHObject *PHObject::Clone(const char * ) const
0068 {
0069 std::cout << PHWHERE << this->GetName()
0070 << "is overriding the TObject::Clone method which is not supported" << std::endl;
0071 gSystem->Exit(1);
0072 return nullptr;
0073 }
0074
0075 void PHObject::Copy(TObject & ) const
0076 {
0077 std::cout << PHWHERE << this->GetName()
0078 << "is overriding the TObject::Copy method which is not supported" << std::endl;
0079 gSystem->Exit(1);
0080 }