Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

StupidGeomHandle.cxx

Go to the documentation of this file.
00001 #include "StupidGeomHandle.h"
00002 #include "MessageService/MsgService.h"
00003 
00004 ClassImp(StupidGeomHandle)
00005   
00006 CVSID("$Id: StupidGeomHandle.cxx,v 1.7 2007/11/11 04:42:35 rhatcher Exp $");
00007 
00008 
00009 StupidGeomHandle::StupidGeomHandle(void)
00010 { 
00011   ReportIAmStupid();
00012   fContext = VldContext(Detector::kFar,SimFlag::kData,VldTimeStamp(2002,8,20,1,1,1,1)); 
00013   StupidStripHandle::BuildVetoData();
00014 }
00015 
00016 StupidGeomHandle& StupidGeomHandle::operator=(const StupidGeomHandle& sgh)
00017 { 
00018   ReportIAmStupid();
00019   fContext = sgh.fContext; return *this; 
00020   StupidStripHandle::BuildVetoData();
00021 }
00022 
00023 StupidGeomHandle::StupidGeomHandle ( const VldContext &context, 
00024                                      Ugli::EModifyMode /* mmode */ ) 
00025 {
00026   ReportIAmStupid();
00027   fContext = context; 
00028   StupidStripHandle::BuildVetoData();
00029 }
00030   
00031 
00032 StupidStripHandle StupidGeomHandle::GetStripHandle( void ){
00033   return StupidStripHandle();
00034 }
00035 
00036 StupidStripHandle StupidGeomHandle::GetStripHandle( PlexStripEndId seid )
00037 {
00038   return StupidStripHandle(seid);
00039 }
00040 
00041 
00042 void StupidGeomHandle::ReportIAmStupid() const
00043 {
00044   static int havereported = 0;
00045   if(havereported==0) {
00046     havereported=1;
00047     MSG("Stupid",Msg::kWarning) << "***** Warning! ******" << endl;
00048     MSG("Stupid",Msg::kWarning) << "This process is making use of StupidGeometry, which will give" << endl;
00049     MSG("Stupid",Msg::kWarning) << "incorrect results if used for reconstruction!" << endl;
00050     MSG("Stupid",Msg::kWarning) << "It is recommended to use this only for event viewers." << endl;
00051   }
00052 }
00053 
00054 

Generated on Mon Feb 15 11:07:40 2010 for loon by  doxygen 1.3.9.1