00001 #include "emcTowerContent.h" 00002 #include <iostream> 00003 00004 ClassImp(emcTowerContent) 00005 00006 static int shutup = 0; 00007 00008 //_____________________________________________________________________________ 00009 emcTowerContent::~emcTowerContent() 00010 { 00011 } 00012 00013 //_____________________________________________________________________________ 00014 emcTowerContent& 00015 emcTowerContent::operator=(const emcTowerContent&) 00016 { 00017 return *this; 00018 } 00019 00020 //_____________________________________________________________________________ 00021 bool 00022 emcTowerContent::hasReference(void) const 00023 { 00024 return false; 00025 } 00026 00027 //_____________________________________________________________________________ 00028 int 00029 emcTowerContent::HGPP(void) const 00030 { 00031 return HGPre()-HGPost(); 00032 } 00033 00034 //_____________________________________________________________________________ 00035 void 00036 emcTowerContent::identify(std::ostream& /*os*/) const 00037 { 00038 std::cerr << "emcTowerContent::identify : " 00039 << "should be implemented in daughter class" 00040 << std::endl; 00041 } 00042 00043 //_____________________________________________________________________________ 00044 bool 00045 emcTowerContent::isReference(void) const 00046 { 00047 return false; 00048 } 00049 00050 //_____________________________________________________________________________ 00051 int 00052 emcTowerContent::isValid() const 00053 { 00054 return 0; 00055 } 00056 00057 //_____________________________________________________________________________ 00058 int 00059 emcTowerContent::LGPP(void) const 00060 { 00061 return LGPre()-LGPost(); 00062 } 00063 00064 //_____________________________________________________________________________ 00065 emcTowerContent* 00066 emcTowerContent::Reference(void) const 00067 { 00068 return 0; 00069 } 00070 00071 //_____________________________________________________________________________ 00072 void 00073 emcTowerContent::ShutUp(const int i) 00074 { 00075 shutup = i; 00076 } 00077 00078 //_____________________________________________________________________________ 00079 void 00080 emcTowerContent::warning(const char* method) const 00081 { 00082 if (!shutup) 00083 { 00084 std::cerr << __FILE__ << ":" 00085 << " method " << method 00086 << " IS NOT IMPLEMENTED in daughter " 00087 << " class !" << std::endl; 00088 } 00089 }