/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Simulation/BOOST/SimUtil/SimUtil-00-00-37/SimUtil/BesSubdetector.hh

Go to the documentation of this file.
00001 //---------------------------------------------------------------------------//
00002 //      BOOST --- BESIII Object_Oriented Simulation Tool                     //
00003 //---------------------------------------------------------------------------//
00004 //Descpirtion: abstract virtual class BES subdetector 
00005 //Author: Liuhm
00006 //Created: May 14, 2003
00007 //Comment:
00008 //---------------------------------------------------------------------------//
00009 #ifndef BesSubdetector_H 
00010 #define BesSubdetector_H 1
00011 
00012 class G4LogicalVolume;
00013 
00014 #include "GDMLProcessor.hh"
00015 #include "SAXProcessor.hh"
00016 #include "ProcessingConfigurator.hh"
00017 
00018 class BesSubdetector
00019 {
00020  public:
00021    BesSubdetector(){;}
00022    virtual ~BesSubdetector(){;}
00023 
00024    //construct your detector and position it in BES world volume
00025    //You MUST derive your concrete class and implement it
00026    
00027    virtual void Construct(G4LogicalVolume* bes) = 0;
00028    G4LogicalVolume*   FindLogicalVolume( const G4String& vn);
00029      
00030  protected:
00031 //   G4LogicalVolume* besWorld;  
00032    SAXProcessor           m_sxp;
00033    ProcessingConfigurator m_config;
00034 
00035 };
00036 
00037 inline 
00038 G4LogicalVolume* BesSubdetector::FindLogicalVolume( const G4String& vn ) {
00039   return const_cast<G4LogicalVolume*>( GDMLProcessor::GetInstance()->GetLogicalVolume(vn) );
00040 }
00041 
00042 #endif
00043 
00044    
00045      
00046 
00047 
00048 
00049 
00050 
00051 
00052 

Generated on Tue Nov 29 23:14:30 2016 for BOSS_7.0.2 by  doxygen 1.4.7